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

Support archive

Multiple result tags

magnusland 2 Dec 2013 14:33 question, complete

It seems like having multiple result tags won't work. I'm trying to group results, by doing this:

{exp:low_search:results collection="article" query="{segment_2}"}<p>{title}</p>{/exp:low_search:results} 
{exp:low_search:results collection="products_{transcribe:language_abbreviation}" query="{segment_2}"}<p>{title}</p>{/exp:low_search:results}

It will only give me results from the first tag (also when I reorder them).
...and If I run this:
{exp:low_search:collections} 
<li>{collection_label}</li>
{/exp:low_search:collections}

I get this error:
Message: Undefined property: Low_search::$low_search_collection_model 

Filename: low_search/mod.low_search.php

Line Number: 836

I'm using Low Search 3.0.0 with EE 2.7.0

Replies

  1. Low 2 Dec 2013 14:39

    For the first issue, update to 3.0.1.

    For the second issue, open up mod.low_search.php and look up line #836. That should read:

    $rows = $this->low_search_collection_model->get_by_site($site_ids)


    Change that to:

    $rows = array_values(ee()->low_search_collection_model->get_by_site($site_ids));


    That should fix it.