Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
2.2.13
-
None
-
None
Description
We are using Jackrabbit 2.2.x and found that while NodeIndexer is taking care that for the _:PROPERTIES field norms are omitted. However in the Lucene version used in Jackrabbit 2.2 it has been forgotten to set omitNorms to true when using Field.Index.NO as parameter which is the case in NodeIndexer.addReferenceValue. As in this case omitNorms is left at the default, which is false, Lucene then decides to use norms for all _:PROPERTIES fields, so the attempts to set omitNorms to true are in vain.
As workaround we tested using:
Field field = new Field(FieldNames.PROPERTIES,
FieldNames.createNamedValue(fieldName, uuid),
Field.Store.YES, Field.Index.NO, Field.TermVector.NO);
field.setOmitNorms(true);
doc.add(field);
In that case norms are kept disabled for that field.
The Lucene version used in the Jackrabbit 2.4.x branch is not having this problem anymore.