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'.