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

Lucene: contains "a -b" with path restriction ignored "a"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.7.12, 1.8.0
    • lucene
    • None

    Description

      The following query is converted correctly:

      /jcr:root//*[jcr:contains(., 'apple - pear')]
      +:fulltext:apple -:fulltext:pear
      BooleanQuery(BooleanClause(+,TermQuery(apple)), BooleanClause(-,TermQuery(pear)))
      

      However with path restriction, "apple" is lost:

      /jcr:root/content//*[jcr:contains(., 'apple - pear')]
      -:fulltext:pear +:ancestors:/content
      BooleanQuery(BooleanClause(-,TermQuery(pear)), BooleanClause(+,TermQuery(:ancestors:/content)))
      

      This is related to OAK-3371.

      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: