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: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • 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

        Activity

          People

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

            Dates

              Created:
              Updated: