Site Search Not Working: Why It Finds Nothing
Hannah Feld -
Here is an invented example. A visitor types "refund" into a shop's search box and sees "No results found". Your page is called "Return policy". It exists, it is linked in the footer, and the search does not know it is the answer.
To the visitor, the search is broken. To you, the content is all there. Both are true, and the gap between them is where most empty results come from.
What an empty result looks like from the other side
People do not read the message as "your query did not match". They read it as "this site has nothing about that". Some will leave, and others fall back to the menu and guess.
The Nielsen Norman Group describes the same pattern in its guidelines for "no results" pages: users land on them after typos and clumsy wording, and also when the content is there but does not count as a match for what was typed. The article adds that an understated message is easy to skip, so the result page should state the outcome in the main area, not in small text by the logo.
Why the search finds nothing
Before touching settings, sort the failures into four causes.
- Different words: the visitor says "refund", the page says "return policy". Plain search matches letters, not meaning.
- Typos and word forms, such as "shiping", or "recipes" against "recipe". Some search tools handle this out of the box and some do not.
- Content the search never sees: pages behind a login, text inside images or PDFs, and pages added after the index was last built.
- Titles that say little. A page called "Info" or "Welcome" gives the search nothing to match.
There is one more cause on the visitor's own device. If the search works in one browser and not in another, test with extensions turned off and a fresh private window. A script blocker can stop the search script from loading at all. If it works there, the site is fine and the problem is local.
Diagnose it with real queries
You do not need to guess. Use what visitors have already typed.
- Get the search log. Most analytics tools and search plugins can list what people searched for on your site. If yours cannot, ask the visitors: put the question "What were you looking for?" on a page for a week.
- Take 20 queries. Choose the most common ones and a few odd ones. Twenty is a working size for a small site, not a magic number.
- Run each one yourself. Mark every query that returns nothing or returns the wrong page first.
- Sort the marks into the four causes above. Your own log will show which cause dominates on your site.
The repairs, one per cause
For different words, add the visitor's term where the page can be found by it. If your search tool has a synonym list, add "refund = return policy". If it does not, put the word on the page itself: a line under the heading such as "Refunds and returns" costs nothing.
For typos, switch on spelling tolerance if the tool offers it. If not, add the most common misspellings from your log to the synonym list.
For content the search cannot see, check what is indexed. Refresh the index after you publish, and put the key text of a PDF into the page body.
For vague titles, rename the page. "Return policy" becomes "Returns and refunds". In most search tools the title is one of the first things matched, so it is worth the edit.
Last, give the empty page something to say. Show the query again in an editable box, suggest a shorter wording, and link to the FAQ and the contact page. The same article lists these as ways to give the visitor a next move, which keeps a failed search from ending the visit.
Check that it improved
Run the same 20 queries again after your changes. Count how many return the right page first. Next month, look at the log again, because visitors will have brought new words. Treat it as a monthly ten-minute job, not a one-time cleanup.
One limit: synonyms cannot fix a page that does not exist. If a query shows up often and you have no page for it, the log has just told you what to write next.