How can I include metafields value in my store's search results?

But I am looking for the metafields to produce results when my customers
search them, not when I search them. If I have already provided data in the
metafield the search architecture should be able to pull it into results.

I created a metafield definition via graphql, then added the metafield with the value “ABCD” to several products.

When I run this, I don’t get any matches:

query {
  	products(first: 10, sortKey: TITLE, query: "metafield:'custom.mymetafield':'ABCD'") {
      edges {
        node {
          id
          title
          mymetafield: metafield(namespace: "custom", key: "mymetafield") {
            value
          }
        }
      }
    }
  }

However, if I remove the , query: "metafield:'custom.mymetafield':'ABCD'" query clause, I do get back results:

{
  "data": {
    "products": {
      "edges": [
        {
          "node": {
            "id": "gid://shopify/Product/9018155073813",
            "title": "ACME Widget #105",
            "mymetafield": null
          }
        },
        {
          "node": {
            "id": "gid://shopify/Product/9021689889045",
            "title": "ACME Widget #142",
            "mymetafield": {
              "value": "ABCD"
            }
          }
        },
        {
          "node": {
            "id": "gid://shopify/Product/9021750739221",
            "title": "ACME Widget #142",
            "mymetafield": {
              "value": "ABCD"
            }
          }
        },
        {
          "node": {
            "id": "gid://shopify/Product/9044095303957",
            "title": "ACME Widget #149",
            "mymetafield": {
              "value": "ABCD"
            }
          }
        },
        {
          "node": {
            "id": "gid://shopify/Product/9017045352725",
            "title": "ACME Widget #152",
            "mymetafield": null
          }
        },
        {
          "node": {
            "id": "gid://shopify/Product/9023227953429",
            "title": "ACME Widget #157",
            "mymetafield": null
          }
        },
        {
          "node": {
            "id": "gid://shopify/Product/8997786943765",
            "title": "ACME Widget #163",
            "mymetafield": null
          }
        },
        {
          "node": {
            "id": "gid://shopify/Product/9020199633173",
            "title": "ACME Widget #165",
            "mymetafield": null
          }
        },
        {
          "node": {
            "id": "gid://shopify/Product/9021752836373",
            "title": "ACME Widget #166",
            "mymetafield": null
          }
        },
        {
          "node": {
            "id": "gid://shopify/Product/8995263414549",
            "title": "ACME Widget #17",
            "mymetafield": null
          }
        }
      ]
    }
  }
}

Are there other prerequisite steps that I need to do?

Where should I add this query to get results?
Thankyou!

Does somone find a solution for that in 2024?

It’s now 2025, and after all the song and dance about metafields in 2.0 what’s the point when we still can’t search them with Shopify native features.

When will this be implemented? This shouldn’t require an app to achieve.

You might find this is an SEO red flag, hidden text stuffed with keywords.

This is not recommended!

Is there any news about this ?
Knowing we got a lots of improvments regarding metafields & metaobjects recently, add it to search results should have been a part of the process no ??

I agree! Any news?

No news

Same thing here – can’t believe the topic was created in 2021 and that it’s still an issue 5 years later in 2026! Shopify you can do better.

See the changelog they’re busy with way more important things. https://changelog.shopify.com/
If everythings important then nothing is, ground expectations, or use the apis to build it yourself.


Metafields aren’t a first class resource.

Note how in this thread no ones talking about things like channel managing, publishing, privacy or security.
All of which are critical in how you frame such a feature request.
Otherwise this is just people asking that ALL metafields be dumped to the frontend-search which is never gonna happen.
There’s a reason using the api, or third party app is the goto as this point.

For actual feature request contact a shopify support advisor DIRECTLY
First think through what the actual request is , how it would work etc.
https://help.shopify.com/