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

Support archive

Low Search never returns results

ericcarl82 13 Oct 2011 19:47 problem, complete

I'm using Low Search on a collection called Courses and nothing I'm searching for is returning any results. My search form code:

{exp:low_search:form collection="Courses" search_mode="all" result_page="courses/low-search-results"}
<fieldset>
<label for="keywords">Keywords</label>
<input type="search" name="keywords" id="keywords" />
<button type="submit">Search</button>
</fieldset>
{/exp:low_search:form}


And my results code:

{exp:low_search:results query="{segment_3}" limit="10"}
{if count == 1}<ol>{/if}
<li><a href="{comment_url_title_auto_path}">{title}</a></li>
{if count == total_results}</ol>{/if}
{if no_results}No search results{/if}
{/exp:low_search:results}


I've built my collection, assigned my weighted fields and built the index but it doesn't seem to be working. I tried using the "loose_ends" option but it didn't help. The error page displayed isn't using my low-search-results template either, it is displaying EE's generic error page. However my searches are being logged so that much seems to be working. Thanks for any help with this!

Replies

  1. Low 13 Oct 2011 20:32

    Hi Eric,

    You said "The error page displayed isn't using my low-search-results template" -- what is the error page saying? And what's the URL of that page?

    Also note that I'll be at eeciconf.com the coming days, so support might take a bit longer than usual. I'll still do my best to help you when I can. :)

  2. ericcarl82 13 Oct 2011 20:56

    Thanks Low. The error says:

    "Search Results: Your search did not return any results."

    You can see a screenshot here:

    http://gnomonschool.com/temp/low-sear...

    The URL would be something like:

    http://dev.gnomonschool.com/courses/l...

    It looks like the URL is actually using the path to my results template but its not being reflected on the page.

  3. Low 14 Oct 2011 05:16

    It looks like there's a regular {exp:search:results} tag in the courses/low-search-results template, which triggers the error. If you use {exp:low_search:results}, the error should not be displayed.

  4. ericcarl82 14 Oct 2011 17:46

    Heeeey got it! Thanks Low. I had my old search results commented out thinking that would be okay but I guess not. Got it working now!

  5. Low 15 Oct 2011 14:02

    Excellent, glad it's working now.