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 "Thomas Mueller (JIRA)" <ji...@apache.org> on 2015/02/17 10:42:11 UTC

[jira] [Created] (OAK-2529) Index usage for "not equals" conditions

Thomas Mueller created OAK-2529:
-----------------------------------

             Summary: 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


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).




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