We are using the code below to display the search result at our Shopify website, but the search results contain wider results than we expect. For example, if we want to search ‘light’ at the search bar, it will return all products with ‘light’ in their title or description or collection type, but we want it only to return the result that matches the keyword with the product’s collection(e.g., street light). Can anyone please help with this issue?
Thanks in advance for any help.