Skip to content
Beytullah Toprak

Blog

Smart Search and Product Recommendations for E-Commerce

About half of shoppers find products through search, yet most sites handle it poorly. Smart search, hybrid search and product recommendations explained.

Reading time
7 min read
Illustration of smart e-commerce search, with a magnifying glass linked to cart, target and slider icons
On this page
  1. What Is Smart Search?
  2. How Do Shoppers Search?
  3. Keyword, Semantic and Hybrid Search
  4. Things to Watch in Non-English Search
  5. Don't Let Zero Results Be a Dead End
  6. Product Recommendations
  7. Natural Language Search With AI
  8. Measure How Search Performs
  9. Where Should You Start?
  10. Frequently Asked Questions
  11. Does a small store need smart search?
  12. Will semantic search replace classic search?
  13. How much data does a recommendation system need?

Smart search in e-commerce means search that understands what the shopper is looking for instead of matching their words literally: it fixes typos, recognizes synonyms and takes queries with attributes, like "waterproof winter boots", to the right products. Product recommendations show shoppers other suitable products based on what they're viewing and how they behave. Both affect sales directly, because a product nobody can find doesn't sell. Baymard Institute's e-commerce search research (opens in a new tab) shows that in usability testing roughly half of participants prefer search for finding products, yet 56% of the sites it benchmarked fail to adequately support users' search needs.

Smart search is on-site search that targets the meaning of a query rather than its words. Classic search returns only products with "raincoat" in the name when someone types "raincoat". Smart search also finds related products like "waterproof jacket" and "windbreaker", corrects "raincaot", and reads "size 9" as a size filter.

A few layers make this work: typo tolerance, a synonym dictionary, stemming, turning attributes in the query into filters, and semantic (vector) search, which has become common in recent years.

Baymard's research on search query types (opens in a new tab) sorts what shoppers type into eight types and gives the share of sites that struggle with each:

Query type Example Sites with issues
Exact A model name or number 12%
Product type "boots", "coffee maker" 20%
Feature "waterproof boots" 39%
Use case "sleeping bag for camping" 43%
Abbreviation and symbol "15 in", "USB-C" 54%
Compatibility "iPhone 15 case" 44%
Symptom "cream for dry skin" 37%
Non-product "returns", "shipping time" 66%

The most striking row is the last one: two thirds of sites can't take a shopper who types "returns" or "shipping" to the right page. It's also the easiest problem to fix. A few rules that route these queries to the relevant help pages are enough.

Approach How it works Strength Weakness
Keyword Looks for the query's words in product text Accurate for exact searches like model numbers and brands Weak with synonyms and natural language
Semantic (vector) Turns the query and products into numbers that represent meaning and compares similarity Understands intent queries like "warm enough for camping" Can miss exact matches like model numbers
Hybrid Merges the results of both Combines the strengths of each Takes more effort to set up and tune

In e-commerce, a hybrid approach usually gives the most balanced results. Elastic's article on hybrid search (opens in a new tab) describes two common ways to merge keyword and semantic results: a weighted score combination (convex combination) and Reciprocal Rank Fusion (RRF), which needs no score calibration. I cover the infrastructure behind semantic search in the post on vector databases.

Many languages need more than plain word matching. In agglutinative languages like Turkish, one root takes many suffixes ("botlar", "bota", "botları" all mean forms of "boot"), so the search engine has to stem words correctly. Make sure your search setup uses the right language analyzer for each language you sell in.

A few other common issues:

  • Case conversion: some languages have special casing rules, such as the dotted and dotless i in Turkish. A wrong setting can make searches miss products written in capitals.
  • Typing without accents or special characters: shoppers often type plain letters. Those spellings should still reach the right products.
  • Synonyms and regional terms: "sneakers" and "trainers", "sweater" and "jumper". Build your synonym list from your search logs.

Don't Let Zero Results Be a Dead End

A search with no results is one of the fastest ways to lose a shopper. When a search returns nothing:

  • Suggest a spelling correction: "Did you mean…?"
  • Show the closest categories and popular products.
  • If the query isn't about a product ("returns", "shipping"), route to the relevant help page.
  • Log zero-result queries. That list feeds both your synonym dictionary and gaps in your product range.

Product Recommendations

Recommendation systems usually come in a few types:

  • Similar products: on the product page, options close in attributes and price to the one being viewed.
  • Frequently bought together: on the product page and in the cart, items often bought alongside it.
  • Personalized picks: on the home page and in email, products chosen from the shopper's past behavior.
  • Recently viewed: an easy way back to a half-finished browse.

A good recommendation system rests on two kinds of data: a clean product catalog and user behavior logs (views, add-to-carts, purchases). In a new store with little behavior data, it makes sense to start with rule-based recommendations (same category, similar price) and move to behavior-based models as data builds up.

Natural Language Search With AI

Language models are good at turning long, natural queries into filters. Given "winter waterproof boots, size 9, under $100", a model can split it into category, attribute, size and price filters, and the search engine returns results with those filters. Getting the model's output as schema-bound JSON makes this reliable. I explain the approach in the post on structured output for LLMs.

Draw a clear line here: the model interprets the query, but products and attributes come only from the catalog. Don't let the model "suggest" products or features that aren't in it. I cover getting your store ready for outside AI assistants in the post on AI in e-commerce.

Measure How Search Performs

You can't improve what you don't measure. Google Analytics 4's page on enhanced measurement (opens in a new tab) explains that the view_search_results event fires for site search when the URL contains one of the default parameters q, s, search, query or keyword, and that the search term goes into the search_term parameter. If your site's search URL uses a different parameter, you can add it in the settings.

The main metrics to track:

  • Zero-result rate: what share of searches return nothing?
  • Search exits: visitors who leave right after seeing search results.
  • Search conversion: the purchase rate of visitors who search, compared with those who don't.
  • A list of the most searched terms that return no results.

Where Should You Start?

  1. Pull the 100 most frequent queries and all zero-result queries from your search logs.
  2. Group them by the eight types above and see where you're weak.
  3. Take the easy wins first: routing for non-product queries, typo tolerance, synonyms.
  4. Complete the attribute fields in your product data. Feature search only works as well as the attributes behind it.
  5. Once those basics are solid, look at semantic or hybrid search and behavior-based recommendations.

Frequently Asked Questions

Even in a store with a few hundred products, typo tolerance, synonyms and routing for non-product queries make a difference. Heavier options like semantic search start to pay off as the catalog grows and search logs show problems.

On its own, usually not. Keyword search is still more accurate for exact queries like model numbers and brands. That's why hybrid search, which combines both, is the more common choice in e-commerce.

How much data does a recommendation system need?

Rule-based recommendations need only a good product catalog. Behavior-based recommendations become meaningful as enough views and purchases accumulate, so start collecting behavior logs from day one.

To improve search and recommendations on your online store, see the e-commerce service or tell me about your project on the contact page.

Share