Hey,
I have a channel with a Grid field called Authors. For some reason, I am unable to search these grid fields using a simple search. Other custom fields, that I have set to “searchable” DO work. It’s only the given grid field. I am using expression engine 5.3.2 which I believe is the latest release.
My search for code is below. Note that I do have “search_in=”everywhere” and ‘where=”any”’
{exp:search:simple_form
channel="Publication"
search_in="everywhere"
where="any"
result_page="publication/searches"
no_result_page="publication/noresults"
form_id="search_form"
name="search_form"
error_handling="inline"
results="15"}
<div class="col">
<div class="row p-2">
<div class="form-group">
<input type="text" name="keywords" id="keywords" placeholder="Search..." class="form-control"
value="" size="30" maxlength="100">
<input type="submit" id="searchBtn" value="Search" class="btn btn-secondary ml-1 mr-3" disabled>
</div>
</div>
</div>
{/exp:search:simple_form}
Any idea how to get these grid fields to be searched? Or do I have to create a hidden field with these names in a text field?
Hey Robin!
I have made sure that the channel field is searchable as I did with the other fields! 😊
I’ve also added a test entry to try and see if I could search the authors, and I was unable to. Making a change on the grid field also does not end up getting that channel entry to be searched.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.