rawscsi
rawscsi copied to clipboard
Query::Compound - Conditionally quote search keyword
If the search term is provided in a hash, but the keyword itself is actually not complex the quoting will yield incorrect results
For example, in order to match all documents it is necessary to use a matchall
search query and apply the q.parser=structured
query param. It would be nice to do this as a Compound query, to take advantage of the q.parser
param being appended, however, with the way things are currently quoted, it's not possible.
With this fix, you can do search.search({q: 'matchall'})
to perform a search that matches all documents