Tesing for indexable properties should check the deault indexable properties
first
----------------------------------------------------------------------------------
Key: JCR-1950
URL: https://issues.apache.org/jira/browse/JCR-1950
Project: Jackrabbit Content Repository
Issue Type: Improvement
Components: indexing
Affects Versions: 1.5.2
Reporter: Yoav Landman
Priority: Minor
org.apache.jackrabbit.core.query.lucene.NodeIndexer#addValue, uses the
following condition for a PropertyType.NAME type of property:
if (isIndexed(name)
|| name.equals(NameConstants.JCR_PRIMARYTYPE)
|| name.equals(NameConstants.JCR_MIXINTYPES)) {
addNameValue(doc, fieldName, value.getQName());
}
It'd be more efficient to test the default properties first (which are on every
node anyway) than to query the custom indexing rules every time.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.