Entry not showing up in search results? Can anyone help identify why one on my entries is not being picked up in my search query?

The search terms are 'hampshire 10k' and the craft_searchindex table for this entry looks like this:



The search string param is added as follows (along with a handful of other params) for any search

{ search: '*hampshire* *10k*' }


Unsure if it's down to bug or a templating issue? The keyword search forms part of quite complex entry search.
As Brad mentioned, you’re not getting any results because your search query requires both keywords to be present, but you don’t have any fields that have both keywords.

You can solve this with a hidden Preparse field that stores the content of all fields you want to be cross-searchable. Call it something like “Keywords”, and set its Twig template to:

{{ entry.myCustomFieldHandle }}
{{ entry.myOtherCustomFieldHandle }}


If you want to include any Matrix or relational fields in the keywords, remember the same templating rules apply here as on your front end templates:

{% for block in entry.myMatrixFieldHandle %}
    {{ block.myBlockFieldHandle }}
{% endfor %}

{% for relatedEntry in entry.myEntriesFieldHandel %}
    {{ relatedEntry.title }}
    {{ relatedEntry.myRelatedEntryFieldHandle }}
{% endfor %}


Once you’ve got that field set up and added to your section(s), you’ll need to re-save all of your existing entries before it takes effect. An easy way to do that is to go into the sections’ settings and just click the Save button, which will trigger a “Resaving Elements” background task for all entries in the section.