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

Cost estimation for "not(@x)" calculates cost for "@x='value'" instead

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.70.0
    • lucene
    • None

    Description

      The cost estimation for a query that uses a Lucene index calculates the cost incorrectly if there is a "not(<property>)" condition. Examples:

      /jcr:root//*[(not(@x)) and (not(@y))
      

      The Lucene query is then:

      +:nullProps:x +:nullProps:y
      

      But the cost estimation seems to take into account the number of documents for the fields "x" and "y", instead of the field ":nullProps"

      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: