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
  1. Why suggestions matter
  2. 1Suggest searches, not just products, and style the two differently
  3. 2Suggest category-scoped searches when they help
  4. 3Show suggestions fast and in a stable order
  5. 4When a suggestion is picked with the keyboard, put it in the search box
  6. 5Forgive typos in suggestions
  7. 6Remove duplicate and irrelevant suggestions
  8. 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.

All stores

✕ Avoid

9:41

Linen shirt

Linen overshirt

Linen napkin set

Linen tee

Only individual products. Shoppers who want to see every linen item can't.

✓ Do this

9:41

⌕ linen shirt

⌕ linen trousers

⌕ linen bedding

Products

Linen shirt · $68

Search suggestions first, with the completed part in bold. A few products follow, under their own label.

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.

Big catalogs

✕ Avoid

9:41

⌕ shirts

⌕ shirts sale

⌕ shirts linen

Suggestions that mix men's, women's and kids' shirts. Shoppers filter it all later.

✓ Do this

9:41

⌕ shirts

shirts in Men

shirts in Women

shirts in Kids

"shirts in Men" goes straight to the right category.

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.

All stores

✕ Avoid

9:41

⌕ linen trousers

⌕ lint roller

⌕ linen shirt

A second later the list reshuffles, just as the shopper taps

Suggestions that arrive late and jump around. Shoppers tap the wrong one.

✓ Do this

9:41

⌕ linen shirt

⌕ linen trousers

⌕ linen bedding

Shows instantly, same order as you type

Fast and steady. The suggestion the shopper is reaching for stays put.

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.

All stores

✕ Avoid

⌕ linen shirt

⌕ linen trousers ◂ highlighted

⌕ linen bedding

The box still says "lin"

The box doesn't change. Keyboard users can't edit the highlighted suggestion before searching.

✓ Do this

⌕ linen shirt

⌕ linen trousers ◂ highlighted

⌕ linen bedding

The highlighted suggestion fills the box, so the shopper can add "women" before pressing Enter.

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.

All stores

✕ Avoid

9:41

No suggestions

qwertyuiop

asdfghjkl

⇧zxcvbnm⌫

123go

One wrong letter and suggestions disappear. On a phone keyboard, that's common.

✓ Do this

9:41

⌕ linen shirt

⌕ linen trousers

qwertyuiop

asdfghjkl

⇧zxcvbnm⌫

123go

Close matches still appear. The shopper never notices the typo.

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.

All stores

✕ Avoid

9:41

⌕ linen shirt

⌕ Linen Shirt

⌕ linen shirts

⌕ linen shirt

⌕ linen shirt men

Five versions of the same search. Space wasted, other options hidden.

✓ Do this

9:41

⌕ linen shirt

⌕ linen trousers

⌕ linen dress

⌕ linen bedding

Each suggestion is different and useful.

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.

Sources

Alex Peric

Written by Alex Peric

Conversion designer. I design, redesign and build online stores, product pages and landing pages, A/B test them and show what each change earned. CXL certified in Conversion Optimization and Ecommerce Marketing, and a guest speaker on ecommerce UX at NYU School of Professional Studies.

Let's talk

Let's find out why your visitors aren't buying.

Send me the page. On the call I'll tell you what I'd fix first, what it could move, and whether I'm the right person for it.

Book a call