How to Exclude Products From Search on Shopify
Hide products from Shopify search with Unlisted status or the seo.hidden metafield, handle variants and sold-out items, verify the change and undo it.

How to Exclude Products From Search on Shopify

To exclude a product from your Shopify store’s search, you have two official options. Set its status to Unlisted, or give it the seo.hidden metafield with a value of 1. They behave differently, and a third-party search app can ignore both. Pick the method by what else you want hidden (collections, recommendations, Google), then check the result in your live search bar. This guide covers each method, variants, sold-out items, verification and how to undo the change. It also covers what changes when your store runs a search app instead of Shopify’s built-in search.
If you would rather not manage search rules product by product, Indexa is a fully managed search and discovery service for Shopify stores, tuned for you on real store data.
TL;DR
- Unlisted status is the broadest switch. It hides the product from storefront search, predictive search, collections and recommendations, while the direct URL keeps working.
- The
seo.hiddenmetafield (value 1) hides a product from online-store search and search engines but leaves it in collections and recommendations. - A noindex tag only keeps a page out of Google. Shopify’s own search can still show it.
- Variants and sold-out items have their own rules. Use filters and the Search & Discovery app settings instead of hiding the whole product.
- A third-party search app may ignore all of these settings. Test your live search bar after every change.
Table of Contents
- Pick the method by what you want hidden
- Method 1: Set the product to Unlisted
- Method 2: Use the seo.hidden metafield
- Method 3: noindex tags are for Google, not for your search bar
- Hiding sold-out products from search
- Hiding variants without hiding the product
- Editing theme code: do it carefully
- Check that it worked, and reverse it
- When a search app is installed, the rules change
- Common mistakes
- Where managed search fits
- Our perspective
- FAQ
- Sources
Pick the method by what you want hidden
Before you touch a setting, decide what “exclude” means for this product. A discontinued item you want gone from everywhere is a different job from a wholesale-only item you want customers to reach through a private link. Shopify’s Managing searchability page lays out what each method changes:
| Method | Storefront search | Collections and recommendations | Search engines and sitemap | Direct URL |
|---|---|---|---|---|
| Unlisted status | Hidden, including predictive search | Hidden | Hidden | Still works |
seo.hidden = 1 |
Hidden | Still shown | Hidden | Still works |
| noindex meta tag | Still shown | Still shown | Hidden from search engines | Still works |
The table shows why the choice matters. If you set seo.hidden on a clearance item and later wonder why it still shows in “You may also like”, that is expected behavior. The metafield leaves recommendations and third-party sales channels alone.
Method 1: Set the product to Unlisted
Unlisted is the cleanest option when the product should be reachable only by someone who has the link. Shopify’s Product status and availability page explains that an unlisted product gets noindex and nofollow meta tags and is removed from the store’s XML sitemap. Search-engine crawlers cannot find it either.
To apply it:
- In your Shopify admin, open Products and select the product.
- Find the Status selector at the top right of the product page.
- Change it to Unlisted and save.
This suits private offers, gift-with-purchase items, sample products and pages you share through email only. The trade-off is scope: the product also disappears from your collection pages, so it is not the tool for “keep it in the collection but out of search”.
Method 2: Use the seo.hidden metafield
This is the method most Shopify search guides describe, and it is the right one when you want the product to stay visible in collections but not appear when a shopper types in the search bar. Per Shopify’s documentation, a value of 1 hides the product from sitemaps, search engines and online-store search.
If you manage indexing across a large catalog, Shopify SEO automation tools can help you keep the hidden flag consistent with what you want crawlers to see.
Create the metafield definition once
- In the admin, go to Settings, then Custom data, then Products.
- Add a definition with the namespace
seoand the keyhidden. - Set the type to a whole number (integer).
Shopify’s help page describes this setup in full, so follow its field names exactly. A typo in the namespace or key means the flag does nothing and the product stays searchable.
Hide a single product
Open the product, scroll to the metafields section, enter 1 in the SEO Hidden field and save. To make it searchable again, set the value to 0 or clear it.
Hide many products at once
For a seasonal cleanup, use the Bulk Editor. Shopify documents a Bulk Editor address in the form admin.shopify.com/store/STORENAME/bulk?edit=metafields.seo.hidden%3Anumber_integer&resource_name=Product. Replace STORENAME with your store handle. The editor opens a spreadsheet-style view with an SEO Hidden column. Enter 1 for each product you want out of search, or 0 to restore it, then click Save.
Tip: filter the product list first by vendor, tag or collection. Then you can select the exact group, such as last season’s markdown stock, and fill the column down.
Method 3: noindex tags are for Google, not for your search bar
A common mistake is adding a robots noindex tag and assuming the product has left your on-site search. Shopify’s Hiding a page from search engines guide shows how to add a noindex tag in the theme layout. It also says plainly that the page stays visible to storefront search. Use noindex when your goal is keeping a page out of Google. Use Unlisted or seo.hidden when your goal is the on-site search box.

The same difference explains a related point in Shopify’s Optimize storefront SEO documentation: resources hidden from the sitemap will not show in storefront search results either.
Hiding sold-out products from search
Sold-out items are the most common reason merchants want products out of search. By default, products whose variants are all unbuyable appear at the end of results. Shopify’s search behavior page, in its Traditional Chinese edition, says you can change this when the Search & Discovery app is installed. Go to Search & Discovery, then Settings, then Out of stock products, and choose how they should be handled.
That is better than tagging products one by one, because the rule follows inventory automatically. Products return to results when you restock them. We cover the setting, plus a Shopify Flow route, in our guide to fixing out-of-stock search on Shopify.
One thing to decide first: a shopper who searches for a sold-out item they loved last month may prefer to see it, with a back-in-stock option, rather than a blank page. Hide permanently discontinued lines. Keep temporarily sold-out bestsellers visible at the bottom.

Hiding variants without hiding the product
A product has variants (size, color, material) that can be searched or filtered separately. Shopify has no single switch that removes one variant from search while keeping the rest of the product. What Shopify does offer is variant-aware filtering:
- Shopify’s Search & Discovery filters documentation explains that variant metafield filters are built on metafields assigned to the variants in your store.
- Shopify’s storefront filtering reference lists variant option filters (such as color) and variant metafield filters, with accepted types including text, integer and boolean.
In practice, you can mark variants with a metafield, such as a boolean for “hidden” or “clearance”, and build your filters around it. Shoppers then narrow results to the variants you want them to see. For a fashion store, the typical case is a size run where only some sizes remain. Filtering by availability gives shoppers the sizes they can buy without pulling the whole product.
If the real problem is that the product itself should not show, use Unlisted or seo.hidden on the product. If the problem is that one color or size is dead stock, handle it through inventory and filters.
Editing theme code: do it carefully
Some merchants add a Liquid condition to the search results template so that products carrying a metafield are skipped. Community-tested versions of this exist for Dawn, Shopify’s default theme. The risk is that theme edits touch the whole storefront. A theme update can also overwrite your change, and one reported fix stopped working after a theme version upgrade.
If you go this route:
- Duplicate your live theme first and edit the copy.
- Make the change in the search results section only.
- Preview, test several searches, then publish.
- Re-test after every theme update.
For most stores, the built-in methods above are safer because Shopify maintains them.
Check that it worked, and reverse it
Do not trust the admin screen alone. Verify on the storefront:
- Check the data. Shopify’s Managing searchability page says to add
/metafields.jsonto the product’s admin URL and look for namespaceseo, keyhidden, value 1. - Search for it. Use the exact title, a partial title, a SKU if your theme indexes it, and a misspelling.
- Use a private window. This avoids cached results.
- Open the product URL directly. Unlisted and
seo.hiddenproducts should still load. - Check predictive search. The dropdown that appears as shoppers type is a separate surface from the full results page. See our guide to Shopify predictive search for how it works.
To reverse a hide, set the value to 0, clear the metafield value and save, or use the Bulk Editor with 0. For Unlisted, set the status back to Active.
When a search app is installed, the rules change
This is where most hiding efforts quietly fail. Shopify’s Search behavior page states that when a store uses a third-party search app, the app powers the store’s search. The documented behavior may not apply, and product visibility settings might not either. An app that is not integrated with Unlisted status can still return unlisted products.
It also notes that the built-in search needs no setup, has no setting for how broadly it matches, and that you can influence ranking only through product data and the Search & Discovery app.
So the practical sequence is:
- Find out which engine answers your search bar.
- Apply the hide method that engine respects.
- Test the live result.
Our overview of native, app and custom search integration on Shopify explains how the three setups differ. If the exclusion needs to sit inside the search layer itself, the search service has to support it, which is a good reason to choose that layer carefully.
Common mistakes
- Using noindex and expecting on-site search to change. It will not.
- Hiding with
seo.hiddenand expecting recommendations to follow. It leaves collections and recommendations alone. - Misspelling the namespace or key. The flag silently does nothing.
- Forgetting the predictive dropdown. Test it separately.
- Leaving hidden products in a campaign. If an email links to an Unlisted product, that is fine. If your homepage banner does, shoppers will find it.
Where managed search fits
Excluding products is one piece of search hygiene. The bigger loss usually comes from shoppers who search and get nothing useful: typos, natural-language phrases, synonyms the catalog does not use. Indexa is a managed AI search and discovery service for Shopify with typo-tolerant and semantic search, synonym mapping, a visual merchandising grid editor for search and category pages, and a no-code console. It integrates natively with the storefront, including Shopify Hydrogen. We do the setup, so you do not need to code, and we keep tuning relevance on your store’s real data. Billing is a one-time setup fee plus a flat monthly retainer, with no per-request fees, and you keep ownership of your data. A 30-day pilot is available, and you can see current terms on the pricing page.
If you want to see what your current search is losing before you decide anything, start with the free search audit.

Our perspective
Hiding a product is a small decision, but it exposes a bigger one: who controls what shoppers see when they type into your search bar? On a Shopify store that depends on the engine behind it, and most merchants have never checked.
We think search should be managed like a shelf in a physical shop. Someone looks at what shoppers ask for, what they do not find, and what should be pushed or kept out of view. Metafields and statuses are useful tools, but they do not tell you that shoppers keep searching with a typo and landing on an empty page.
That is why our service is fully managed. Typo tolerance and semantic matching catch what shoppers mean. The merchandising grid editor lets you shape results on search and category pages without code. Ongoing tuning on your own store data keeps relevance improving instead of drifting. Small brands in particular cannot afford a developer for every rule, and they should not need one to compete with larger stores.
Hide what should be hidden, and then make sure everything else is easy to find.
Barikreativa
FAQ
Does hiding a product from search also remove it from Google?
With Unlisted status, yes: Shopify adds noindex and nofollow tags and removes the product from the sitemap. The seo.hidden metafield also hides it from the sitemap and search engines. A noindex tag alone affects search engines only, and your on-site search can still show the product.
Can customers still buy a hidden product?
Yes, if they have the direct link. Unlisted and seo.hidden products keep a working URL. That makes them suitable for private offers, though you should keep those links out of public pages.
How do I hide products from search in bulk?
Use Shopify’s Bulk Editor with the SEO Hidden field for products. Enter 1 for the products to hide, 0 to restore them, and save. Filter the product list first so you select the right group.
Why does a hidden product still appear in my search bar?
The usual cause is a third-party search app answering the query. Shopify notes that such apps may not follow its visibility settings, including Unlisted status. A second cause is a mistyped metafield namespace or key, so recheck that it reads seo and hidden.
How do I hide out-of-stock products from search?
Install Shopify’s Search & Discovery app and open its Settings. Change the Out of stock products option to control whether sold-out items appear at the end of results or are left out.
Sources
- Shopify Help Center: Managing searchability
- Shopify Help Center: Product status and availability
- Shopify Help Center: Hiding a page from search engines
- Shopify Help Center: Search behavior in your online store
- Shopify Help Center: Search behavior (Traditional Chinese edition)
- Shopify Help Center: Adding filters with Search & Discovery
- Shopify.dev: Storefront filtering
- Shopify.dev: Optimize storefront SEO
Recommended
Make discovery work harder.
See what your Shopify search could do better with a free, hands-on audit.
Get your free search audit