Type "shoes for muddy trails" into a keyword search and a page titled "Best trail running footwear" may never appear: not one word overlaps. Vector search finds it, because it compares what the texts mean rather than which words they share.
The trick is the embedding. An AI model turns each document, product or passage into a list of numbers, and the same model turns the query into one. The model is trained so that texts with similar meaning get similar numbers, which makes "closest numbers" a stand-in for "closest in meaning". The search then returns the stored items nearest to the query.
How a vector search runs
- Embed the content. An embedding model turns every item into a vector ahead of time. These are usually kept in a vector database or a vector index.
- Embed the query. At search time, the same model turns the query into a vector. Vectors from different models aren't comparable.
- Find the nearest neighbors. The system measures how close the query is to the stored vectors, most often with cosine similarity, the angle between two vectors.
- Return the top results, often after filters (language, price, date) and a re-ranking step that looks at each candidate more carefully.
Long documents are often split into passages first, so the search can return the paragraph that answers the question rather than a whole page.
Exact search, approximate search and recall
Checking every stored vector is exact but slow on large collections. Most systems use approximate nearest neighbor (ANN) indexes instead. HNSW, a popular one, links vectors into layered graphs and walks from coarse layers to fine ones, checking only a fraction of the collection Malkov and Yashunin.
The price of speed is recall: the share of the true nearest neighbors the approximate search actually finds. Say the exact top 10 for a query holds 10 items and the approximate search returns 9 of them; recall is 90%. Teams tune indexes to keep recall high enough that users don't notice the misses.
Why hybrid search exists
Vector search is weak exactly where keyword search is strong. Product codes, model numbers, rare names and exact phrases may not carry much "meaning" for the embedding model, so the nearest vectors can be near misses. Keyword ranking functions such as BM25 find those reliably.
Hybrid search runs both and merges the two result lists. It's a common choice for shop search, where people type both "comfy sofa for small flat" and "KX-450".
| Query | Better approach |
|---|---|
| A description, question or need in everyday words | Vector search |
| An exact product code, name or quoted phrase | Keyword search |
| A mix of both, or you don't know in advance | Hybrid search |
What it means for SEO
Search engines have matched meaning, not just words, for years. Google's guide to its ranking systems names three such systems: neural matching, which understands representations of concepts in queries and pages and matches them to one another; BERT, which understands how combinations of words express meaning and intent; and RankBrain, which helps return relevant content even when it doesn't contain all the words of the search Google Search Central. Google doesn't publish how these systems work inside, so don't treat them as a vector search you can tune for.
The practical lessons are the same either way:
- Write for the topic and the question, not a keyword count. A page that clearly covers a subject can match searches it never repeats word for word. See semantic SEO.
- Keep exact names where people use them. Brand names, product models and technical terms still need to appear as people type them.
- Make passages stand on their own. AI answer engines that use retrieval-augmented generation pick passages, not whole pages. A paragraph that answers one question plainly is easier to retrieve and quote.
For your own site, vector search is worth a look when visitors often search in words your pages don't use, or when you want "related articles" and "similar products" based on meaning rather than tags.