Skip to content

Comments

Query::Compound - Conditionally quote search keyword#24

Open
bwoodmansee wants to merge 2 commits intoStevenJL:masterfrom
bwoodmansee:conditional_quoting_for_q
Open

Query::Compound - Conditionally quote search keyword#24
bwoodmansee wants to merge 2 commits intoStevenJL:masterfrom
bwoodmansee:conditional_quoting_for_q

Conversation

@bwoodmansee
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant