Store header with a search box for Trail Runner GTX 2 and a dropdown reading Your search returned no results

Magento 2 Search Not Working? How to Fix Products Missing from Search Results

Magento 2 search not working usually reaches the team as a screenshot: a shopper typed the exact product name, copied from your own newsletter, and the store answered, “Your search returned no results.”

The product page opens from the newsletter link. Someone in the office runs the same search and gets the same answer. A developer says, right on cue, that it works on staging.

Storefront search in Magento (Adobe Commerce) passes each query to OpenSearch, a separate search server. OpenSearch answers from its own copy of your catalog, called the search index, and a background job called a reindex keeps that copy up to date.

Somewhere between the admin and that search box, the product went missing. The question is where, and how to tell without guessing.

Why Magento 2 search shows no results for products that exist

Storefront search and, with OpenSearch, category pages both ask the search engine, which answers from one index per store view built by the Catalog Search (catalogsearch_fulltext) indexer. A product appears only if the server answers, the index has been rebuilt since the change, and the product passed the index’s filters for that store view. New products also wait for the next update. Magento search not working for a product that exists means one of those conditions failed.

Check the five causes in this order:

  1. OpenSearch can’t be reached
  2. The Catalog Search index wasn’t rebuilt
  3. Visibility keeps the product out of search
  4. Stock and website assignment leave it out of the index
  5. New SKUs wait for the next search update

Match what you see on the storefront to the most likely cause before you change anything.

What you seeMost likely causeCheck first
Search and category pages are both empty, for every productOpenSearch can’t be reachedTest Connection in the admin, then the logs
Search shows old results and nothing has changed since a certain day, or Catalog Search shows Reindex RequiredThe index wasn’t rebuiltbin/magento indexer:status catalogsearch_fulltext
One product is missing from search while its product page opensVisibilityVisibility for that store view
A product is missing in one store view or website only, or after it sold outWebsite assignment or stockProduct in Websites, Salable Quantity
Only recently added products are missingWaiting for the next updateBacklog and cron
What you see when Magento search fails, the likely cause, and what to check first
Flow from Magento admin save through the Catalog Search indexer to search results, with five numbered failure points.
A product reaches search results only after every step in this chain works for its store view.

1. OpenSearch can’t be reached

When the search engine doesn’t answer, Magento logs the error and carries on with an empty result. Shoppers see “Your search returned no results,” and category pages show “We can’t find products matching the selection.” Those are the same messages a search with no real match gets. Every other check in this article assumes the server answers, so start here.

The Magento OpenSearch settings are in the admin under Stores > Settings > Configuration > Catalog > Catalog > Catalog Search. Check Search Engine, OpenSearch Server Hostname, and OpenSearch Server Port (the defaults are localhost and 9200), then OpenSearch Index Prefix (default magento2), and click Test Connection. Adobe’s search engine configuration guide describes each field.

From the command line, this should return opensearch.

bin/magento config:show catalog/search/engine

Adobe’s check that the server itself is running looks like this. Replace the sample credentials with your own.

curl -XGET https://<host>:9200 -u 'admin:admin' --insecure

Then search var/log for No alive nodes found in your cluster or Could not ping search engine. The first comes from the OpenSearch client when no node answers, and the second from Magento’s indexing side.

If Test Connection fails, Adobe’s checks are to confirm that the server is running, look at the firewall and SELinux settings, and verify the port. An empty hostname, or HTTP auth switched on without a username or password, gives a different error: “The search failed because of a search engine misconfiguration.”

After you change any of these settings, Adobe says to reindex Catalog Search and refresh the page cache.

bin/magento indexer:reindex catalogsearch_fulltext
bin/magento cache:clean

When OpenSearch answers but can’t save changes

OpenSearch has a safety limit for full disks. At 95% disk use, called the flood stage, it puts a read-only block on every index with data on that node. It lifts the block only when disk use falls below the 90% high watermark, as the OpenSearch cluster settings describe.

Search keeps answering from the old data while Magento can’t write updates, so a full disk looks like cause 2 or cause 5. Check disk space on the search server first.

Adobe’s knowledge base gives the usual reasons a Catalog Search index stays on Reindex Required: OpenSearch configuration, locks, cron failures, resource limits on the search server, and extension errors. A circuit_breaking_exception (“Data too large”) in the logs is one of the OpenSearch errors it names. It also warns, “Do not delete OpenSearch indexes as a first troubleshooting step.”

Check that your Magento version supports your search engine

Adobe’s system requirements list these on-premises search engines for the latest patch of each release.

Magento releaseOpenSearchElasticsearch
2.4.93Not listed
2.4.838 (deprecated)
2.4.72.19 and 38
2.4.62.19 and 3Not supported
2.4.52.19Not supported
2.4.42.19Not supported
Search engines Adobe lists for each Magento 2.4.x release, latest patch

Elasticsearch 7.17 reached end of support on January 15, 2026.

In 2.4.8, Adobe labels the Elasticsearch options “(Deprecated)” in the admin, and the 2.4.8 release notes say Commerce “is no longer compatible with Elasticsearch,” while the requirements page still lists Elasticsearch 8. Treat Elasticsearch on 2.4.8 as unsupported and move to OpenSearch.

Our guide to Magento server requirements covers the rest of the stack.

๐Ÿš€ Quick takeaway

If search and every category page went empty at the same moment, look at OpenSearch before any product: Magento shows its normal empty messages when the search server doesn’t answer.

2. The Catalog Search index wasn’t rebuilt

The search index is a copy, and some changes make Magento mark the whole copy out of date. Until a full rebuild runs, nothing new reaches search. That happens when you change a product attribute’s Use in Search, Use in Layered Navigation, or Visible in Advanced Search setting, and when you create or delete a store view. After a change to the search engine settings, Adobe says to rebuild it too.

Check the status of the indexer first, from the command line or in the admin under System > Tools > Index Management.

bin/magento indexer:status catalogsearch_fulltext

“Reindex Required” means cron’s indexer_reindex_all_invalid job, which runs every minute, hasn’t rebuilt the index yet. Adobe’s own advice for that status is to check that cron is available and configured correctly, so look at cron before anything else.

To rebuild the index by hand, run the reindex for this one indexer.

bin/magento indexer:reindex catalogsearch_fulltext

If the status stays on Reindex Required after that, Adobe’s Catalog Search reindex article says to reset the indexer and run it again.

bin/magento indexer:reset catalogsearch_fulltext
bin/magento indexer:reindex catalogsearch_fulltext

Then search var/log for Errors happened during catalog search reindex, the line Magento writes when documents fail to save to the search index. If that line is there, read the error logged next to it before you run the reindex again.

Our hub guide explains how Magento indexing works, including the indexer modes.

Why a full rebuild doesn’t empty search while it runs

For each store view, Magento creates a new index next to the live one, for example magento2_product_1_v2 beside magento2_product_1_v1. It fills the new index, points the alias magento2_product_1 at it, and deletes the old one.

Shoppers keep searching the old copy until that store view’s rebuild ends. Search isn’t empty during the rebuild, and the changes appear all at once at the end.

You can watch this on the search server. The first command shows which index each store view’s alias points to, and the second shows how many products each index holds, with one index per store view.

curl -XGET 'https://<host>:9200/_cat/aliases?v' -u 'admin:admin' --insecure
curl -XGET 'https://<host>:9200/_cat/indices?v' -u 'admin:admin' --insecure
A Magento store view alias pointing to the old OpenSearch index while a new versioned index fills, then switching to it.
During a full rebuild shoppers search the old index, and the new one replaces it when the rebuild ends.

Magento’s Visibility setting controls where a product can appear. Search results show only products set to Search or to Catalog, Search, and the default is Catalog, Search. Visibility is set per store view, so a store view value overrides the default for that language or country only.

Products set to Not Visible Individually aren’t written to the search index at all. Products set to Catalog are in the index, because category pages need them, but search results leave them out while their product page still opens. That matches the screenshot at the top: the product page opens, and search finds nothing.

Status is part of the same filter. A product that isn’t enabled is left out of the search index, and Enable Product is checked per website.

Configurable products add one more case. The simple products under a configurable product are usually set to Not Visible Individually, which is normal. Only enabled child products add their data to the parent’s search entry, such as their names or SKUs when those attributes are searchable.

To fix it, open the product in the admin and switch the scope to the store view where it’s missing. Check Visibility and Enable Product there, then save.

4. Stock and website assignment leave it out of the index

Each store view’s search index holds only the products assigned to that store view’s website and, while Display Out of Stock Products is No (the default), only products in stock. Magento drops the rest while it builds the index, so search can’t find them on that website even though the product exists in the admin.

Start with the website. Open the product form and look at Product in Websites. A product you add to another website shows in search there once the search index picks up the change. Our guide to websites and store views explains how the levels relate.

Then check stock. With Magento’s inventory modules (MSI), stock is checked per stock linked to the website. Quantity in a source that isn’t linked to that website’s stock counts as nothing there.

The Salable Quantity column in Catalog > Products shows what each stock can sell. When a product’s salable status changes, MSI triggers a Catalog Search update for it.

Display Out of Stock Products is under Stores > Settings > Configuration > Catalog > Inventory > Stock Options, and it’s a global setting. Set to Yes, it keeps sold-out products in search and in categories.

For the full stock and salable quantity checks, see our guide to products missing from the storefront.

๐Ÿš€ Quick takeaway

Missing in one country’s store and fine in another? Compare that website’s settings first: its product assignment, the stock linked to it, and the store view’s own Visibility value.

5. New SKUs wait for the next search update

With Update on Save, saving a product in the admin updates its search entry right after the save. With Update by Schedule, the save is written to a changelog, and cron’s indexer_update_all_views job applies the changes every minute, in batches of 1,000 IDs. Imported products depend on the indexers, and so on cron, to reach search.

A new SKU waits when cron isn’t running, when the backlog is large, or while a full Catalog Search rebuild is in progress. Magento holds back that indexer’s scheduled updates until the rebuild ends, and changes saved in the meantime stay in the changelog.

On stores we support, we have seen this more than once. New products were missing from search for days while older products searched fine, and the reverse also happened, with removed products still showing in results.

Start with the indexer status.

bin/magento indexer:status catalogsearch_fulltext

A scheduled indexer shows its queue as idle (N in backlog), and a large number there means changes are recorded and still waiting.

Next, look in the cron_schedule table for recent indexer_update_all_views runs, and find out whether a full reindex is running or was running when the product was saved.

If full rebuilds are the cause, schedule them outside business hours.

Timeline of a new Magento SKU reaching search through scheduled updates, and waiting until a full rebuild ends.
Scheduled updates add a new SKU within minutes, unless a full Catalog Search rebuild is running.

When the search reindex itself takes too long

A full Catalog Search rebuild repeats for every store view, and on a big catalog it can hold new SKUs back for a long time.

Tune it first. MAGE_INDEXER_THREADS_COUNT lets the full Catalog Search reindex run store views in parallel, which needs PHP’s pcntl extension, and our separate guide shows how to speed up a slow reindex. Give OpenSearch enough memory and disk too, though a bigger server still runs the same slow work.

If the rebuild is still too long after tuning, Expedio Indexers replaces Magento’s own indexers with ones written in Go that write the same index data. It runs beside Magento, and your theme, extensions, and admin stay as they are. On scandiweb’s test store (53,000 products, 2 websites, 9 store views, and a tuned database), a full catalog search reindex took 38 min 52 s with Magento’s own indexer and 2 min 12 s with Expedio Indexers, 17.6 times faster in the published benchmark. It doesn’t fix an OpenSearch server that doesn’t answer, Visibility, stock, or website settings, or a cron that doesn’t run. A store with one store view, a small catalog, and a five-minute reindex doesn’t need it.

๐Ÿš€ Quick takeaway

A full Catalog Search rebuild started during the day holds back every scheduled search update until it finishes. Run full rebuilds at night and let scheduled updates handle the daytime.

Magento 2 search FAQ

How do I reindex catalog search in Magento 2?

Run bin/magento indexer:reindex catalogsearch_fulltext. On Magento 2.4, this rebuilds the OpenSearch or Elasticsearch index for every store view. Check the result with bin/magento indexer:status catalogsearch_fulltext, which should show Ready. Ongoing updates need cron to run, so if the status stays on Reindex Required, check cron before you run the command again.

Does Magento 2.4.8 support Elasticsearch?

Adobe’s system requirements still list Elasticsearch 8 for Magento 2.4.8, but the release notes call Elasticsearch deprecated and no longer supported. Magento 2.4.9 lists OpenSearch only, version 3, with OpenSearch 2.x still compatible. Move to OpenSearch, and plan the switch together with your upgrade to 2.4.9.

Why does Magento search find a product by name but not by brand or SKU?

Search only looks in attributes set to Use in Search. You’ll find the setting under Stores > Attributes > Product, in the attribute’s Storefront Properties. Changing it marks the whole Catalog Search index invalid, so the change shows after the next full rebuild. If the attribute is searchable and results are still poor, the problem is relevance, and our search relevance best practices cover it.

Why do deleted or disabled products still show in Magento search?

Search answers from its index until the index is updated, so the causes are the same as for new SKUs. Look for a backlog, a full rebuild in progress, or a cron that isn’t running, and check bin/magento indexer:status catalogsearch_fulltext first. On stores we support, we see this next to the new-SKU delay.

Why does Magento search work in one store view but not another?

Each store view has its own search index, its own Visibility values, and its website’s product assignment and stock. Compare those for the store view where search fails. A newly created store view also marks the Catalog Search index invalid, so its search stays empty until the full rebuild runs.

Getting Magento 2 search working again

Magento 2 search not working looks like one fault on the storefront, because the same empty message can come from any of the five causes. Checking them in a fixed order saves guesswork.

Confirm that OpenSearch answers and has disk space. Read the Catalog Search status, and rebuild the index if it says Reindex Required. Then open the product in the store view where it’s missing and check Visibility, Enable Product, website assignment, and salable quantity. If the product is new, look at the backlog and at cron, and find out whether a full rebuild was running when it was saved.

You don’t need to delete an index for any of these checks, and Adobe advises against it as a first step.

Send us the search that failed and your indexer:status output, and we'll tell you which of the five causes it is.

Share on:

Share on X Share on LinkedIn Share on Facebook

You may also like