How to fix search results indexable on Adobe Commerce (Magento)
Add a noindex robots meta tag to all internal search results pages and block the search path in robots.txt to prevent thin, duplicate, near-infinite pages from polluting Google's index.
Steps for Adobe Commerce (Magento)
- Log in to your Magento Admin and go to Content → Design → Configuration → (your store view) → HTML Head.
- Magento does not have a built-in per-page noindex toggle for search. Instead, create a custom layout XML file: app/design/frontend/<Vendor>/<Theme>/Magento_CatalogSearch/layout/catalogsearch_result_index.xml
- Inside that file add: <page><head><meta name="robots" content="NOINDEX,FOLLOW"/></head></page> — Magento's layout system will inject this only on search result pages.
- For robots.txt: go to Content → Design → Search Engine Robots, choose your store view, and add to the 'Edit Custom Instruction of robots.txt File' field: Disallow: /catalogsearch/ (Magento's default search path).
- Flush the Magento cache under System → Cache Management, then verify by loading /catalogsearch/result/?q=test and checking View Source.
<meta name="robots" content="noindex,follow">
# robots.txt addition (adjust path to match your platform)
User-agent: *
Disallow: /search
Disallow: /search/What is search results indexable?
When a visitor types something into your store's search box, the results appear on a URL like /search?q=red+shoes. These pages are generated on the fly — there are potentially millions of them (one for every possible search term). They contain no unique content of their own; they just pull together product listings that already exist elsewhere on your site. "Search results indexable" means Google can currently crawl and index these pages, which it should not be doing.
Letting Google index your internal search results wastes your crawl budget — Googlebot spends time on throwaway pages instead of your real product and category pages, which can slow down how quickly new products get discovered and ranked. These pages are considered "thin content" and can dilute the overall quality signal of your site, potentially dragging down rankings across your entire domain. They also create a near-infinite duplicate URL space (every search query is a new URL) that can trigger duplicate-content issues. Blocking them is a well-established best practice recommended by Google itself and costs you nothing in organic traffic — nobody finds your site via a search results page.
See the complete Search results indexable guide for every platform and the full background.
Not sure if your Adobe Commerce (Magento) store has this?
Run a free SEOLZ audit — we’ll find search results indexable and every other issue across your whole site.
Scan my site free