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

Support archive

Simple search form to test searching within Grid Field not returning results

thatdeadpixel 11 Oct 2016 19:19 question, complete

I'm mostly just doing some testing to see exactly how searching within a Grid field will work so I setup a test form with some data similar to real data on an upcoming website build.

I set each Grid Field to "Include in Search".

FORM PAGE:
http://pastebin.com/ABudRuBE

RESULTS PAGE (/home/results/):

 
{exp:low_search:results
query="{segment_3}"
exact="search:products_specifications"
channel="products"
}
{title}

{if no_results}

Sorry, nothing found


{/if}
{/exp:low_search:results}



Here's what the form page looks like on the front end...


Template Debug on Results page...

Replies

  1. Low 11 Oct 2016 19:29

    You've got this set as the parameter: search:products_specifications

    That would point to a field. If it points to a Grid field, you need to specify the column name, too. So: search:products_specifications:column_name

  2. thatdeadpixel 12 Oct 2016 16:52

    Thanks Low, that worked. The way i had it setup previously would work if it was a text field, correct?