Metafield Data in Search Results

Could someone please tell me where to put this on the Canopy theme? It’s absolutely ridiculous that it’s 2025 and Shopify STILL hasn’t included metafield data in search results when it’s been requested for a few years now.

https://community.shopify.com/post/1945709

Hi @LAHerb

For the Canopy theme specifically, you’ll need to customize the search logic manually to pull in metafield data. Usually, this means editing your search.liquid or predictive-search.liquid file (depending on your theme version) and using Liquid to reference the metafields you want to display or index.

However, it’s important to note that Shopify’s native search doesn’t index metafields out of the box, so even if you reference them in your theme, they won’t be searchable unless you’re using a workaround or an app.

Here are a couple of options:

Use a third-party app like Searchanise or Algolia – they support metafield indexing and offer more control over search functionality.

Sync metafield data to searchable fields like product titles, tags, or descriptions using an automation tool (like Shopify Flow or a custom script) — not ideal, but works in a pinch.

Custom app or storefront if you’re going headless or want full control.

If you’re trying to display metafield content in the search results rather than make it searchable, that’s a bit easier — just grab the relevant metafield in the search result template and output it with something like:

{{ item.metafields.namespace.key }}