Design Search That Tolerates Imperfect Queries
Search & Discovery · search, microcopy, errors
Updated 2026-07-28
- Assume every query is slightly wrong. People misspell, use their own vocabulary, type partial words, and paste text with stray punctuation.
- Match word stems rather than exact strings, so a search for one form of a word finds the others without the user having to guess which one you stored.
- Tolerate small typos on longer words, and be stricter on short ones where a single edit changes the meaning entirely.
- Match as the user types rather than waiting for the whole word. Results that narrow with each character make the search feel like it is helping.
- Map the words your users say to the words your content uses. A synonym list is the cheapest relevance improvement most products never make.
- Rank matches in titles and names above matches buried in body text, because a term in a heading is almost always what someone meant.
- Never return an empty page silently. Offer the corrected spelling, drop the least important term, or fall back to a broader match and say what you did.
- Show why a result matched by highlighting the terms in context, so the user can judge relevance without opening anything.
- Keep the query in the address so a search can be shared, refined, and returned to.
Search is a conversation where the user speaks first and imprecisely, and the system's job is to understand rather than to correct.
Related guides