Semantic search ranks pages by what a question means, where keyword search ranks them by the words the question shares with each page. Keyword ranking handles two or three distinctive words well, and a whole sentence gives it more common and loosely related words to match on the wrong page.
The person who owns the search box feels that gap most. The page that wins on word counts can be a news item or an old announcement that repeats the visitor's words, while the guidance they needed sits further down. Microsoft, OpenSearch and Elastic all document a way of combining both methods, and the test that settles which supplier gets it right is run on your own search logs.
What is semantic search, in plain terms?
Semantic search finds content by the meaning and intent of a query rather than only by matching its keywords, which is how Google Cloud defines it. Elastic's documentation describes the mechanics: natural language processing models and vector search find results by meaning rather than by keywords alone.
In practice a model turns each passage of your content into a vector, a list of numbers that places it near passages with a similar meaning. The visitor's question is turned into a vector the same way, and the search returns the passages closest to it. A question about moving house can then find a page headed "Change your address", even though the two share no words.
Sentence-BERT, published by Reimers and Gurevych in 2019, adapted the BERT language model to produce sentence embeddings that can be compared using cosine similarity, a measure of how closely two vectors point the same way.
On benchmark question answering tasks over Wikipedia passages, Karpukhin and colleagues found in 2020 that a dense retriever beat a strong Lucene BM25 system by 9 to 19 percentage points on top-20 retrieval accuracy. That was measured on research datasets, not on a website. It does show the method doing well on question-shaped queries, which is the kind of query this article is about.
How keyword ranking decides which page comes first
Keyword ranking scores each page by the words it shares with the query. BM25, the default ranking model for text in Elasticsearch, is one such model, and Azure AI Search uses it to rank the text half of a hybrid query. It comes from the Probabilistic Relevance Framework, which Robertson and Zaragoza (2009) trace to information retrieval research of the 1970s and 1980s.
BM25 counts and weighs the words a query shares with a page. Rare words count for more, through a weighting called inverse document frequency. Each word's contribution rises as it repeats and then levels off, and counts are adjusted for document length because, in Robertson and Zaragoza's words, some authors use "more words to say the same thing". The model treats text as a bag of words, so the order of words and the relationship between them play no part in the score.
That works well for two or three distinctive words. A whole question behaves differently. Take "how do I renew my membership if I have moved house" on a museum site. The common words carry almost no weight, "renew" and "membership" lift the annual renewals campaign page that repeats both, and "moved" lifts a news item announcing that the shop has moved. The change of address guidance, written as "update your details", matches almost nothing.
Longer questions give keyword ranking more ways to go wrong
Google has published its own figures on query length in its AI Mode. In May 2026 Google said the average AI Mode search is triple the length of a traditional Search query, up from twice as long in April 2025.
Those figures describe Google web search, and we have not found a comparable published figure for site search. Our reading is that people who now ask Google whole questions bring the same habit to a site search box. Every extra word is another term that keyword ranking can match on the wrong page.
Where keyword search still wins
Exact matching is the better tool for some queries. Microsoft's Azure AI Search documentation says queries over product codes, specialised jargon, dates and people's names perform better with keyword search because it can identify exact matches. On a regulator's or a membership body's site, that covers reference numbers, form codes, the titles of legislation and staff names.
GOV.UK learned a version of this a decade ago. In 2015 its team added exact phrase search with double quotes because a few thousand people a month were already trying it. Without quotes, "national service frameworks" returned 19,521 results, and as an exact phrase it returned 11.
The documented answer is hybrid search, which runs both methods and merges the results. Microsoft describes a single query that runs full-text and vector search in parallel and merges them using Reciprocal Rank Fusion. OpenSearch converts the scores from each method to a common scale before combining them, and Elastic describes Reciprocal Rank Fusion as a method for combining result sets with different relevance indicators into one. With the pattern documented by three major search engines, any supplier should be able to explain how their system handles an exact match.
Re-ranking can only reorder what retrieval found
A re-ranker is a second model that takes the top results from the first search and reorders them by how well each fits the question. Microsoft's semantic ranker is a documented example. It re-scores the top 50 results of a BM25 or Reciprocal Rank Fusion search using deep learning models adapted from Bing, and Microsoft states that it cannot rerun the query over the whole collection.
For a site owner, that means a page the first search never found cannot be brought back by re-ranking. Microsoft's own illustration is the word "capital", which means different things in finance, law, geography and grammar, and the ranker uses context to promote results that fit the intent. Re-ranking is also where an organisation's own priorities belong, such as placing guidance above news.
What GOV.UK measured when it moved to semantic search
GOV.UK measured clickthrough and search refinement in a live A/B test when it moved its site search to a semantic search product, and its search team wrote up the move in October 2024, when the search was used more than 4 million times a month. The team concluded from its research that the latest generation of semantic search products, particularly those using large language models, were able to provide significant improvements in relevance at scale. It chose Google's Vertex AI Search, which Google has since renamed Agent Search.
In an A/B test on the live site, the new engine produced a 14% increase in overall clickthrough from the results page, an 11% decrease in users having to refine their search and an 8% reduction in users leaving the site from the search page.
The measures matter as much as the results. Clickthrough asks whether the user clicks a result and how high up it sits; refinement asks whether they had to change their search because the results were not what they expected. Both come from logs you already hold. GOV.UK also built a backend application that updates the search data whenever content changes, and keeping withdrawn pages out is covered in our piece on RAG systems and withdrawn content.
Show the visitor what the search understood
Semantic search makes a judgement about what a question means, and that judgement can be wrong. A failed keyword search can show its reason, because the words visibly did not match, whereas a semantic search that misreads the question gives no sign of it unless the interface shows its reading.
A line above the results stating how the question was read, for example "Understood as: changing the address on your membership", lets the visitor spot a misreading in one glance. Without it, they scroll through results that look plausible and do not answer what they asked.
Facets work in the same spirit. A fixed filter set offers content type and date whatever was asked. Facets drawn from the question itself can offer refinements that fit it, such as "household membership" or "renewals" for the membership question above.
What to put in a site search requirement
Write the requirement around your own search logs, after filtering out automated traffic, which can distort search analytics. Position in the results matters more than volume: GOV.UK found in 2015 that 95% of clicks were on the top 20 results. Ask each supplier the same questions and compare the answers against this table.
| Requirement | A strong answer | A weak answer |
|---|---|---|
| Tested on your real queries | Runs your logged queries, long ones included, and shows the top results beside your current search | A demonstration on the supplier's own content |
| Right page near the top | Reports where the expected page lands for each test query, before and after | "Relevance improves" with no baseline |
| Exact match | Shows codes, names and quoted phrases returning the exact page | "The AI understands everything" |
| Your vocabulary | Shows a public phrase finding your internal term, and how your team adds new ones | Synonyms set once at launch with no route to change them |
| Accessibility | Names the standard and the screen reader testing done before handover | "Accessible by design" with no test evidence |
| Analytics | Reports clickthrough and refinement, with bots filtered | Search volumes and a word cloud |
| Interpretation shown | Shows the visitor how the question was read | Nothing visible to the visitor |
How Axistwelve Semantic Search reads a question
Axistwelve Semantic Search reads the whole question for meaning rather than matching keywords, and shows the reader the interpretation it made, as an "Understood as" line, before answering. It re-ranks results so guidance comes above news items and reference material. Facets are generated from the question itself, so there is no fixed filter set to configure. Content comes in by feed, API or crawl, whichever CMS produced it; basic retrieval works on content as it stands, while audience scoping and document-type filters need reliable metadata. A short cited answer can sit above the full results, and readers can switch it off. The interface is built to WCAG 2.2 AA and tested with a screen reader before handover.
Before you replace your site search box with semantic search
Start with your search logs. Take the longest queries and the ones followed by a refinement, add a set of reference numbers and staff names, and write down the page that should come first for each. That list becomes the test every semantic search supplier runs, including the one you have now.
If you would like to see your own content searched this way first, send us a web address. We index a sample and return a searchable link within five working days, with no call required, and delete the sample index within 30 days unless you ask us to keep it.
Frequently asked questions
Is semantic search the same as vector search?
No. Vector search is a retrieval method: content and queries are turned into vectors and the closest matches are returned. Semantic search is the wider aim of matching meaning and intent, which Elastic's documentation describes as using natural language processing models and vector search, and a system can add keyword ranking and a re-ranker alongside it. A supplier who uses the two terms interchangeably should be asked which parts their system includes.
Will semantic search fix out-of-date or duplicated content?
Semantic search finds the content that best matches a question, so if three pages give three versions of the same guidance, it will find one of them with confidence. Duplicated and stale content is a publishing problem to fix before or alongside the search change. Our piece on what councils need in place before using AI covers content quality as a prerequisite.
Does semantic search mean the site gives AI-generated answers?
Semantic search on its own ranks and returns your pages, and an answer generated from those pages is a separate layer that can be added or left off. Microsoft's semantic ranker, for example, returns captions that are verbatim text from the index, with no generative model composing new content. Generated answers bring their own risks, which we cover in our piece on AI hallucinations in search answers.


