o19s / quepid

Improve your Elasticsearch, OpenSearch, Solr, Vectara, Algolia and Custom Search search quality.
http://www.quepid.com
Apache License 2.0
279 stars 100 forks source link

Using "and" in a query results in a query with "\\and" in q parameter #910

Open OkkeKlein opened 9 months ago

OkkeKlein commented 9 months ago

And this breaks synonyms eg.

epugh commented 7 months ago
image
epugh commented 7 months ago

Pinging @softwaredoug about this one... looks like it's in splainer-search in https://github.com/o19s/splainer-search/blame/main/test/spec/solrUrlSvc.js#L169

softwaredoug commented 7 months ago

IIRC, was there ever a time we would let people enable / disable query escaping? Wasn't there a setting at one time?

I believe this has come up before, but in the misty days of the past. Most people just want natural language queries, but I think parsed queries have come up before

epugh commented 7 months ago

@OkkeKlein so the current live version of quepid should let your and be a proper and now! Can you retest?

OkkeKlein commented 1 month ago

Sorry for late response, I need to enable notifications.

The explained query still shows q: "charlie \\and the chocolate factory" and q: "deadpool \\and wolverine" , and the synonym doesn't match because of this it seems.

Quick fix is to no longer use setting "escape queries"

Tested on Quepid version 7.17.1