You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Benjamin Papez (JIRA)" <ji...@apache.org> on 2013/07/19 12:46:48 UTC
[jira] [Created] (JCR-3624) Norms are not omitted for _:PROPERTIES
field
Benjamin Papez created JCR-3624:
-----------------------------------
Summary: Norms are not omitted for _:PROPERTIES field
Key: JCR-3624
URL: https://issues.apache.org/jira/browse/JCR-3624
Project: Jackrabbit Content Repository
Issue Type: Improvement
Components: indexing
Affects Versions: 2.2.13
Reporter: Benjamin Papez
Priority: Minor
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira