jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Papez (JIRA)" <j...@apache.org>
Subject [jira] [Created] (JCR-3624) Norms are not omitted for _:PROPERTIES field
Date Fri, 19 Jul 2013 10:46:48 GMT
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);

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

View raw message