Why isn't search function pulling from product tags?

Hi all,

I’ve noticed that our search function is only pulling from product descriptions and isn’t recognising/finding tags (added in on the back end product page).

Example of the issue

We have one product that has the words “SFX” in the product description and one without. Both are tagged with “SFX” under the product organisation section. When we use the search on our website for the term “SFX” it will only pull the one with the words “SFX” in the product description rather than both.

Ideally we don’t want to word stuff our product descriptions and would prefer to have the search pull from product tags and descriptions rather than one or the other.

We are using the theme: Editorial

Website link is here: https://cosmicsunshine.com.au/

Our question is how do we get the search to pull from the Product tags?

If I search for “SFX” I get the coagulated-blood product returned in the list. Looks like the only place SFX shows is in the tag so appears to be working. Can you give an example of where it’s not working?

Sorry, i ended up finding the solution after posting this.

After doing a deep dive into the code i found a section on Theme > Main-search.liquid where i could change the code slightly to make it pull from both the description and tag.

Cheers

1 Like

Would you mind share a detailed explanation showing how younfixed this? Struggeling eith the same