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

Support archive

Search on empty string yields results not indexed in valid Collections.

Matt 11 Apr 2014 22:28 problem, rejected

With EE 2.7.2 and Low Search 3.1.4, I'm suddenly getting results from Channels not included in valid collections—only when searching for an empty string.

 
{exp:low_search:form
collection="products|product_groups"
search_mode="all"
result_page="search"
secure="no"
}
<input type="text" name="keywords" placeholder="I'm looking for...">
<button type="submit" class="button prefix"><i class="fi-magnifying-glass"></i></button>
{/exp:low_search:form}


Submitting a search for "" (admittedly silly, but easy mistake) lands on the results page with '/search/eyJyZXN1bHRfcGFnZSI6InNlYXJjaCJ9'.

And the results loop...

 
{exp:low_search:results query="{segment_2}" limit="50"}
{title}<br>
{/exp:low_search:results}


I spitting out the most recent entries related to Collection items via Playa. Only Products results should be shown per the Products collection, yet Product Materials entries (separate entries, related to Products but not part of the Collection) are being individually displayed in the results loop.

Is this a bug, or have I misunderstood something about Collections and results?

Replies

  1. Low 12 Apr 2014 07:37

    Since Low Search 3, all filter-related parameters aren't valid on the Form tag. Instead, set them as input field in the Form tag, or add them to the Results tag. http://gotolow.com/addons/low-search/...

  2. Matt 13 Apr 2014 20:16

    Sorry I missed that note—makes plenty of sense. Thanks!