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

Support archive

Don't know why Low Search not work in this case!

ngoncom 11 Aug 2018 22:10 question, complete

Hi Low,

I am so sorry for this question, but I don't know why Low Search not working!

I have a search form and result page using one template (/filter)

My search form in /filter template:

{exp:low_search:form result_page="/filter"} 
<select name="my_website">
<option value="website1.com">website1.com</option>
<option value="website2.com">website2.com</option>
</select>
<button type="submit">View</button>
{/exp:low_search:form}

And I list results in /filter template:

{exp:low_search:results query="{segment_1}" channel="website"} 
<h1>{title}</h1>
{/exp:low_search:results}

Form search submit ok, I have this url after submit:

/filter?my_website=website2.com

But exp:low_search:results show all entries, not entries have my_website=website2.com

I need help!

Replies

  1. Low 12 Aug 2018 12:44

    my_website isn't a valid parameter. Are you targeting a specific field? Then use search:my_website instead, as per the Field Search filter.

    Also, you can remove the query="" param from the Results tag if you're using GET vars.

  2. ngoncom 12 Aug 2018 20:02

    You save my life!

    I forget that have to using "search:my_website" not "my_website" for field search, it works.

    Thank so much!