Does your website need a search box?
A site needs search when visitors arrive looking for one specific thing among many: a product from a large range, an answer in a help centre, a recipe, an article or a listing in a directory. On a site with a handful of service pages, clear navigation gets people there faster.
The signs I look for: more pages or products than a menu can show, visitors who already know the name or code of what they want, and content that grows every week. If none apply, spend the budget on navigation and category pages instead.
Search or filters: which does your site need?
Search serves people who can name what they want. Filters serve people browsing a category who want to narrow it by size, colour, price or availability. Most stores need both.
On Shopify, the Search & Discovery app creates filters that refine products on collection pages and in search results. Standard filters for availability, category, price, product type, tags and vendor are available to all stores, custom filters can use product options, metafields or metaobjects, and a store can have up to 25 filters. Collections with more than 5,000 products don't display filters, and if the theme doesn't support filters, customers won't see them (Shopify: Search & Discovery filters).
Filters are only as good as the data behind them: "Navy" and "Navy blue" show as separate values unless someone groups them, which the app allows. So I settle attributes early on a Shopify store build, as in my guide to preparing product data before an import.
What does built-in search do on WordPress, Shopify and Webflow?
| Platform | What it searches | Worth knowing |
|---|---|---|
| WordPress | Title, excerpt and content of posts, pages and other content types | Custom fields are not searched without extra development |
| Shopify | Products, plus pages and blog posts if the settings ask for them | Predictive search and typo tolerance are built in |
| Webflow | Site content, indexed when you publish | Needs a Premium Site plan (or legacy CMS Site plan) or above |
WordPress: core search looks in three columns, post title, excerpt and content, across every content type not set to exclude_from_search, and orders results by relevance, with whole-phrase and title matches first (WordPress: WP_Query). Results use the theme's search template (WordPress: template hierarchy). Custom fields, such as a size or a part number, are not among those columns, so searching them is extra work on a WordPress build.
Shopify: online store search needs no setup and includes predictive search and typo tolerance by default (Shopify: storefront search). Products are searched by title, description, product type, tags, vendor, variant title, SKU and barcode, and singular and plural forms match. Two limits surprise content-heavy stores: results include up to 2 pages or articles, on the first page only, and you can't change how results are ordered, only influence it through product data and the app (Shopify: search behavior). Predictive search returns up to 10 results by default and must be a feature of your published theme (Shopify: predictive search).
Webflow: site search is available on Premium Site plans (and legacy CMS Site plans) or above, and Starter or Basic sites only show sample results. By default it indexes everything except components, randomised Collection lists, utility pages and password-protected content, and it does not index content only accessible with a User Account. The results page shows up to 60 results, with no pagination yet. On the Premium Site plan, automatic reindexing happens 12 hours after a full-site publish; publishing a single CMS item does not trigger it (Webflow: site search). On a Webflow build with frequent CMS updates, agree who reindexes and when.
What should you decide before a developer builds search?
Put these in the brief and the quote will describe the real job:
- What is searchable: products, pages, posts, help articles, files, members-only content, and what is not, such as thank-you pages.
- Which fields: titles and descriptions are the usual default; SKUs, tags, ingredients, authors or custom fields may need extra work.
- Suggestions as you type: whether a dropdown shows products, pages or search terms before the visitor presses Enter.
- Your customers' words: terms people use that differ from yours ("sofa" and "couch", a nickname, a common misspelling), so the developer can check each one.
- The results page: what each result shows (image, price, category, a short snippet), how results are grouped and whether filters sit beside them.
- The no-results page: a helpful message, popular categories or articles and a way to contact you, instead of a blank page.
- Mobile: where the search icon sits, whether search opens full screen and whether the keyboard hides the suggestions.
When does a site need a dedicated search service or a custom build?
Built-in search covers most small and mid-sized sites. A dedicated search service or a custom build makes sense when:
- The catalogue is very large, or filters need rules the platform cannot express.
- The site runs in several languages and each needs its own results. Webflow shows results from the currently selected locale (Webflow: site search); see my article on multilingual website decisions.
- Members-only content must be searchable by members and hidden from everyone else, a permissions question first (see members area decisions).
- Search spans several systems, such as a store, a help centre and a document library, or sits inside a dashboard as part of web app development.
Weigh the trade-offs. On Shopify, if a third-party search app powers your search, that app controls the results and product visibility settings might not apply (Shopify: search behavior). If a Webflow site's code is exported to run elsewhere, its site search stops working (Webflow: site search). Ask whether a service has its own subscription and whose account it sits in, and check the current plan before you commit.
Should your site's search results pages appear in Google?
Usually not. Answering a robots.txt question, Google's Search Central team said you might not want to allow crawling your internal search results (Google: SEO office hours, July 2023). Choose one method, because the two can cancel each other out:
- robots.txt tells crawlers which URLs they can access. Google says it is used mainly to avoid overloading your site and is not a mechanism for keeping a page out of Google (Google: robots.txt introduction).
- noindex, in a meta tag or HTTP header, keeps a page out of results, but only if robots.txt does not block it; otherwise the crawler never sees the rule (Google: block indexing with noindex).
Filters raise the same question at scale. Google explains that faceted navigation built on URL parameters can generate infinite URL spaces; if you don't need those URLs indexed, it recommends preventing their crawling and allowing the item pages plus an unfiltered listing page (Google: faceted navigation). On Webflow, excluding content from site search does not affect how Google indexes your site (Webflow: site search), so the two are separate settings.
How do you see what visitors search for?
Switch tracking on at launch: the search log is the most honest list of what visitors expect to find. In Google Analytics 4, enhanced measurement includes a site search event, view_search_results, triggered by default by one of five URL query parameters: q, s, search, query or keyword. You can add others, and the search term fills the Search term dimension (Google Analytics: enhanced measurement events). WordPress search forms use s (WordPress: get_search_form) and Shopify's uses q (Shopify: storefront search for themes). On any other build, run a test search and check the URL.
Shopify's Search & Discovery app adds reports for the most used search terms, searches with no results and searches with no clicks (Shopify: Search & Discovery reports). Webflow suggests integrating site search with Google Analytics (Webflow: site search). Review the searches with no results each month: each one is a missing product, a missing page or a word your site does not use yet.
How should search be tested before launch?
List real searches with the result you expect for each, and run them on a desktop and a phone:
- Exact names: a product or page title, plus a SKU or reference code if you use them.
- Messy searches: a misspelling, a plural and a word your customers use but your copy does not.
- Other content and nothing found: a page or article, and a search that should return no results.
- Languages and filters: a search in each language and a filter combination on a large category.
- Fresh content: an item published that day, to confirm the index has caught up.
- Tracking: a search with Analytics open, to confirm the event and the search term arrive.
On Upwork, give search its own milestone or line item with "done" written out: what is searchable, which fields, both results pages and the analytics event. Upwork advises agreeing milestones with clear and specific deliverables before work starts (Upwork: milestones in fixed-price jobs), and once work is submitted you have 14 days to review it before the funds are released automatically (Upwork: review and pay), so run your test list inside that window.
