[ 
https://issues.apache.org/jira/browse/OAK-2529?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thomas Mueller resolved OAK-2529.
---------------------------------
    Resolution: Fixed

Revision 1661868 (trunk)
Revision 1661869 (1.0 branch)

> Index usage for "not equals" conditions
> ---------------------------------------
>
>                 Key: OAK-2529
>                 URL: https://issues.apache.org/jira/browse/OAK-2529
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: query
>            Reporter: Thomas Mueller
>            Assignee: Thomas Mueller
>             Fix For: 1.2, 1.0.12, 1.1.8
>
>
> Queries with "not equals" conditions don't currently use an index. Example:
> {noformat}
> /jcr:root/content//*[@contentType != 'container']
> {noformat}
> Such conditions should result in a "not null" property restrictions (so that 
> property indexes can be used if available, and if there are only few entries 
> for this property).
> Also, "not equal" need to be used and supported in the filter. Currently, in 
> FilterImpl, this is not supported and used, and would throw a 
> IllegalArgumentException if used. This is for indexes that natively support 
> this feature (such as Apache Lucene and Solr).
> Also, this needs to be supported in the Lucene and Solr index.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to