What breaks

Search bar not working on website: 3 causes

A visitor types a product name, presses Enter and the page does not change, or it shows no results. The box is there, so they assume the store does not stock the item.

5 visitors try to .
First test free with an accountRun it from your coding agent

Why is the search bar not working on my website?

There are three likely faults. The box may not send the query when Enter is pressed, the results address may not exist or may read a different parameter name than the form sends, or the search index may not contain the pages the visitor is looking for. Type a word from a page title, then a word from its body: if the title finds the page and the body does not, the index is the cause. A simulated visitor types a query and shows whether the results page loaded and what it held.

What this looks like in a report

Who
Gabriel, looking for a replacement filter for a water heater
How they arrived
Searched for the filter model and opened a supplier's site
Where they stopped
Search box on the home page, after Enter

“I typed the filter model and pressed Enter, and the page did not change at all. I clicked the magnifier and it went blank with no list. I assumed they did not stock it, so I went to another supplier.”

The fix. Send the query on Enter and on the button click, to a results address that exists and reads the same name the form sends. Rebuild the index after each new product, so both titles and body text return results.

An illustration. Run a test to see your own.See a real sample report

The box takes the text, and nothing answers Enter

A visitor types a product name in the search box, presses Enter and waits. The box still shows their text and the page has not moved. They click the magnifier and get the same result, or a page with the search box and no list. Some sites send the query to an address that does not exist, so the visitor lands on not found. Others send it to a page that reads a different word from the address, and that page reports no results for a product the store sells. The visitor cannot see which of these happened, so they guess the store does not stock it.

  • Type a product name and press Enter. Does the address change to show the query?
  • Click the magnifier as well. Does it run the same search as Enter?
  • Search for an exact page title, then a word from that page's text. Do both return it?
  • Open the results address by hand with a word in it. Does the page load and show results?

Enter does nothing, or the address never changes

A search box inside a plain form sends its text to the results address when Enter is pressed, with no script involved. Many broken boxes are not in a form at all, or the form's submit has been replaced by a script that expects a click on the magnifier. In that case Enter does nothing and the click works, which is why a visitor who tries Enter first decides the whole search is dead. Watch the address bar after a query. If it does not change, nothing reached the results page.

A changed address is a useful signal. If the address now shows the query, the box is sending it and the fault is later, on the results page. If the address stays the same and the box still shows the typed text, the handler is missing or the script behind it did not load. Check the Network tab after Enter for a request to a search address. No request means no search.

The results page reads a different name

The form and the results page have to agree on the name of the query. A box that sends its text as q will find nothing on a results page that reads s, even though both pages look fine. The visitor sees a results page with a heading and no items, and the store appears to have nothing for sale. Changing a theme, a plugin or a page template is a common way for the two names to drift apart.

Test it by opening the results address by hand with a word in it, the same way the form would build it. If the page loads with the item, the box is at fault and the name needs matching. If the page is blank even when typed by hand, the results page itself is broken and the box is not the cause.

The index holds titles but not the body text

Many site searches look through an index built from page titles and product names, and the body text is added separately or not at all. A new product may appear when you search its exact title and vanish when you search a word from its description. The search then looks broken, when the index is simply thin. Search for one new product by its title, then by a word from its text. The first working and the second failing points at the index.

Rebuild or refresh the index when your platform allows it, then repeat both searches. The test does not show how often visitors search or which words they use, so read your search logs for that. It also cannot tell you whether the results are the best ones for a buyer, only whether the page returned the items the visitor typed.

What you get with Mimiq

  1. 01

    Run it by hand, or on every pull request

    Paste a link and a task in the app and watch the visitors work. Or run them on every preview deploy: the GitHub Action comments on the pull request, any other CI can call the MCP endpoint, and your coding agent can run it too.

  2. 02

    Bugs and usability problems in one report

    The browser records errors and failed or slow requests on the step they happened. The visitors say where the wording or the steps confused them, and where they left.

  3. 03

    Visitors that behave like your audience

    Each visitor is a different profile with a reason to be there, matched to who the page is for, described by you, or built from your own customers.

  4. 04

    A prompt to fix each problem

    Every problem comes with a fix to paste into Cursor, Claude Code, Lovable or any coding agent, and one prompt hands over the top problems at once. Then send the same visitors through again.

  5. 05

    Follow every visitor

    See each visitor's whole path, step by step with screenshots, and what it was thinking at every step. Ask any visitor a question.

The browser records relevant JavaScript errors and failed or slow app requests encountered during the run, attached to the step where they occurred. The visitors are simulated: they find problems, they do not predict how many real people will convert.

A new product or a moved results page can empty search again

New products, a changed results address or a new theme can empty search again, even after it worked. Search for one new product by its title and by a word from its text after each change. A search behind a login can be tested with a test account from paid credits.

Starter

Try it on one launch

$9 once
120 credits, never expire

24 visitors, about 4 tests of 5

  • Visitors on your landing page, signup and checkout
  • Where they left and why, with a fix to copy for each problem
  • Run it in the app or on every pull request
  • Ask any visitor a question, included
  • Test accounts and protected previews
Buy 120 credits

Builder

Test every build

$19 a month
500 credits every month

100 visitors, about 20 tests of 5

  • Everything in Starter
  • Credits refill each month, and what is left rolls over once
  • Cancel anytime
Choose Builder

Pro

Test every release, as a team

$49 a month
1,500 credits every month

300 visitors, about 60 tests of 5

  • Everything in Starter
  • Credits refill each month, and what is left rolls over once
  • Cancel anytime
Choose Pro

Scale

Test at scale, every day

$149 a month
6,000 credits every month

1,200 visitors, about 240 tests of 5

  • Everything in Starter
  • Credits refill each month, and what is left rolls over once
  • Priority support
  • Cancel anytime
Choose Scale
$0for your first test, with a free account (Google or email, no card). It includes 50 credits, enough for 10 visitors. After that a visitor uses 5 credits, and packs start at $9 for 120 credits.
See a sample report

Questions

Does the search bar need JavaScript to work?

Not always. A search box inside a plain form sends the query to the results address when Enter is pressed, with no script at all. A script takes over only when the site wants instant results, so a broken script can stop a box that worked before.

Why does search work for some products and not others?

Usually the index is missing those pages, or their titles use words the search does not match. Search the new product by its exact title. If that works, the index holds the title and the body text is the gap.

Can a simulated test show the search results are right?

No. It shows whether the results page loaded and what it held for the query. It cannot tell you whether those are the best results for a buyer, so judge the ranking yourself.

Should I add a search box to every page?

Only if visitors search your site more often than they browse it. A box that fails on every page costs more trust than no box at all. Test it on a phone and on a laptop before you add it to the header.

What is a site search index?

It is the list of pages and their text that the search looks through. It is built when the site is published or on a schedule, and a page missing from the list cannot appear in results. Check the search settings your platform gives you for when it updates.

Keep reading

Send visitors and see what breaks first.

Your first test is free: sign in with Google or email and it starts right away. Last checked 2026-12-03.

5 visitors try to .