0

I have a site setup with a search box. The search looks in a channel field made with Grid. For some reason the results are not being displayed from the Grid, even though all other channels work as planned. Is this a bug in 2.7.2?

9
  • Do you have any columns set as "searchable" within your grid field? Nov 14 '13 at 18:03
  • All columns and grid fields are set as searchable Nov 14 '13 at 18:06
  • Probably need to add some of your template code for the results. Nov 14 '13 at 18:13
  • It is just stating no results found. Nov 14 '13 at 18:23
  • Please post your search form and search results template code so we can make sure it's not an issue with your code. Nov 14 '13 at 18:38
0

I've run into a very similar instance in which I didn't specify search_in="entries" as a parameter so that the search runs into the entry fields rather than just the titles.

Without seeing your search form code, it is hard to say, but it sounds like this is your issue. If you are expecting to see results from content inside custom fields and aren't seeing it, try entering a search term for the title of your entry. If it yields results, change your search form to include the above parameter and try again. ;)

Per the docs:

search_in=¶

search_in="entries", search_in="everywhere", search_in="titles" This parameter specifies which fields you would like to include in the searching. There are three possible values:

entries: The search will be conducted in the entry fields and titles of your channel. The associated comments will not be included.

everywhere: The search will be conducted in the title, entry fields, and in associated comments.

titles: The search will be conducted in the title of your entries. The channel entry fields and any associated comments will not be included. If this parameter is not set, the search will default to only search by “titles”.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.