Customers who use the search box usually know what they want, so they’re among your most likely buyers. When their search returns nothing, most of them leave. Magento records every search, so you can see exactly which ones fail.

Find the failing searches

In the admin, go to Marketing > SEO & Search > Search Terms. Filter or sort by Results = 0, then sort by Uses to see the most common ones first.

Or with SQL:

SELECT query_text, popularity FROM search_query
 WHERE num_results = 0 AND popularity >= 5
 ORDER BY popularity DESC LIMIT 50;

Why searches fail

Usually not because the product is missing, but because of words:

  • brand or model names your product data doesn’t contain
  • abbreviations, plurals and spelling variants
  • local or Arabic terms for products described in English

Fix them

  • Synonyms: under Marketing > SEO & Search > Search Synonyms, link the term customers use to the words in your catalog, for example “tee” and “t-shirt”.
  • Redirects: on a search term, set a redirect URL to send that search straight to the right category or product.
  • Product data: add common names and model numbers to product names or searchable attributes.

The real opportunity

Searches for things you don’t sell are a free list of what customers want. Review them monthly with whoever plans your stock.

Catch it automatically

MageMonitor checks for this every few minutes as part of its Search checks, and alerts you by email, Slack or webhook the moment it appears, with the exact commands to fix it. See MageMonitor for Magento 2.

Related fixes