---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://mixpeek.com/.well-known/search?q={query}"
  method: GET
  documentation: "https://mixpeek.com/llms.txt"
---

Vector Search

8 min read

Updated 2026-11-09

# Why Does My Search Slow Down When I Combine Keyword and Vector Search?

A hybrid query runs a keyword search and a vector search and then merges them, so it costs more than either one. When it costs far more, the searches are usually running one after another, each fetching a deep candidate list, with a filter checked hit by hit. How to find which of the three it is, the fixes in Elasticsearch, OpenSearch and vector stores, and our own before and after numbers at 2.65 million rows.

![Ethan Steininger](/people/ethan.webp)

By [Ethan Steininger](/blog/authors/ethan), Founder & CEO, Mixpeek

Hybrid Search

BM25

Vector Search

Filtered Search

Performance

MVS

[Hybrid search whose legs run at the same time. Try it as you read.See MVS →](/mvs)

[One-click templatesStart from a templateEach template deploys a working search app on your own files.Browse templates](/templates)

## Why does my search slow down when I combine keyword and vector search?

  
  
A combined search, usually called hybrid search, runs a keyword search (BM25) and a vector search over the same data and merges the two ranked lists. It will always cost a little more than either search alone. When it costs several times more, three causes cover most cases: the searches run one after another, so you pay the sum of their times; each one fetches a deep list of candidates for the merge; and a filter is checked on each hit after ranking, which makes the keyword side search deeper and deeper to fill its quota. Run the searches at the same time, size the candidate lists to what the merge needs, and apply the filter before ranking.  
  

## Where does the time go in a hybrid query?

  
  

Step

Slow version

Fast version

Running the searches

One after another: total time is the sum of every search

At the same time: total time is close to the slowest search

Candidate depth

Each search returns thousands of candidates "to be safe"

Each returns what the merge can use, often a few hundred

Filter on the keyword side

Rank first, then read each hit's fields to test the filter, and search again deeper when too few pass

Restrict the search to the rows the filter allows, then rank them once

Filter on the vector side

Rebuild the set of allowed rows on every query

Read the allowed rows from an index the store already keeps

Merge

Normalize and sort every candidate from every search

Rank fusion over the top of each list

  
  
The merge itself is rarely the problem. Reciprocal Rank Fusion only reads ranks, so combining a few hundred candidates from each side takes microseconds. The time goes into the searches that feed it.  
  

## Why are the searches running one after another?

  
  
Many hybrid implementations are a loop: for each search in the query, run it and wait. Three searches of 1 second each then take 3 seconds even though the machine could have run them together. This is common in application code that calls a keyword engine and a vector database in turn, and it can also sit inside a database's own hybrid path. Two searches that do not depend on each other can always run at the same time, and the merge waits for both.  
  

## Why does the candidate list need to be so deep?

  
  
Fusion can only rank documents that some search returned, so each search has to return more than the final page. Elasticsearch's RRF retriever calls this \[`rank_window_size`\](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/reciprocal-rank-fusion), the size of each search's result set, and its documentation says a higher value "will improve result relevance at the cost of performance". A kNN search adds its own depth, `num_candidates`, the number of candidates it considers per shard. Setting both to thousands for a page of 10 results multiplies the work. Measure recall at a few depths on your own queries and keep the smallest depth where it stops improving.  
  

## Why does a filter make the keyword side so slow?

  
  
A keyword index ranks every document that contains the words. If the filter is tested afterwards, on each hit, the search has to read hits until enough of them pass. With a narrow filter most hits fail, so the engine asks for more hits and starts again, often doubling the depth each round. The cost then grows with how many documents contain the words across the whole collection, and the filter does little to reduce it.  
  
Search engines avoid this by applying the filter as a clause that restricts the candidates without scoring them. In Elasticsearch that is the [filter context](https://www.elastic.co/docs/reference/query-languages/query-dsl/query-filter-context) of a bool query. A vector store can do the same: resolve the filter's rows from its payload index, then rank only those rows.  
  

## How do I find which one it is?

  
  
1\. Time each search alone, with the same filter. If the hybrid query takes about the sum of the parts, the searches are running one after another. 2. Lower the candidate depth by half and time it again. If the time drops by about half, depth is the cost. 3. Run the keyword search with and without the filter. If the filtered one is much slower, the filter is being checked per hit. 4. Read the profile: `"profile": true` in Elasticsearch ([search profile API](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/search-profile)) or OpenSearch shows the time per query clause.  
  

## How do I fix it?

  
  
*   **Run the searches concurrently.** In application code, issue both requests together and merge when
both return. Inside one engine, use its native hybrid query: Elasticsearch's RRF retriever runs its sub-searches independently and merges them, and OpenSearch's \[`hybrid` query\](https://docs.opensearch.org/latest/query-dsl/compound/hybrid/) combines them in one request.*   **Size the candidate depth from measurement.** Keep `rank_window_size` and `num_candidates` at the
smallest values where recall on your test queries stops improving.*   **Filter before ranking.** Put filters in filter context, or use a store that restricts both the vector
and the keyword search to the filter's rows.*   **Check the answers.** A faster path should return the same documents in the same order. Compare a
sample of real queries before and after; tied keyword scores can reorder at the cut, and that is the only difference you should accept.  
  

## What did this look like in our own vector store?

  
  
MVS, the vector store behind Mixpeek, had all three causes. A hybrid search awaited each leg in turn, the keyword legs read each hit's payload to test the filter and reran as they searched deeper, and the vector leg rebuilt its set of allowed rows on every call. Since 8 November 2026 the legs run at the same time, up to eight at once, and both kinds of leg take their allowed rows from the filter plan the store already builds for counts and facets. A keyword search whose filter matches up to 25,000 rows ranks them in one pass.  
  

Benchmark at 2.65 million rows, eight filters (median)

Before

After

Vector search, top 5,000

1,324 ms

75 ms

Keyword search, top 200

about 650 ms

about 230 ms

  
  
The benchmark ran on a shared machine under load, 20 queries per row. The results were the same hits in the same order, except that keyword hits tied on score at the cut can come back in a different order, as they already did between two builds of the same index. The change is in the [changelog](/changelog) for 8 November 2026. [MVS](/mvs) keeps vectors and payloads on object storage, S3 or GCS. In a Mixpeek retriever, a [feature\_search](https://mixpeek.com/docs/retrieval/stages/feature-search) stage lists one search per feature and a fusion method: rrf, dbsf, weighted, max or learned.  
  
Related: [what hybrid search is and how to fuse the rankings](/guides/hybrid-search-bm25-vector-fusion), [why search gets slower as the collection grows, even with a narrow filter](/guides/why-does-filtered-search-get-slower-as-the-collection-grows) and [the best hybrid search engines](/curated-lists/best-hybrid-search-engines).  
  

## Frequently Asked Questions

  
  

### Is hybrid search always slower than vector search alone?

  
  
It does more work, so it costs at least as much as its slowest search plus a merge that takes microseconds. With the searches running at the same time and filters applied before ranking, that difference is usually small. Much larger differences point to one of the three causes above.  
  

### What should rank\_window\_size be in Elasticsearch RRF?

  
  
It defaults to the request's size and must be at least that. Elastic's documentation says a higher value improves relevance at the cost of performance, so measure recall on your own queries at a few values, for example 50, 100 and 200, and keep the smallest one where recall stops rising.  
  

### Why is my filtered keyword search slower than my unfiltered one?

  
  
The filter is probably tested on each hit after ranking, so the engine reads hits until enough pass and searches again deeper when they do not. Apply the filter as a non-scoring clause, such as filter context in Elasticsearch, so the search only ranks the rows it allows.  
  

### Does running the searches concurrently change the results?

  
  
It should not. The merge reads the same lists in the same order whichever search finished first. Check it on a sample of real queries before you switch, as we did on 260 random mixes of searches before shipping ours.

## Hybrid search whose legs run at the same time

MVS, Mixpeek's vector store on object storage, runs a hybrid search's vector and keyword legs concurrently and applies the filter before ranking, so a filtered hybrid query costs about its slowest leg.

[See MVS](/mvs)[Read the changelog](/changelog)

[Explore MVS](/mvs)[See pricing](/pricing)

## Related guides

[

Vector Search

### Why Does My Search Get Slower as the Collection Grows, Even With a Narrow Filter?

A filter that keeps 500 rows should cost about the same in a 1-million-row collection as in a 10-million-row one. When it does not, a count, a sort or a keyword step is walking an index over every row of the field. How to find the slow step, why planners choose it, and the fixes in PostgreSQL, Elasticsearch and vector stores, with our own before and after numbers at 8.17 million rows.

Read guide →](/guides/why-does-filtered-search-get-slower-as-the-collection-grows)[

Retrieval

### What Is Hybrid Search? BM25, Vector Retrieval, and How to Fuse Their Rankings

Why keyword and vector retrieval fail on opposite queries, what BM25 actually computes, and how Reciprocal Rank Fusion combines two rankings whose scores are not on the same scale. Covers the term-frequency saturation and length normalization inside BM25, why raw score addition breaks, RRF versus min-max and convex combination, how to pick the weighting, when hybrid is worse than either half, and what changes when one side of the index is video or images.

Read guide →](/guides/hybrid-search-bm25-vector-fusion)[

Search & Discovery

### Why Can't My Search Find Exact Part Numbers, Codes or Names?

Semantic search compares meanings, and a part number, an error code or an unusual surname carries almost none, so the index returns records that look alike instead of the one that matches. Run a keyword (BM25) search beside the vector search, merge the two lists by rank, and use an exact filter when the identifier lives in its own field.

Read guide →](/guides/why-search-cant-find-exact-part-numbers-codes-names)