o19s / quepid

Improve your Elasticsearch, OpenSearch, Solr, Vectara, Algolia and Custom Search search quality.

Home Page:http://www.quepid.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

OkkeKlein opened this issue · comments

And this breaks synonyms eg.

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

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

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

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