Maven indexer does not support querying fields that are both STORED and ANALYZED #14
Labels
context/experimental
Applies to a specific branch (not master)
type/question
Further information is requested
Scope
Applies to experiment: https://github.com/connexta/osg-eyes/tree/mvn-indexing
Goal
What was the rationale for not supporting the following behavior?
Notes
The following warning message is logged:
Refer to the follow lines for the precise location where the error occurs during query construction: https://github.com/apache/maven-indexer/blob/maven-indexer-6.0.0/indexer-core/src/main/java/org/apache/maven/index/DefaultQueryCreator.java#L239-L244
Note that the maven indexer is still using an older version of Lucene (5.5.5) and as a result some deprecated APIs. For reference, here are the relevant options for both storing and indexing a field:
https://github.com/apache/lucene-solr/blob/releases/lucene-solr/5.5.5/lucene/core/src/java/org/apache/lucene/document/Field.java#L654-L714
For some reason, the indexer does not support searching on Lucene fields that are both
STORED
andANALYZED
. Stored fields that are also indexed must be considered "keywords" (not sure if that's maven or lucene vernacular) and are only supported when indexed asNOT_ANALYZED
. I suspect this has to do with tradeoffs of tokenization but I'm not 100% sure.Leaving this issue around so it can be investigated later.
The text was updated successfully, but these errors were encountered: