Do not allow variant options come up in search results

Topic summary

Issue: Store owner selling tiles with many variants (color, size, finish) finds Shopify search returns products if any variant matches (e.g., a product appears for “white” or “600x1200” even if the displayed variant isn’t white/600x1200), cluttering results. A screenshot illustrates selecting 600x1200 yet many unrelated tiles appear because they offer that size.

Cause: Shopify indexes all product variants, not only the currently selected or default variant.

Suggestions offered:

  • Add precise tags (e.g., “White Tile”, “600x1200”) and adjust search to prioritize tags.
  • Modify theme search logic to prioritize specific variants in results (requires development changes).
  • Split key variants (e.g., by color) into separate products to improve relevance.

Latest update: The store owner requests concrete guidance for implementing options 2 and 3 and has development resources available.

Status: Unresolved. Action needed: Provide step-by-step direction/code approaches for customizing theme search behavior and structuring products as separate variant-based listings.

Notes: “Variants” are option combinations (color/size/finish). “Theme code” refers to storefront templates and search logic. The screenshot supports the behavior but isn’t essential to the fix.

Summarized with AI on December 12. AI used: gpt-5.

Hi,

I sell tiles and I have different colours, different sizes, different tile finishes. So one tile will have many different variant options in the listing.

I am having an issue though and that is when someone searches for a white tile, the green, yellow, black, charcoal tiles come up in the search results, because they all have a white option. The same problem comes with different sizes. In the screenshot below, you can see I selected the 600x1200 option but all these other tiles came up in the search results because they have a 600x1200 option.

How do I remove the variant options from populating the search results and cluttering it up?

Hi @BenardC ,

This happens because Shopify’s search indexes all product variants, not just the selected ones. Here are some ways to fix this:

  1. Add specific tags like “White Tile” or “600x1200” to each product and customize search to prioritize tags.

  2. If you have development resources, modify the search behavior in your theme’s code to prioritize specific variants in search results.

  3. If feasible, consider listing key variants (e.g., color-specific) as separate products to improve search relevance.

Hi,

Thanks for your help, how do you do 2 and 3? I have the resources to do it but need a bit of guidance on how to request it.