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

Support archive

Can't Search Zoo Visitor Channel with Low Search

Andrew 18 Jun 2015 16:01 problem, complete

Hi,

I seem to have an odd issue where I'm unable to search the Zoo Visitor channel with Low Search. If I try to search a different channel it works fine but it just won't pull anything from my Zoo Visitor channel (using the channel fields in the channel not the member fields).

I've checked and double checked that all my fields are searchable and and indexed and double indexed my low search collection. I'm a little stumped as it seems to be able to search any other channel without any problem.

I've updated all of my software to the latest versions today just in case that was causing an issue but still it doesn't work for me.

This is my search form:


{exp:low_search:form result_page="attorneys/search-results" collection="profiles" query="{segment_3}" form_class="menu-form" form_id="search"}

<label for="keywords">Name</label>
<input type="text" class="form-control" name="keywords" placeholder="Enter name">

<input type="submit" class="btn btn-primary" value="Search Professionals" />

{/exp:low_search:form}


This is my Results code:


{exp:low_search:results query="{last_segment}" channel="zoo_visitor" orderby="title" sort="asc" dynamic="no" status="Member-id5"}

{title}

{/exp:low_search:results}


If you need any more details let me know.

Thanks,
Andrew

Replies

  1. Low 18 Jun 2015 16:08

    Can you turn on the template debugger, and look up any lines that mention Low Search or low_search? That should give you some more insight as to what is going on.

  2. Andrew 19 Jun 2015 09:42

    Hi Low,

    This is what I get from the template debugger:


    Low Search: Applying Low_search_filter_keywords
    Low Search: Keywords: jacob
    Low Search: Starting search (fulltext)
    Low Search: Setting entry_id param
    Low Search: Parameters set: query="search-results" channel="zoo_visitor" orderby="title" sort="asc" dynamic="no" status="Member-id5" keywords="Jacob" entry_id="96|94|95"
    Low Search: Pre-applying search vars to tagdata
    Low Search: Calling the channel module


    I notice that my problem seems to be that it says:


    Low Search: Setting entry_id param
    Low Search: ........entry_id="96|94|95"


    but I'm not setting this anywhere so I have no idea where it's coming from? (These entries aren't even in the same channel/collection).

    I've tried actually setting the entry_id parameter to the records that are in that channel I want to search but then I just get Low Search: No results after entry_id/fixed_order. Is there anything else I cloud try to get more information?

    Thanks,
    Andrew

  3. Low 19 Jun 2015 09:52

    You're defining a collection="" in the Form tag, but that gets ignored, because it needs to be set on the Results tag or as an input field in the Form (as per these docs).

    Then, you're doing a keyword search for "Jacob" which now searches all collections (not just the profiles collection). This returns 3 entries, which get further filtered down by the other parameters set on the Results tag: the status and channel parameters. Apparently, that combination ends up in no_results.

    I'd move the collection param to the Results tag, make sure the collection has the right weighting of fields, and make sure other parameters don't negate the search results.

  4. Andrew 19 Jun 2015 10:20

    OK great!! That's got it working!!

    Thank you so much for your help Low.