Back to Blog
8 min readImplementation

Semantic Fallback and Category Redirects

What to show a shopper when typo fixes and synonyms still miss — how semantic fallback and category redirects pick the next-best match.

Semantic Fallback and Category Redirects

Typo correction and synonym expansion close most of the gap between what a shopper types and what a catalog calls it. But they only work when the fix is a known variant of an existing term — a misspelled word, a listed synonym. Neither one has an answer for "something for a dinner party" or a shopper who searches a brand the store doesn't carry. That's where a search system has to decide what to show when there's no direct match left to correct.

This is about that decision: what semantic fallback and category redirects actually do, how a system chooses between them, and why the order they run in matters as much as either technique alone.

The Zero-Result Recovery Pipeline, in Order

Search recovery isn't one technique — it's a sequence, and most systems run it in roughly this order before giving up and showing an empty page:

1. **Typo and fuzzy matching first.** Cheapest to run, catches the largest single category of failures — see typo tolerance in Shopify search for how edit-distance matching works. 2. **Synonym expansion next.** If the query is spelled correctly but uses a term the catalog doesn't, a synonym list resolves it — see ecommerce search synonyms. 3. **Semantic fallback**, when the first two find nothing — matching on meaning rather than exact or near-exact text. 4. **Category or facet redirect**, when even a semantic match isn't confident enough to show as a product result. 5. **Best-sellers or trending items**, as the last resort when nothing above produces a usable candidate.

Each step only runs if the one before it failed. A query that a synonym list already resolves never reaches semantic fallback; a query semantic fallback answers confidently never reaches a category redirect. This post is about steps three and four — the two stages a store's search stack needs once spelling and vocabulary aren't the problem anymore, and the zero-result-searches pillar's core recovery techniques only name in passing.

What Is Semantic Fallback?

Semantic fallback matches a query to products by meaning instead of shared text — using embeddings and cosine similarity to find catalog items whose vector representation sits close to the query's, even when no word in the query appears anywhere in the product data.

"Something for a dinner party" is the clean example: there's no typo to fix and no synonym list that maps that phrase to "wine" or "serving platters." A semantic search layer that has already embedded the catalog can still return relevant products, because it's comparing meaning, not tokens. The same mechanism handles descriptive, use-case, and paraphrased queries generally — "waterproof jacket for hiking," "gift for a new homeowner" — not just the ones that started as a genuine zero-result failure.

The catch is confidence. A semantic match is a similarity score, not a certainty, and a low score means "closest thing we have," not "what the shopper wanted." That's the difference between semantic fallback and ordinary semantic search: fallback only fires after other matching has failed, so it needs a threshold below which it stops presenting results as direct matches and hands off to something else.

What Is a Category Redirect?

A category redirect sends a failed query to the closest matching category, collection, or facet page instead of a ranked list of individual products. If "leather backpack" returns nothing as a product match, redirecting to the Bags category — or a filtered view within it — gives the shopper somewhere to keep browsing without asking them to guess a different search term.

It's a coarser fallback than semantic matching on purpose. Where semantic fallback tries to answer the specific query, a category redirect gives up on precision and offers the right neighborhood instead. That makes it the right move when semantic similarity scores are too low to trust as product-level matches, but the query still clearly maps to a known part of the catalog. See faceted search vs. site search for how category and facet navigation works as a standalone discovery path, separate from its use here as a fallback.

Semantic Fallback vs. Category Redirect: When Each Applies

The two aren't interchangeable, and picking wrong shows up as either a false-confident bad match or a shopper dumped on a category page for no visible reason:

  • Semantic fallback fits when the query is specific enough to have a real answer — a use case, an attribute combination, a paraphrase — and the catalog's embeddings return at least one result above a workable confidence threshold.
  • Category redirect fits when the query names a general product type the store carries, but semantic similarity across the catalog is uniformly weak — nothing embeds close enough to show with any confidence as a direct match.
  • Neither fits when the query names something genuinely outside the catalog. That's not a ranking problem to solve with a better fallback; it's the assortment gap case, and forcing a confident-looking result for it just teaches shoppers not to trust the search bar.

In practice, a system runs semantic matching first regardless, and uses the resulting confidence score to decide whether to present it as a match or step down to a category redirect.

Confidence Thresholds: Why "Close Enough" Needs a Cutoff

The mechanism that makes this whole pipeline safe to automate is a confidence threshold — a minimum similarity score below which a semantic result doesn't get shown as if it directly answered the query. Set the threshold too low, and shoppers see products that clearly don't match what they typed, which does more damage to trust in the search bar than an honest empty state would. Set it too high, and genuinely good semantic matches get discarded in favor of a vaguer category redirect or a generic best-sellers list.

There's no universal number — the right threshold depends on the embedding model, how tightly the catalog is described, and how costly a bad match is for that category (a wrong match in apparel is a minor annoyance; a wrong match in a compatibility-sensitive category like electronics accessories or auto parts is a returned order). Most stores set it empirically: run semantic fallback in shadow mode against the existing zero-result log, look at the confidence scores next to whether a human would call the result relevant, and set the cutoff where that judgment starts disagreeing with the score.

The Fallback Chain by Store Type

  • Fashion: Descriptive and occasion-based queries ("something for a summer wedding") are semantic fallback's strongest case — there's rarely a single right SKU, so a handful of reasonably close matches serves the shopper better than a category redirect would.
  • Electronics: Compatibility and model-number queries are the opposite case — a wrong semantic match on a cable or accessory can mean a wrong purchase, so a lower confidence threshold or a redirect to the compatible-accessories category is the safer default.
  • Beauty: Ingredient and concern-based queries ("something for sensitive skin") depend on product descriptions actually mentioning the attribute in text the embedding model can pick up — a catalog with thin descriptions gets weaker semantic fallback regardless of how good the model is.
  • Grocery: Fast catalog turnover means embeddings and stock need to stay in sync — a semantically strong match for an item that sold out yesterday is worse than a category redirect to what's currently in stock.
  • Multilingual stores: Confidence thresholds and category mappings both need to be validated per storefront language — an embedding model's similarity scores don't automatically calibrate the same way across languages, and a category redirect target has to exist and make sense in the shopper's own language, not just the default one.

Common Mistakes

  • Skipping straight to semantic fallback without running typo and synonym checks first — cheaper, more precise fixes get bypassed in favor of a fuzzier one that didn't need to run.
  • No confidence threshold at all — showing every semantic result as if it were a direct match, regardless of score, which erodes trust faster than an honest empty state.
  • Using a category redirect as the only fallback — sending every failed query to a category page when a genuine semantic match was available undersells what the catalog can actually answer.
  • Never revisiting the threshold — a cutoff set once at launch drifts out of calibration as the catalog, its descriptions, and the query mix all change over time.

How This Fits With Recovery, UX, and Analytics

Semantic fallback and category redirects are the third and fourth steps in the pipeline — they only run because typo tolerance and synonym expansion already tried and failed first. What a shopper actually sees once a fallback fires is a page-design question, covered in no-results page UX. And whether a given query should keep getting a fallback at all, versus flagging it as a real assortment gap, is what zero-result search analytics is for — a fallback that fires on the same query every week without ever satisfying the shopper is a signal to fix the catalog, not just the matching.

In Semantix's own recovery data, Lisa Leonard recovers roughly 10% of its zero-result queries per month this way, contributing about 1% of incremental revenue — a case where fallback matching, not a redesigned page, did the work.

The Bottom Line

Typo and synonym fixes handle the queries that are almost right already. Semantic fallback and category redirects are what a search system needs for the rest — the descriptive, paraphrased, or off-vocabulary queries that don't have a known correction to apply. Getting the order right, and setting an honest confidence threshold between "close enough to show" and "not close enough to pretend," is most of what separates a fallback that builds trust from one that quietly erodes it.

Want to see how your own search stack handles the queries that survive typo and synonym correction? Book a demo or see how Search Saver recovers failed searches without a rebuild.

Frequently asked questions

What is semantic fallback in search?

Semantic fallback is a recovery technique that matches a query to products by meaning rather than shared text, using embeddings and similarity scoring to find relevant items even when no word in the query appears in the product data.

What is a category redirect?

A category redirect sends a failed query to the closest matching category or facet page instead of a ranked list of products, used when the query clearly maps to a known part of the catalog but no individual product match is confident enough to show directly.

How is semantic fallback different from synonym expansion?

Synonym expansion matches a query to a known equivalent term from a fixed list — "trainers" to "sneakers." Semantic fallback doesn't require a listed equivalence; it matches based on overall meaning, which is what lets it handle descriptive or paraphrased queries a synonym list was never built to cover.

Why does semantic fallback need a confidence threshold?

Without a minimum similarity score, a system will present weak, barely-related matches as if they directly answered the query, which damages shopper trust in the search bar more than an honest empty state would. The threshold is what keeps a fallback from becoming a bad guess disguised as a match.

When should a failed query get a category redirect instead of a semantic match?

When semantic similarity across the catalog is uniformly weak for that query, but the query still names a general product type the store carries — a category redirect gives the shopper a reasonable place to keep browsing without presenting an unconfident product match as if it were a direct answer.

Does every zero-result query need semantic fallback or a category redirect?

No. A meaningful share are resolved earlier in the pipeline by typo correction or synonym expansion, and a smaller share point to products the catalog genuinely doesn't carry — see zero-result search analytics for sorting failed queries into those categories before deciding which fallback, if any, applies.

S

Semantix Team

Semantix Team

Want to Learn More?

See semantic search in action with a personalized demo

Start for Free