A visitor types "outfit for running in the rain". Your product pages talk about a "waterproof running jacket" and "thermal tights". The search engine finds no word in common except "outfit", and serves up... an office outfit.

That gap between the customer's words and your catalog's words is exactly what vector search can close. We'll show you how it works, where it goes wrong, and how to check whether your current search engine really uses it.

👉 The short answer
  • Vector search converts every product page and every query into a vector (a list of numbers that encodes meaning), then returns the products whose vector is closest.
  • It finds products that share no word with the query: "sports sneaker" for "running shoe", "rain jacket" for "waterproof coat".
  • It is less reliable on exact references (model, size, SKU). That's why serious engines are hybrid: vectors and keywords combined.
  • It only reads what your product data contains: complete titles and attributes are still the foundation.

The principle: turning meaning into coordinates

In mathematics, a vector is simply an ordered list of numbers. In natural language processing (NLP), researchers learned to represent the meaning of a word, a sentence or an entire text as a vector with hundreds or even thousands of dimensions.

These representations are called embeddings. They are produced by deep learning models trained on huge volumes of text. Their useful property: two texts with similar meanings get vectors that sit close together, even if they share no words.

Diagram of a simplified vector space: the query outfit for running in the rain sits close to running shoes and rain jackets, far from the office outfit
In the embedding space, the query lands near products with the same meaning, not near the ones that share a word.

In a well-trained space, "running shoe" and "sports sneaker" are neighbors, and so are "men's waterproof coat" and "rain jacket". "Office outfit" ends up near "formal shirt" and "blazer". The distance between two vectors measures how close their meanings are.

Applied to an online store: every product in the catalog is indexed as an embedding, every query is converted into an embedding as the visitor types it, and the engine returns the products whose vectors are closest to the query's.

💡 Tip

You don't need to remember the math. One picture is enough: the engine places your products on a map of meaning, then drops the visitor's query on the same map and looks at who lives next door.

Keywords or vectors: what each one finds

Classic search, known as lexical search (often based on the BM25 algorithm), compares the words in the query with the words in your product data. It is fast and precise when the customer uses your terms. Here is how both approaches handle common queries:

QueryLexical search (BM25)Vector search
"summer office outfit"Zero results if those three words don't appear in the product pages.Finds light dresses, linen shirts, unlined blazers.
"gift for a baby"Only products that contain both "baby" and "gift".Understands the intent: baby clothes, sensory toys, newborn gift sets.
"comfortable shoes for long walks"Looks for "comfortable" and "long walks" word for word in descriptions.Understands the need: hiking shoes, ergonomic insoles.
"Nike Air Max 90 white size 10"Exact match on brand, model and size.May suggest other similar white sneakers, at the expense of the exact model.
"nkie air max" (typo)Zero results without spell correction.Unpredictable result: spell correction is needed upstream.

Lexical search excels at exact references: SKU, brand, model name. Vector search excels at natural language, vague intents and descriptions of a need. Neither one fixes typos on its own: that's a separate building block, which complete search engines add to both.

What vector search brings to an online store

Fewer "no results" pages

An empty results page is one of the moments when visitors give up most easily. Because vector search reasons in terms of closeness of meaning, an unusual query or one written in natural language usually finds relevant products instead of a dead end. Our article on zero-result searches explains how to measure them.

A search engine that understands your customers' sentences

Your visitors don't think in catalog keywords. They type "something warm for winter", "unique wedding gift" or "bike to commute to work". A vector engine connects these phrasings to the products that answer them, without you having to anticipate every wording.

Poorly described products become visible again

With lexical search, a product page that doesn't use the customer's word is invisible to that customer. The vector model grasps the product as a whole (title, category, attributes) and can find it even if its description isn't perfect.

📌 Real-world example

Take a hypothetical outdoor store that gets 2,000 searches a week, 15% of which end with no results: that's 300 searches. If a third of those failures are descriptions of a need ("for camping in the rain", "light daypack"), that's up to 100 searches a week that a vector engine can turn into a page of products rather than a dead end.

⚠️ Pitfall to avoid

A pure vector engine always returns the "least distant" products, even when nothing really matches. If you don't sell tents, a search for "4-person tent" may display sleeping bags. Check that your engine can also say "no exact match" and offer a clear alternative.

Why good search engines are hybrid

Pure vector search has one weakness: it is less precise than lexical search on exact queries. Someone who types "Nike Air Max 90 white size 10" wants that model, in that size, not an interpretation of their intent.

Modern search engines therefore combine both approaches, which is called hybrid search:

  • vector search handles natural language, intents and descriptions of a need;
  • lexical search (BM25) stays in charge of exact references, brands and model numbers;
  • a fusion step merges the two rankings into one, often using a technique called Reciprocal Rank Fusion (RRF).
📌 Real-world example

For the query "Nike Air Max 90 white size 10", imagine lexical search ranks the exact model 1st and vector search ranks it 4th, behind three other white sneakers. RRF adds up scores of the form 1 / (60 + rank): the exact model gets 1/61 + 1/64, about 0.032, and moves ahead of competitors that only one of the two methods ranked well.

Google describes Vertex AI Search for Retail as an engine that understands the intent behind a query, beyond simple keyword matching. It doesn't publish the details of its models or exactly how it weighs these signals. We cover what is documented in our article on Google Vertex AI Search for Retail, and the other families of algorithms in our guide to search algorithms.

How your catalog becomes a vector index

In a vector engine, syncing the catalog sends every product through the same pipeline:

  1. Text extraction: title, description, categories and product attributes.
  2. Embedding generation: the language model converts this text into an N-dimensional vector.
  3. Storage in a vector index: a structure designed to quickly retrieve the closest vectors, using approximate nearest neighbor search (ANN).
  4. Continuous updates: every catalog change updates the affected embeddings.
Two-step diagram: at indexing time, product data becomes a vector stored in the index; on every search, the query becomes a vector compared with the index to find the closest products
The same model is used twice: for product data at indexing time, then for every query.

At search time, the same pipeline applies to the query: the text becomes an embedding, and ANN search finds the closest vectors in the index. This approximate search is what makes real-time answers possible, even on a large catalog.

One practical consequence: the model only sees what the product data contains. Our guide to product data your search engine can read goes further, but the essentials fit in a few rules.

✅ Do
  • Start the title with the product type
  • Mention uses in the description ("hiking", "rain")
  • Fill in material, color and size as attributes
❌ Don't
  • A title reduced to a line name ("Mila 2")
  • The same description copied across 50 products
  • Key information only shown in images

Build it yourself or use a service

Building your own vector search is a real engineering project. Before you start, list what you'll need to choose and maintain:

  • an embedding model suited to your language and catalog;
  • an ANN infrastructure to deploy, size and monitor;
  • an update pipeline that recomputes vectors whenever the catalog changes;
  • the lexical side and the fusion of both rankings;
  • relevance to tune, query after query.

For a technical team with a very specific need, it's doable. For most stores, a turnkey service takes all of this off your hands. That's the route Vectail takes: it is built on Google Vertex AI Search for Retail, which leaves model and infrastructure management to Google.

💡 Tip

Even with a semantic engine, keep a short synonym list for your jargon: in-house product line names, technical terms from your industry, regional words. The model knows everyday language, not necessarily the vocabulary specific to your customers.

Is your search engine really semantic? The test

15 minutesNo tools required

Many solutions call themselves "semantic" or "AI-powered" without relying on real embeddings. The difference shows up in edge cases. Signs of genuine vector search:

  • relevant results for phrasings that appear nowhere in the catalog;
  • common synonyms understood without manual setup;
  • consistent answers to natural language queries;
  • multilingual relevance: with a multilingual model, a query in Spanish can find products described in English.

To check, type these queries on your site, adapting the examples to your catalog, and note what comes up:

Test queries to copy1. A need without a product name: gift for someone who loves cooking 2. A common synonym: trainers (if your product pages say "sneakers") 3. A use: bag for a weekend away 4. An exact reference: [brand] [model] [size] 5. A typo: [your best-selling brand with two letters swapped] 6. A query in another language: chaqueta impermeable 7. A product you don't sell: [a category missing from your catalog]

If queries 1 to 3 fail, your engine is essentially lexical. If query 4 returns anything other than the exact product, the keyword side is too weak, and if query 5 fails, spell correction is missing. Finally, if query 7 displays unrelated products, the engine can't tell when it has nothing to show.

Your checklist

  • The 7 test queries run on your site, results noted
  • Hybrid engine: vectors for meaning, keywords for exact references
  • Spell correction active on top of vector search
  • Titles that start with the product type
  • Uses and attributes (material, color, size) filled in on product pages
  • A short synonym list for your industry jargon
  • Zero-result searches reviewed every month

Frequently asked questions

Are vector search and semantic search the same thing?

Almost. Semantic search is the goal: understanding what a query means. Vector search is the most common technique to get there, by representing queries and products as vectors. In e-commerce offerings, the two terms are often used interchangeably.

Does vector search replace synonyms?

Not entirely. It connects many everyday phrasings without any setup, but your industry jargon, your product line names or the words specific to your customers are not always known to the model. A short, targeted synonym list is still useful for those cases.

Does vector search fix typos?

Not on its own. A misspelled query can land far from the right product in the vector space. Spell correction is a separate building block that complete search engines add on top of vector search and keyword search.

Do you need a large catalog to benefit from it?

No. The benefit depends mostly on how your customers search: if they describe a need rather than a product reference, even a catalog of a few hundred products gains from it. On the other hand, thin product data limits what the model can understand, whatever the size of the catalog.

Try Google's semantic search on your catalog

Vectail connects your Google Merchant Center catalog to Google Vertex AI Search for Retail and adds search to your site with one line of code, no plugin and no infrastructure to maintain.

Start for free - 14 days, no credit card