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

Lucene AND query with a complex OR phrase returns incorrect result

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.9, 1.1.5
    • 1.0.10, 1.1.6
    • lucene
    • None

    Description

      Queries like this

      /jcr:root/content//element(*, test:Asset)[(jcr:contains(., 'cube')) and (jcr:contains(jcr:content/@foo, '"a" OR "b"'))]
      

      returns wrong results.

      This get converted to

      +:fulltext:cube full:jcr:content/foo:"a" full:jcr:content/foo:"b"
      

      Attachments

        1. OAK-2434.patch
          1 kB
          Amit Jain

        Issue Links

          Activity

            People

              amitjain Amit Jain
              amitjain Amit Jain
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: