Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-2529

Index usage for "not equals" conditions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0.12, 1.1.8
    • query
    • None

    Description

      Queries with "not equals" conditions don't currently use an index. Example:

      /jcr:root/content//*[@contentType != 'container']
      

      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.

      Attachments

        Issue Links

          Activity

            People

              thomasm Thomas Mueller
              thomasm Thomas Mueller
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: