Hi all,

We upgraded our Solr cluster from 5 to 8 and I've found a difference in search 
results.

Previously we had this in the schema.xml:
<solrQueryParser defaultOperator="AND"/>

Which stopped working in Solr 8, so we mowed this to solrconfig.xml as:
<str name="q.op">AND</str>

Now, this search gives 0 results while previously it worked fine and returned 2 
records:
[ path=select parameters={fq: ["type:Member"], sort: "score desc", q: 
"u...@gmail.com ad...@yahoo.com", fl: "* score", qf: "email_words_ngram", 
defType: "edismax", mm: 1, start: 0, rows: 20} ]

At the same time the docs say that terms without explicit "+" or "-" are 
considered as optional and results of both terms should be returned.

This search works:
[ path=select parameters={fq: ["type:Member"], sort: "score desc", q: 
"u...@gmail.com OR ad...@yahoo.com", fl: "* score", qf: "email_words_ngram", 
defType: "edismax", mm: 1, start: 0, rows: 20} ]

I need help figuring out what's wrong with our configuration and how to handle 
this properly.

Thank you,
Alexander

Reply via email to