ideas icon indicating copy to clipboard operation
ideas copied to clipboard

Let users switch between `query_mode` with quotes in their search query

Open robdekort opened this issue 1 year ago • 3 comments
trafficstars

Statamic's default comb search is extremely powerful. There's one feature I'm currently missing however. And that is the ability for users to switch betweenquery_mode boolean/words vs whole.

For example:

query_mode = 'boolean': "Comb your hair" -> finds matches for "Comb" or "your" or "hair" query_mode = 'words': "Comb your hair" -> finds matches for "Comb" and "your" and "hair" query_mode = 'whole': "Comb your hair" -> finds matches for "Comb your hair"

Currently the query_mode is set on the index itself and is therefore global. It would be great if users could use "" to wrap their query and that would make it switch to whole.

robdekort avatar Jun 28 '24 09:06 robdekort