You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to allow searching a specific category foo with a query like bar-baz, but picky is currently trying to convert it into a range (which is crazy). Is there a way to specify that this category should not allow user options?
The text was updated successfully, but these errors were encountered:
Hi @tfwright, thanks.
And yeah, currently in Picky - is by default a range character, and both ends are then used to do a range query.
This can be mitigated by telling Picky to use a different range character like so:
Picky::Query::Token.range_character="…"Picky::Search.new(some_index).search("year:2000…2008")# Will find results in a range.
So, no, you can't yet tell Picky not to allow user options, you can only set the range character to something unusual. However, I am thinking about making it settable to nil (#131).
Thanks for this useful tool.
I want to allow searching a specific category
foo
with a query likebar-baz
, but picky is currently trying to convert it into a range (which is crazy). Is there a way to specify that this category should not allow user options?The text was updated successfully, but these errors were encountered: