SOLR 7.4.0

Apologies if this has been answered, but I can't find the answer for the
life of me if it has been.

Query:
/select?q={!q.op=AND}mysearchtext*&defType=edismax&debugQuery=true

Result:
"querystring": "{!q.op=AND}mysearchtext*",
"parsedquery": "+DisjunctionMaxQuery(((Synonym(text:q
text:qopandmysearchtext text:{!q.op=and}mysearchtext*) text:op text:and
text:mysearchtext)))"

In the above, I'm just trying to set the query operator to AND while leaving
the default as OR.  It looks like q.op is being completely ignored (and ends
up as part of the search terms).

I did read https://lucene.apache.org/solr/guide/7_2/solr-upgrade-notes.html
regarding switching the query parser using local parameters, but that is not
what is happening here.  Incidentally, if I set luceneMatchVersion=7.1.0, I
can workaround this issue by doing "{!edismax q.op=and}", but that doesn't
work with 7.4.0.

I also read a number of threads/bugs about changes to the "mm" option, but I
don't think that's relevant here either.

The above works in 4.10.3 (long time ago - I know).  What is the recommended
way to get the same functionality?



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Reply via email to