[
https://issues.apache.org/jira/browse/JCR-1950?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marcel Reutegger resolved JCR-1950.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.6.0
Good point!
Changed as proposed in revision: 736680
> Testing for indexable properties should check the default 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
> Fix For: 1.6.0
>
>
> 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.