We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Grid fields not showing up on simple search EE v 3.3.0

How Do I?

doubleclick's avatar
doubleclick
43 posts
9 years ago
doubleclick's avatar doubleclick

Hi,

We’re trying to fetch content from fields within a grid field on simple search. Unfortunately, it doesn’t seem to be working.. content from non-grid based fields are being searched fine. We’ve tried searching for content within a grid field that’s “rich text editor” and “text input” without luck. Grid field and sub grid field both are marked “Include in search?”.

Just trying to figure out, if anyone can point us where we’re going wrong or if it’s something on v3.3.0?

Search syntax:

{exp:search:simple_form form_class="search-form" form_id="search-form" result_page="/search/results" no_result_page="/search/no-result" search_in="everywhere" channel="not global_changes|awards" where="any"}

Thanks!

       
Rob Allen's avatar
Rob Allen
2,950 posts
about 9 years ago
Rob Allen's avatar Rob Allen

Make sure the field is marked as searchable, AND the individual grid fields as searchable as required.

Are you actually outputting grid data into search results?

       
doubleclick's avatar
doubleclick
43 posts
about 9 years ago
doubleclick's avatar doubleclick

Hey Rob, thanks for the reply. The field and the individual grid field are both marked as searchable.

We’re trying to get the content within the grid fields searchable using simple search.

Thanks!

       
doubleclick's avatar
doubleclick
43 posts
about 9 years ago
doubleclick's avatar doubleclick

Hey, just a quick push to the thread.. if anyone can suggest anything here? Thanks!!

       
gprobst's avatar
gprobst
23 posts
about 9 years ago
gprobst's avatar gprobst

I’m having the same issue on v2.9.0. Grid field is set to searchable, as is the column that I want to search on. I can get results if I search on keywords in the title or a non-grid textarea field, but no results are showing up for keywords exclusive to the grid field.

{exp:search:simple_form channel="clients" search_in="entries" where="any" result_page="search/results" no_result_page="search/no-results" results="20" show_future_entries="yes" status="open"}

I’m guessing I probably overlooked something simple, but I can’t seem to figure it out.

       
gprobst's avatar
gprobst
23 posts
about 9 years ago
gprobst's avatar gprobst

It seems my issue was related to entries that were created prior to setting the field and columns to searchable. New entries in the grid fields show up, but the ones that were entered prior to changing the field and columns to searchable would not. Tried clearing the cache to see if that would resolve the issue, but it did not. I ended up resubmitted those entries (which is a pain if you have a lot of entries) and now they seem to be working.

       
Robin Sowell's avatar
Robin Sowell
13,159 posts
8 years ago
Robin Sowell's avatar Robin Sowell

Hey doubleclick, could your issue be related to this bug?

What happens is if you switch a grid field/row to searchable, existing entries weren’t updating to be searchable. So NEW entries with a searchable grid field are found, but entries made before the field was set to searchable aren’t.

To see if that could be the problem- go find an entry you’re sure should be found but isn’t and just resave it in the cp. If it’s found now? That was the problem.

The bug was fixed in 2.11.0, so either updating and resaving the fields or resaving the entries in question would be the fix- if this is what’s going on.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.