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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.7.12, 1.8.0
    • Component/s: lucene
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: