All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Low_Search suddenly doesn't work for me anymore

jamesrhull 2 Aug 2016 21:26 question, complete

What would be the first steps to start debugging why this isn't working? It worked when I created the site 4 years ago...but now I notice it isn't anymore.

EE 2.5.2 and Low_Search 2.1.2

I'm searching collections with multiple drop-downs...

http://dramatica.com/analysis/filter

but the results are incorrect. For instance if you pick Male under Problem-Solving and Optionlock under Story Limit you will get results where the Problem-Solving is Female....

thanks!

Replies

  1. Low 3 Aug 2016 08:20

    That's probably because you're using the Field Search filter, which targets a single field and uses a substring search for that field.

    So, searching a field that can contain "male" and "female" with the string "male" will return all entries, as "male" is a substring of "female".

    Try adding exact="search:field_name" to the Results tag, where field_name is the field name of the field that can contain such ambiguous values. Then LS will search for the full/exact string rather than a substring, much like the native Field Search options, see https://docs.expressionengine.com/v2/...