Store search · Article 3 of 4
Search suggestions: how autocomplete should work
Suggest search terms as well as products, and style them differently. Add category-scoped suggestions when they help, show suggestions fast and in a stable order, copy a keyboard-selected suggestion into the box, forgive typos, and remove duplicate or irrelevant suggestions.
In this article · 6 tips
- Why suggestions matter
- 1Suggest searches, not just products, and style the two differently
- 2Suggest category-scoped searches when they help
- 3Show suggestions fast and in a stable order
- 4When a suggestion is picked with the keyboard, put it in the search box
- 5Forgive typos in suggestions
- 6Remove duplicate and irrelevant suggestions
- FAQ
In short
- Autocomplete is used by most searchers. It shapes what they search for.
- Query suggestions help shoppers search better; product suggestions help them skip the results page.
- Suggestions that jump around while typing are worse than none.
Why suggestions matter
Autocomplete does two jobs: it helps shoppers phrase their search ("linen shirt" → "linen shirt men's"), and it lets them jump straight to a product. Done well, it saves typing and avoids failed searches. Done badly, it distracts and misleads.
1Suggest searches, not just products, and style the two differently
Suggest searches first, as text, and keep product suggestions visually separate.
✕ Avoid
Linen shirt
Linen overshirt
Linen napkin set
Linen tee
✓ Do this
⌕ linen shirt
⌕ linen trousers
⌕ linen bedding
Products
Linen shirt · $68
Why it matters
Showing only products in the dropdown works for exact searches but not for broad ones. Search term suggestions help shoppers who want to see a range. Mixing both without a visual difference confuses them.
How to do it
- Show suggested search terms at the top, as text, with the typed part plain and the suggested part bold (or vice versa).
- Show a few products below, with thumbnail and price.
- Separate the groups with headings or space.
On ShopifyTheme setting
Shopify's predictive search can show query suggestions, products, collections and pages; turn on search suggestions in theme settings.
Quick test: Does autocomplete suggest search terms as well as products, visually separated?
2Suggest category-scoped searches when they help
For broad searches, suggest the term inside its main categories.
✕ Avoid
⌕ shirts
⌕ shirts sale
⌕ shirts linen
✓ Do this
⌕ shirts
shirts in Men
shirts in Women
shirts in Kids
Why it matters
"Shirts in Men's" or "Shirts in Women's" as suggestions let shoppers narrow a broad search in one tap.
How to do it
- For broad terms, suggest the term within its top categories.
- Also show matching collections as suggestions.
On ShopifyTheme setting
Shopify predictive search can show matching collections; scoped search terms need an app.
Quick test: Do suggestions offer category scopes for broad searches?
3Show suggestions fast and in a stable order
Suggestions should appear quickly and stay in a stable order while the shopper types.
✕ Avoid
⌕ linen trousers
⌕ lint roller
⌕ linen shirt
A second later the list reshuffles, just as the shopper taps
✓ Do this
⌕ linen shirt
⌕ linen trousers
⌕ linen bedding
Shows instantly, same order as you type
Why it matters
Suggestions that appear late, or reshuffle as shoppers type, make them miss-tap or wait. Suggestions should feel instant and predictable.
How to do it
- Show suggestions after the first couple of characters, with no noticeable delay.
- Keep the order stable while typing; don't let late results jump in above what the shopper is about to tap.
- Don't open suggestions that cover the field or the keyboard.
On ShopifyBuilt in
Shopify predictive search is fast; check that apps don't slow it down.
Quick test: Do suggestions appear quickly and stay in place while the shopper types?
4When a suggestion is picked with the keyboard, put it in the search box
When a suggestion is highlighted with the arrow keys, show it in the search box.
✕ Avoid
⌕ linen shirt
⌕ linen trousers ◂ highlighted
⌕ linen bedding
The box still says "lin"
✓ Do this
⌕ linen shirt
⌕ linen trousers ◂ highlighted
⌕ linen bedding
Why it matters
Keyboard users move through suggestions with arrow keys. If the box doesn't show the highlighted suggestion, they can't edit it before searching.
How to do it
- When a suggestion is highlighted with the arrow keys, show it in the search box.
- Let Escape restore what the shopper typed.
On ShopifyBuilt in
Shopify's predictive search supports keyboard navigation in its themes.
Quick test: Does selecting a suggestion with the keyboard put it in the search box?
5Forgive typos in suggestions
Suggestions should forgive typos. A misspelling shouldn't mean silence.
✕ Avoid
No suggestions
qwertyuiop
asdfghjkl
⇧zxcvbnm⌫
123go
✓ Do this
⌕ linen shirt
⌕ linen trousers
qwertyuiop
asdfghjkl
⇧zxcvbnm⌫
123go
Why it matters
"Moisturiser", "moisterizer", "mosturizer": shoppers misspell, especially on phones. Suggestions that only match exact spelling show nothing when they're most needed.
How to do it
- Match close misspellings in suggestions.
- Test common misspellings of your brand and product names and check what comes up.
On ShopifyBuilt in
Shopify's online store search has built-in typo tolerance.
Quick test: Do suggestions appear for common misspellings?
6Remove duplicate and irrelevant suggestions
Remove duplicate and near-duplicate suggestions, so each one adds something.
✕ Avoid
⌕ linen shirt
⌕ Linen Shirt
⌕ linen shirts
⌕ linen shirt
⌕ linen shirt men
✓ Do this
⌕ linen shirt
⌕ linen trousers
⌕ linen dress
⌕ linen bedding
Why it matters
Suggestions like "shirt", "shirts", "Shirt" or out-of-stock products waste the few lines the dropdown has.
How to do it
- Remove near-duplicates (plurals, capitalization).
- Hide suggestions that return no results, and deprioritize sold-out products.
- Limit the list to a handful of the best suggestions.
On ShopifyApp
Shopify's predictive search handles most of this; advanced control needs a search app.
Quick test: Are suggestions free of duplicates and dead ends?
FAQ
Does Shopify have search autocomplete?
Yes. Shopify's predictive search shows products, collections, pages and query suggestions as shoppers type. Turn on search suggestions in your theme settings.
How many autocomplete suggestions should I show?
A handful of search terms and a few products. More is hard to scan, especially on phones.