How to design a search experience: autocomplete, filters and useful no-results pages
Search is one of the most-used features in many products, and one of the most under-designed. A good search experience is a sequence of states, not just a text box.
1. The empty search field
- Make the field easy to find and large enough to type comfortably.
- Use a clear placeholder that hints at what can be searched.
- Consider showing recent searches or popular suggestions when the field is focused.
2. While typing: autocomplete and suggestions
- Suggest queries, categories or direct results.
- Highlight the part of each suggestion that matches what was typed.
- Make suggestions fully navigable with arrow keys and readable by screen readers.
- Keep the list short enough to scan.
3. The results page
- Show the query and the number of results.
- Let users refine with filters and sorting. Show active filters clearly and make them easy to remove.
- Decide how to handle typos: offer corrected results or a "did you mean" suggestion.
4. No results This is where many products fail. Instead of a blank page:
- Explain that nothing matched.
- Suggest spelling corrections, broader terms or removing filters.
- Offer popular items or categories so users have somewhere to go.
5. Loading and errors
- Indicate when results are loading without making the interface jump around.
- Distinguish "no results" from "search failed".
Practice exercise Pick an app you use and map its search flow across all five states. Then redesign the weakest state.
Which product has the best search experience you have used? And do you prefer filters in a sidebar, a top bar or a sheet on mobile?
Comments · 4
The no-results page is the state most designs forget. Offering a spelling suggestion, a broader search or a path to browse keeps people moving instead of leaving them at a dead end.
One technical point: autocomplete that runs on every keystroke needs debouncing and ranking, otherwise the suggestions flicker and the wrong item ends up first.
What's a good length for suggestions? I've seen five to eight recommended, but I'm not sure on mobile.
Five to eight is a reasonable range on desktop, but on mobile aim for fewer, around four or five, so the list doesn't hide behind the keyboard.