[
https://issues.apache.org/jira/browse/OAK-2368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Thomas Mueller resolved OAK-2368.
---------------------------------
Resolution: Fixed
Revision 1649786 (trunk)
> Property index: setting declaringNodeTypes to an empty array can break queries
> ------------------------------------------------------------------------------
>
> Key: OAK-2368
> URL: https://issues.apache.org/jira/browse/OAK-2368
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: query
> Reporter: Thomas Mueller
> Assignee: Thomas Mueller
> Fix For: 1.2, 1.1.4
>
>
> For property indexes, setting the config option "declaringNodeTypes" to an
> empty array will cause the index not to index any data, but will still allow
> the index to be used for all node type. That means, the index can be used,
> and would return no results. Queries would therefore return an empty result,
> when this index is used (even if there are nodes that match).
> The problem is that the interpretation of an existing, but empty
> declaringNodeTypes property is different in the index editor and in the index
> cost / lookup operation.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)