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

Wrong full text parsing in Oak Solr index with boolean operators

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.2
    • 1.9.0, 1.10.0, 1.8.3, 1.6.11
    • solr
    • None

    Description

      Parsing of JCR full text clauses in Solr index has a bug so that queries like 'foo AND bar' get translated into Solr queries like 'field:foo AND field:AND AND field:bar'. The field:AND clause is the problematic one because AND is a protected operator in the Lucene / Solr syntax and therefore needs to be either escaped or put into quotes.
      However the right fix would be to skip including the AND (and OR) terms in the fielded query below.
      So the JCR query /jcr:root//*[jcr:contains(., 'foo AND bar')] should be converted into 'field:foo AND field:bar'.

      Attachments

        Activity

          People

            teofili Tommaso Teofili
            teofili Tommaso Teofili
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: