You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Marcel Reutegger (JIRA)" <ji...@apache.org> on 2015/04/07 22:13:12 UTC
[jira] [Updated] (OAK-2529) Index usage for "not equals" conditions
[ https://issues.apache.org/jira/browse/OAK-2529?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marcel Reutegger updated OAK-2529:
----------------------------------
Fix Version/s: (was: 1.2)
> 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.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)