A search bar on a website has one job. Help someone find what they came for, fast. On a lot of the sites I check, it fails at that job in the first few seconds.
I test the search bar on every site before I call a build done. Most of what I find is not a hard problem. It is a skipped one. Nobody tested it against a real query before launch.
What a Search Bar Is For
A search bar exists for one kind of visitor: someone who already knows roughly what they want and does not want to hunt through a menu to get it. A returning reader looking for last month's post. A buyer checking if a specific service is offered. A student on a course platform jumping back to one lesson out of forty.
On a five-page business site, a search bar does nothing a clear menu could not do faster. On a site with fifty posts, a growing catalog, or a course with dozens of lessons, it earns its place. Scale is the whole test.
When a Menu Is Enough
For a small business in Phoenix with eight pages, five clear menu items beat a search bar every time. A search feature on a site that size usually gets built to cover for a menu that does not reflect what the business actually offers. The menu is the real gap.
That is the search bar request I turn down more than any other: a fix for a navigation problem, not a search problem. I wrote about what a main menu actually has to do in an earlier post, and most of that logic applies here. Clarity first, cleverness second. Fix the menu first.
What Breaks a Site Search
The common failure is a search box that only scans titles and ignores the body of the page. A visitor types the exact word the page is about and gets nothing back. Dead end.
A search bar that returns nothing teaches the visitor not to trust the next one either.
The second failure is speed. A search that waits on a full page reload before it shows anything reads as broken half a second after the visitor hits enter. Slow feels broken. Both failures end the same way: the visitor leaves, and the page that would have answered them sits unread.
The Signal Google Can Use
There is one piece of structured data built for exactly this. It is called sitelinks search box markup, and it sits on the WebSite schema. It tells Google your site has a working internal search, and in some results, Google adds a search field directly under your listing.
Google decides on its own whether to show that box, and it does not appear for every qualifying site. Nothing published confirms that adding the markup turns it on. It is cheap to add and does no harm either way, so I add it anyway. Worth the five minutes.
What It Does Not Do
A search bar does nothing for an AI tool like ChatGPT reading your site. Those tools do not type into your search box. They read whatever page a link points them to, the same way they always have. No shortcuts there.
So a search bar is a tool for the people already on your site, not a visibility fix. If pages are not getting found by Google or AI tools in the first place, the gap sits earlier: the menu, the internal links, the sitemap.
Who Actually Needs One
A search bar earns its place once a site has enough pages that browsing stops being the fastest path to a conversion. That usually includes:
- A blog or resource library past roughly thirty posts
- A course or training platform with more than a handful of lessons
- A catalog or portfolio with more items than fit in one menu
A course platform is the clearest case. I covered what a course website has to do in a separate post, and working search is one of the pieces that post assumes already exists.
Outside those cases, a search bar is effort spent on a problem the site does not have yet. That is worth saying plainly before anyone pays to build one. Spend the money on the menu instead.
If your site is big enough to need this, I build working search into the custom site from day one, tuned to search real content instead of just titles. If it is not big enough yet, I will say so before you pay for it.