> For the complete documentation index, see [llms.txt](https://docs.globo.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.globo.io/filter/search-products-by-metafield.md).

# Search products by Metafield

✨If you store custom information in metafields (e.g. material, brand, features), you can allow your customers to search for products based on those values using **Smart Product Filter & Search**.

To make this work, follow the two steps below.

***

### ⚡️ Step 1: Enable searching product data by Metafield

1. Go to your Shopify Admin → **Apps** → **Smart Product Filter & Search**.
2. From the left sidebar, click **Search** optio&#x6E;**.**
3. Select Metafields Search Fields
   * Scroll to the **Search Fields** section.
   * Tick the **Metafield** checkbox.
4. Click **Save** to update your search configuration.

<figure><img src="/files/qBArjMJPVA4QqxQkHHu7" alt=""><figcaption></figcaption></figure>

***

### ⚡️ Step 2: Enable Metafield in the App Settings

1. Open the **Smart Product Filter & Search** app in your Shopify Admin.
2. From the left menu, click **Settings** → go to the **Metafields** tab.
3. Click **Add Field** → Choose **Metafield**.
4. Enter your **metafield namespace** and **key** (e.g., `custom.material`).
5. Under **Applies to**:
   * Make sure to enable the **Search** option so that customer can search for this metafield data.
6. Click **Add**, then **Save** your changes.

<figure><img src="/files/EXv98JmRpkwhmuzD0d5A" alt=""><figcaption></figcaption></figure>

***

### 🔎 That’s it!

Your customers can now search for products using the values stored in your metafield.

***

### 💡 Example

Let’s say you use a metafield like `custom.material` with values like *Cotton*, *Linen*, or *Wool*. After setup, when someone searches "cotton", matching products will appear in search results.

***

### 💬 Need Help?

If you’re not sure about your metafield’s namespace/key or need help setting it up, just contact us at **<contact@globosoftware.net>** — we’re happy to help!


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.globo.io/filter/search-products-by-metafield.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
