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

Wrong result when using multiple OR conditions, with a Lucene full-text index

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.7
    • 1.3.9, 1.4
    • query
    • None

    Description

      The following query returns the wrong result:

      SELECT * 
      FROM [nt:unstructured] AS c
       WHERE ( c.[name] = 'yes' 
      OR CONTAINS(c.[surname], 'yes') 
      OR CONTAINS(c.[description], 'yes') ) 
      AND ISDESCENDANTNODE(c, '/content') 
      ORDER BY added DESC 
      

      There is a Lucene property index for the following properties: name, surname, description, added.

      Internally, the FilterImpl passed to the indexes does not contains any conditions except order and path restriction.

      Attachments

        Issue Links

          Activity

            People

              edivad Davide Giannella
              edivad Davide Giannella
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: