Why isn't search function pulling from product tags?

Solved

Why isn't search function pulling from product tags?

ShaneMiller
Tourist
12 3 2

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? 

 

Accepted Solution (1)
ShaneMiller
Tourist
12 3 2

This is an accepted solution.

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 

View solution in original post

Replies 3 (3)

Jason
Shopify Partner
11207 226 2318

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?

★ I jump on these forums in my free time to help and share some insights. Not looking to be hired, and not looking for work. http://freakdesign.com.au ★
ShaneMiller
Tourist
12 3 2

This is an accepted solution.

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 

Benkor
Tourist
12 0 1

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