Hi, I’m trying to limit my customers’ search results to only the info in the product tags. We sell wine and if someone searches for “red” it will bring up all cases where the word red is used, including examples like “you won’t find any hints of red berries in this white wine.” This is the exact opposite of what we want to happen! Instead we’d like to exclude the item description from the search feature and only look at the tags, so only wines tagged as red will appear when you search for the word red.
I’ve found tutorials on shopify help and I’ve seen other people ask this same question, but most answers say to look for item.object_type == ‘product’ which is missing in my code. I’ve copied the code from search.liquid below so you can see what I’m dealing with. How and where do I make these changes?
https://sampler-wine.myshopify.com/
password to view: ohpayp
Thank you!
SEARCH.LIQUID
{%- assign respond_js_secret_key = shop.domain | md5 -%}
{%- assign proImageSize = ‘600x’ -%}
{% unless search.terms == respond_js_secret_key %}