Low Search - is there a way to use lower case 'or' in keywords?
Using Low Search.
Works well, but noticed that for the search mode keywords:auto operator OR only works when it is in upper case. If you include it as lower case in search keywords it seems to be treated as a search term.
Why is this an issue?
On our system the search term "quality OR 'is likely'" returns 4 results, but the search term "quality or 'is likely'" returns none.
Is there a way to tell Low Search to be more tolerant of the case of this operator?
Replies
Low 15 Apr 2015 16:08
Right now, no. Not without a hack in the core. Just like the quoting of terms to group exact matches is only supported with double quotes.
But I'll make a note of it and see if I can add a setting of some sort.
You can always set the keywords:mode="any" to automatically differentiate with OR.
Gavin Lawrie 15 Apr 2015 16:20
OK - thanks for speedy reply.
A slightly more tolerant / flexible approach to operators would be a good improvement for a future version.
Low 15 Apr 2015 16:23
FWIW, using OR looks to be somewhat of a design pattern. For example, the Twitter search uses that operator, too. Using OR might force the user to differentiate between "or" as an actual search term and "OR" as a search operator.