4 Checks That Decide Whether Hybrid Search Pays Off

Hybrid search — running a BM25 keyword ranking and a dense vector ranking in the same request and fusing the two lists — pays off when your query log mixes exact identifiers that embeddings blur with paraphrases that keywords miss. If one failure mode dominates, a single well-tuned retriever is usually the cheaper and better trade. The four checks below tell you which case you are in before you commit to a second index and a fusion pipeline.
The mechanics are deliberately simple. Elasticsearch’s reference documentation presents reciprocal rank fusion as a tuning-free method that combines result sets with different relevance indicators into one ranking, which is why it became the default way to merge a lexical and a semantic list without training weights. The case for keeping the lexical leg is empirical: the BEIR benchmark paper from Thakur, Reimers, Rücklé, Srivastava and Gurevych evaluated 10 retrieval systems across 18 public datasets and concluded that BM25 is a robust baseline, while dense models are computationally more efficient but often underperform other approaches in zero-shot settings. Hybrid search is the practical answer to that finding: keep the robust baseline, add the dense ranking, fuse them.
Why the two rankings disagree
Keyword and vector rankings fail in opposite directions, and the failures are predictable enough to audit. A BM25 ranking over a product catalogue handles a query such as XR-2400 pressure sensor exactly: the token match is the signal. Push the same query through an embedding model and you get items that are semantically near the words pressure sensor, with the one SKU containing the exact code possibly buried. Reverse the query — “device that warns before a tank overpressurises” — and BM25 returns little of value because no document shares the rare tokens, while the dense ranking surfaces the datasheet that describes the alarm threshold.
Azure AI Search’s documentation names the asymmetry directly: it states that scenarios such as querying over product codes, highly specialised jargon, dates and people’s names perform better with keyword search because it can identify exact matches, whereas vector search finds conceptually similar content even when there are no keyword matches in the inverted index. Those two statements are the whole case for fusion — and the whole case for skipping it when neither pattern appears in your corpus.
How reciprocal rank fusion works
Reciprocal rank fusion scores each document by the sum of 1 / (k + rank) across the lists in which it appears, where rank starts at 1 and k is a constant that dampens the advantage of the top positions. Because it consumes ranks rather than raw scores, it sidesteps the problem that BM25 scores and cosine distances live on incomparable scales. In Elasticsearch the RRF retriever exposes a rank_constant that defaults to 60, and a higher value gives lower-ranked documents in each result set more influence over the fused ranking: raising it flattens the contribution of rank 1 against rank 5, lowering it lets the head of each list dominate.
Microsoft’s hybrid search documentation describes the same shape: a single query request that runs full-text and vector search in parallel and merges both result lists with reciprocal rank fusion, so the caller receives one ranked set. The operational detail that matters is that fusion happens after each retriever has produced its own top-N window. A document outside both windows cannot be rescued, which is why the window size — rank_window_size in Elasticsearch, k in Azure’s vector query — is a relevance parameter and not only a performance one.
Four checks before you fuse
- Audit the error tail by type. Sample zero-result and low-click queries from a recent period and label each as an exact-match failure (codes, names, dates, rare tokens) or a vocabulary mismatch (the user’s words differ from the document’s). If, as a rule of thumb, fewer than roughly one in five belongs to the first group, a synonym list or query expansion on the dense side will beat a second index.
- Score both retrievers on the same labelled set. Build a few hundred real queries with judged relevant documents and compute recall@20 and nDCG@10 for BM25-only, dense-only and the fused ranking with the rank constant left at its default. Fusion earns its place only if it beats the better single retriever on nDCG@10 without dropping recall; if it ties, stop.
- Measure list overlap. Compute the Jaccard overlap of the two retrievers’ top-10 results on that query set. High overlap means fusion mostly reshuffles the same documents and the gain will be marginal; the fusion win comes from queries where the two lists disagree and the lexical list carries the exact match.
- Price the second index honestly. Fusion needs two indexes that stay in sync with the same document revisions, two query paths with their own latency budgets and a filter that applies identically to both legs. If your team cannot keep both legs consistent under the same access rules, a dense-only design with a better filter is the safer choice.
The first two checks are measurement; the last two are engineering cost. Treat them with the same test-first discipline as our piece on cost tests before fine-tuning beats prompt engineering: a small labelled set and a refusal to ship a component that did not move a metric.
Choosing where fusion runs
Three deployment shapes cover most teams. The table compares them on the criteria that change the operational decision rather than on feature checklists.
| Shape | Lexical leg | Dense leg | Fusion location | Best fit |
|---|---|---|---|---|
| Postgres with pgvector | tsvector column with ts_rank | vector column with an HNSW index | Your SQL or application code | One relational source of truth, moderate scale |
| Elasticsearch | BM25 standard retriever | kNN retriever | Built-in RRF retriever | Existing search cluster, high query volume |
| Azure AI Search | Full-text search parameter | vectorQueries | Built-in RRF merge | Teams already on Azure with a managed index |
pgvector is the simplest starting point when the documents already live in Postgres. It runs exact nearest neighbour search by default, which its README says provides perfect recall, and offers HNSW and IVFFlat index types for approximate search when the table grows; the lexical leg is a native tsvector column on the same row, so the fused query is a join on document id with a window function. Elasticsearch and Azure AI Search move fusion into the engine, which removes code you maintain but makes the rank constant and window size part of your search configuration, and therefore part of change management.
A worked fusion example
The arithmetic below is illustrative, not a measured benchmark. Two result lists for one query, with the rank constant at 60:
| Document | Lexical rank | Dense rank | RRF score |
|---|---|---|---|
| Datasheet A (exact SKU match) | 1 | 7 | 1/61 + 1/67 ≈ 0.0313 |
| Guide B (conceptual match) | 3 | 2 | 1/63 + 1/62 ≈ 0.0320 |
| Release note C | 2 | not in window | 1/62 ≈ 0.0161 |
Guide B wins because both lists rank it near the top, while the exact SKU match in Datasheet A is pulled down by a dense rank of 7. That is the characteristic behaviour of RRF: it rewards agreement between retrievers more than a single strong signal. If your audit showed exact-match failures as the problem, this example is a warning — the default constant will not rescue a document that only one leg likes. Lower the rank constant so the head of each list dominates, or widen the window so the lexical leg contributes more candidates, and re-score before shipping.
Rollout without a big-bang switch
Ship fusion as a shadow ranking first. Log the fused order next to the current one for live queries, compute both nDCG figures offline on judged samples, and promote the fused ranking to default only when the gap holds across query types, not merely in aggregate. Keep the rank constant and window size in the same configuration versioning you use for prompts, treat them as routing decisions between two retrievers in the sense of our guide to LLM gateway routing decisions for multi-provider stacks, and keep a kill switch that falls back to the single-leg ranking when the vector leg’s p95 latency breaches its budget.
Sources
- Elastic — Reciprocal rank fusion (Elasticsearch reference): https://www.elastic.co/docs/reference/elasticsearch/rest-apis/reciprocal-rank-fusion
- Microsoft — Hybrid search using vectors and full-text search in Azure AI Search: https://learn.microsoft.com/en-us/azure/search/hybrid-search-overview
- pgvector — README, open-source vector similarity search for Postgres: https://github.com/pgvector/pgvector
- Thakur, Reimers, Rücklé, Srivastava and Gurevych — BEIR: A Heterogenous Benchmark for Zero-shot Evaluation of Information Retrieval Models (arXiv 2104.08663): https://arxiv.org/abs/2104.08663
Method and limits: all four sources were consulted on 1 December 2026. No retrieval benchmark was executed for this piece; the RRF arithmetic above is an illustrative calculation from the published formula, and the one-in-five threshold is an editorial rule of thumb rather than a measured result.
Keep exploring
Artificial Intelligence
3 Cost Tests Before Fine-Tuning Beats Prompt Engineering
Artificial Intelligence
5 MCP Authorization Controls for Tool-Calling Servers
Artificial Intelligence
4 LLM Gateway Routing Decisions for Multi-Provider Stacks
Artificial Intelligence