[ https://issues.apache.org/jira/browse/OAK-7375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Amit Jain closed OAK-7375. -------------------------- Bulk close 1.6.11. > Wrong full text parsing in Oak Solr index with boolean operators > ---------------------------------------------------------------- > > Key: OAK-7375 > URL: https://issues.apache.org/jira/browse/OAK-7375 > Project: Jackrabbit Oak > Issue Type: Bug > Components: solr > Affects Versions: 1.8.2 > Reporter: Tommaso Teofili > Assignee: Tommaso Teofili > Priority: Major > Fix For: 1.9.0, 1.8.3, 1.6.11 > > > 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'_. -- This message was sent by Atlassian JIRA (v7.6.3#76005)