Since Qdrant v1.20.0, released 2026-10-22, BM25 can be scored directly on a full-text payload index created with type text and scoring true, queried with a text query and using set to the payload field, and fused with a dense prefetch through RRF or DBSF in one request. That route needs no sparse encoder and no avg_len constant, because Qdrant computes the average document length from your data. The full-text index defaults to the word tokenizer and lowercasing with no stemmer and no stopwords, while the Qdrant/bm25 sparse model applies English stemming and stopwords and assumes avg_len 256, so scores shift when you switch unless you set the english Snowball stemmer and english stopwords on the index. RRF in Qdrant defaults to k 2, k is configurable since v1.16.0 and per-prefetch weights since v1.17.0. The sparse route is not deprecated, and on 1.20.x it stays faster under narrow payload filters: the open PR #11615 measured native BM25 at 10.96 ms against 0.32 ms for sparse BM25 with a 5-product brand filter. Statistics are per shard and lag deletes until the optimizer rebuilds segments. Start by creating a scored text index next to your existing sparse vector on a staging collection and comparing top-10 results on 20 known-answer queries.
For Qdrant hybrid search BM25, you no longer need a sparse encoder. Since Qdrant v1.20.0, released on 2026-10-22, you can turn on BM25 scoring on a full-text payload index ("type": "text", "scoring": true), query it with {"text": "..."} and "using": "<field>", and fuse that result with a dense prefetch through RRF or DBSF in one request. The older route, a sparse vector with the idf modifier filled by the qdrant/bm25 model, still works and is not deprecated. On 1.20.x it is also the faster choice for queries under a narrow payload filter, because the fix for native BM25 in that case had not merged by 2026-11-27.
The problem shows up in dense retrieval over contracts, policies and product catalogues. A query for "Section 7.2.1 indemnification" or a part number lands near text that talks about indemnification in general, and the chunk that holds the exact clause can rank twentieth. The classic Qdrant fix was a second, sparse vector per point, tokenized and stemmed by the Qdrant/bm25 model, with an average document length you guessed once and never revisited. The Qdrant v1.20.0 release notes list the replacement as "BM25 scoring directly on the full-text payload index", and Qdrant's own sparse-vector page now recommends running BM25 on a full-text index rather than on sparse vectors.
Everything below is pinned to Qdrant v1.20.2 (released 2026-11-16, the latest final release on or before 2026-11-27), qdrant-client 1.20.0 and FastEmbed 0.9.1. Every request key is checked against the REST schema at the v1.20.2 tag and the Python client models at the 1.20.0 tag.
Three ways to wire Qdrant hybrid search BM25 in v1.20
Hybrid retrieval pairs a dense embedding, which matches meaning, with a lexical scorer, which matches the exact tokens a dense model blurs: identifiers, clause numbers, drug names, error codes. Which dense model sits on the other side of the fusion is its own decision, covered in choosing an embedding model for RAG. The rest of this post is about the BM25 side and how Qdrant produces it.
There are three routes in v1.20, with two storage shapes between them: the payload text alone, or the payload text plus a sparse vector.
Use the first route by default. It stores nothing extra, it reads text you already have in the payload, and the length statistics track the corpus instead of a constant. If you keep a sparse vector, fill it on the server with the third route rather than in your application: tokenization then happens in one place, and nothing on the client has to stay in step with the server's settings.
The narrow-filter column is the one reason to stay on sparse vectors today, and it gets its own section below. The broader map of retrieval choices sits on the RAG systems pillar page.
| Route | Where tokens are computed | What you store | Average length | Default text processing | Narrow payload filter on 1.20.x | Mirror for an air-gapped site |
|---|---|---|---|---|---|---|
Full-text index with scoring | Qdrant server, from stored payload | Payload plus text index | Computed from your data | Word tokenizer, lowercase, no stemmer, no stopwords | Walks every posting of each query term | Nothing |
| Sparse vector, filled by FastEmbed on the client | Your application process | Payload plus sparse vector | You set avg_len, default 256 | English stemmer and English stopwords | Sparse index path | The Qdrant/bm25 stopword repository |
Sparse vector, filled by qdrant/bm25 on the server | Qdrant server, in-process on CPU | Payload plus sparse vector | You set avg_len in options, default 256 | English stemmer and English stopwords | Sparse index path | Nothing |
Create a scored Qdrant full-text index
The minimal form turns on BM25 with defaults. The collection and field names are illustrative; body is the payload field that holds each chunk's text.
PUT /collections/docs/index?wait=true
{
"field_name": "body",
"field_schema": {
"type": "text",
"scoring": true
}
}If the collection already holds points with a body payload, Qdrant builds the index from stored payload and you upload nothing again. The Qdrant full-text index parameters mark BM25 scoring as available from v1.20.0 and describe true as a shorthand for the bm25 scoring type; the schema at v1.20.2 also accepts {"type": "bm25"}, the only scoring type that exists. The schema description adds one operational fact: changing scoring rebuilds the index. On a large collection, schedule it like any other index migration.
A text index uses the word tokenizer and lowercases tokens, with stemming and stopword removal both off. That is a good match for identifiers and names, where "indemnification" and "indemnify" should stay distinct, and a poor match for English prose, where you want "renewals" to hit "renewal". For prose, or to reproduce the behaviour of an existing Qdrant/bm25 sparse vector, set the stemmer and stopwords explicitly:
PUT /collections/docs/index?wait=true
{
"field_name": "body",
"field_schema": {
"type": "text",
"tokenizer": "word",
"lowercase": true,
"stemmer": { "type": "snowball", "language": "english" },
"stopwords": "english",
"scoring": true
}
}Two other options change what BM25 sees. The code tokenizer, new in v1.20.0, splits identifiers the way source code is written: the indexing docs show getUserName matching get_user_name and "user name". Use it for source code, configuration keys and API names, without a stemmer. ascii_folding (default false) folds accented characters to ASCII, so "ação" and "acao" index the same; turn it on for corpora where users type without accents.
Nothing about k or b goes on the index. Those are query parameters, which means you can tune them without a rebuild.
Query it, then fuse: Qdrant hybrid search RRF and DBSF
A BM25-only query names the text and the payload field. The second request sets the two BM25 parameters per query:
POST /collections/docs/points/query
{
"query": { "text": "section 7.2.1 indemnification" },
"using": "body",
"limit": 10,
"with_payload": true
}
POST /collections/docs/points/query
{
"query": {
"text": {
"query": "section 7.2.1 indemnification",
"scoring": { "bm25": { "k": 1.5, "b": 0.5 } }
}
},
"using": "body",
"limit": 10
}The term-frequency parameter is k. Qdrant's docs say outright that it is named k, not k1, even though server internals and one schema description still use the textbook name. Defaults are k 1.2 and b 0.75. The using field points at the payload field, which must have scoring set.
The matching rule is an OR over terms. A point is returned if its text contains at least one query term; points with none are not returned, and a term repeated in the query counts once. To require or exclude a term, add a full-text condition to the request's filter.
The hybrid request puts that text query in one prefetch and the dense query in another, then fuses them:
POST /collections/docs/points/query
{
"prefetch": [
{ "query": { "text": "section 7.2.1 indemnification" }, "using": "body", "limit": 50 },
{ "query": [0.01, 0.45, 0.67], "using": "dense", "limit": 50 }
],
"query": { "rrf": {} },
"limit": 10,
"with_payload": true
}The dense vector is truncated for display, and dense is the name of your dense vector in the collection. The prefetch limits of 50 are a starting point to tune, not a value from Qdrant's docs. Each prefetch runs independently with its own limit, and only candidates that make one of those lists can appear in the fused top 10.
Start with RRF, because BM25 scores and cosine similarities live on unrelated scales and RRF ignores scale entirely. DBSF is worth a test when a large BM25 margin should count for more than a rank, for example a query that is an exact identifier. The hybrid docs also describe the reverse layout: a dense prefetch rescored by BM25 as the outer query. Candidates that contain none of the query terms are dropped there, so the result can hold fewer points than limit.
Whether a cross-encoder on the fused list earns its latency is a separate measurement, covered in when reranking improves RAG retrieval. If your keyword index lives in Postgres next to pgvector rather than in Qdrant, the same RRF pattern in SQL is in pg_search vs pg_textsearch for BM25 in Postgres.
from qdrant_client import QdrantClient, models
client = QdrantClient(url="http://localhost:6333")
client.create_payload_index(
collection_name="docs",
field_name="body",
field_schema=models.TextIndexParams(
type=models.TextIndexType.TEXT,
tokenizer=models.TokenizerType.WORD,
lowercase=True,
stemmer=models.SnowballParams(
type=models.Snowball.SNOWBALL,
language=models.SnowballLanguage.ENGLISH,
),
stopwords=models.Language.ENGLISH,
scoring=True,
),
)
query = "section 7.2.1 indemnification"
query_vector = embed(query) # your dense embedding function
hits = client.query_points(
collection_name="docs",
prefetch=[
models.Prefetch(query=models.TextQuery(text=query), using="body", limit=50),
models.Prefetch(query=query_vector, using="dense", limit=50),
],
query=models.RrfQuery(rrf=models.Rrf()),
limit=10,
)RRF k and weighted RRF
Qdrant's hybrid and multi-stage query docs define the RRF score, with default weights, as the sum of 1 / (k + r) over the result sets, with r the zero-based rank, and set k to 2 by default. The source agrees: DEFAULT_RRF_K is 2 in lib/segment/src/common/reciprocal_rank_fusion.rs at v1.20.2. With k at 2, rank 0 contributes 0.5 and rank 9 contributes about 0.09, so the head of each list dominates. If you carried 60 over from another engine, set it explicitly with {"rrf": {"k": 60}}, available since v1.16.0. Weights arrived in v1.17.0: {"rrf": {"weights": [3.0, 1.0]}} assigns one weight per prefetch in prefetch order. The source divides each 1-based rank by the weight, so in the request above a BM25 result at rank 2 contributes what a rank 0 result contributes at weight 1, and the BM25 list takes more of the head of the fused list. The API definition says the number of weights should match the number of prefetches. Weights act on ranks, not on BM25 scores, so they are safe to tune without worrying about score scale.
RRF vs DBSF
Qdrant hybrid search in Python
The same index and query with qdrant-client 1.20.0. embed() stands in for your own dense encoder. TextQuery.text accepts a plain string or a TextQueryInput with query and scoring, so per-query k and b go through models.Bm25Scoring(bm25=models.Bm25Params(k=1.5, b=0.5)). To switch to DBSF, replace the outer query with models.FusionQuery(fusion=models.Fusion.DBSF); for weights, pass models.Rrf(weights=[3.0, 1.0]).
RRF ({"rrf": {}}) | DBSF ({"fusion": "dbsf"}) | |
|---|---|---|
| Available since | v1.10.0 (k from v1.16.0, weights from v1.17.0) | v1.11.0 |
| Uses | Rank position only | Raw scores, normalized per result set |
| Normalization | None needed | Mean plus or minus 3 standard deviations as endpoints, then summed |
| Edge case | Score depends on ranks only, so score scale never matters | Emits 0.5 when all scores are equal or one point is returned |
| Tuning knobs | k, weights | None in the request |
The sparse vector BM25 route and the Qdrant/bm25 model
The sparse route stores a sparse vector per point, computed from the document's tokens, and lets Qdrant apply IDF at query time through the idf modifier. The Qdrant sparse vector BM25 setup shows the server filling that vector itself when you send text with "model": "qdrant/bm25":
PUT /collections/docs_sparse
{
"vectors": { "dense": { "size": 384, "distance": "Cosine" } },
"sparse_vectors": { "bm25": { "modifier": "idf" } }
}
PUT /collections/docs_sparse/points?wait=true
{
"points": [
{
"id": 1,
"vector": {
"bm25": { "text": "Section 7.2.1 sets the indemnification cap.", "model": "qdrant/bm25", "options": { "avg_len": 120 } }
},
"payload": { "body": "Section 7.2.1 sets the indemnification cap." }
}
]
}
POST /collections/docs_sparse/points/query
{
"query": { "text": "indemnification cap", "model": "qdrant/bm25" },
"using": "bm25",
"limit": 10
}The dense vector is left out of the upsert to keep the block short; a real hybrid collection supplies both. avg_len 120 is illustrative, and if you omit it the model assumes 256 words. That constant is the weak point of this route: it has to describe your corpus, and nothing updates it when the corpus changes.
This server-side variant is not a Qdrant Cloud feature. In the open-source server at v1.20.2, src/common/inference/local_model.rs maps the model names qdrant/bm25 and bm25 to a local BM25 implementation, and the inference service returns those results without calling a remote inference endpoint. The options object accepts the BM25 settings: k (1.2), b (0.75), avg_len (256), tokenizer, language (English if unset), lowercase, ascii_folding, stopwords, stemmer, min_token_len and max_token_len.
The client-side variant runs FastEmbed in your application. In FastEmbed 0.9.1 the Qdrant/bm25 model's constructor defaults are k=1.2, b=0.75, avg_len=256.0, language="english" and token_max_length=40. When it initializes, FastEmbed fetches the Qdrant/bm25 repository from Hugging Face, and that repository holds no weights: it is a README, a config.json and stopword text files, one per language. A site without internet access has to mirror those files and point the constructor at them with specific_model_path or a pre-filled cache_dir.
Qdrant has not deprecated the sparse route. Qdrant's BM25 tracking issue, closed as completed on 2026-11-03, lists "retiring the sparse BM25 route" under "Not in scope yet". Keep it where it earns its storage: tenant-scoped or very selective filtered queries on 1.20.x (see the filter section below), or a design that needs a stemming language chosen per document inside one vector, which a single text index cannot do.
Migrating from Qdrant/bm25 without losing your rankings
Qdrant's full-text search documentation has a short migration section, and its two warnings decide the plan. The model uses English stemming and stopword removal by default and the index does not, so set the english Snowball stemmer and english stopwords on the index if you used the model defaults. And the index computes average document length from your data, so scores can differ from the sparse model, "especially if avg_len didn't match your data".
Length is stored differently too. The pull request that defined how Qdrant stores BM25 document lengths, merged on 2026-10-16, encodes each length as a log-scaled 16-bit code: exact up to 8,192 tokens, rounded down by less than 2^-12 above that, and saturating at 134M tokens. It halves length storage (200 MB at 100M points instead of 400 MB), and on four BEIR datasets, where every document is under 8,192 tokens, rankings were identical to exact lengths. For chunked RAG corpora this is invisible. For teams moving from Elasticsearch, OpenSearch or Solr it is one more reason scores will not match the old engine: the same PR found that a Lucene-style one-byte length norm changed up to 4.5% of top-10 results on long documents, and an open Qdrant issue from 2026-11-18 asks for a Lucene-compatible option for that migration case.
Deleting the sparse vectors at step 7 would save storage, but keeping them for one release means a regression is fixed by editing a request body rather than re-embedding a corpus.
| Step | What to do | Why |
|---|---|---|
| 1 | Create a scored text index on the payload field that already holds the text | No re-upload; Qdrant indexes stored payload |
| 2 | Set stemmer to Snowball english and stopwords to english if the sparse vector used model defaults | Matches the model's tokenization |
| 3 | Drop avg_len from your pipeline | The index computes it per shard from data |
| 4 | Add the text prefetch next to the existing sparse prefetch on staging | Compare both on the same queries |
| 5 | Compare top-10 overlap on a fixed known-answer query set | Scores differ by design; rankings are what matter |
| 6 | Re-tune RRF weights, k and any score_threshold | Thresholds set against sparse scores no longer apply |
| 7 | Remove the sparse prefetch from the query, keep the vectors for one release | Rollback is a query change, not a re-ingest |
Qdrant BM25 statistics, filters and multilingual text
POST /collections/docs/points/query
{
"query": { "text": "indemnification cap" },
"using": "body",
"filter": { "must": [
{ "key": "tenant", "match": { "value": "acme" } },
{ "key": "year", "match": { "value": 2026 } }
] },
"params": { "idf": { "corpus": { "must": [ { "key": "tenant", "match": { "value": "acme" } } ] } } },
"limit": 10
}Statistics are per shard
Both routes compute IDF over the shard being queried. In a collection with several shards, each shard uses its own statistics, so the same document can score slightly differently depending on where it lives. The BM25 tracking issue lists cross-shard IDF as not in scope yet. With RRF a per-shard score difference changes the fused list only when it swaps two ranks inside one prefetch; with DBSF or a score_threshold, it can move a borderline document.
Statistics drift after deletes and updates
After points are deleted or updated, the full-text statistics can include outdated data until the optimizer rebuilds the affected segments. Deleted points never appear in results; they only keep counting in N and document frequencies for a while. The tracking issue records why: a correction that removed tombstoned points from N was closed without merging because it scanned deleted points on every query and could cost more than the scoring itself, and the same issue notes that sparse IDF already keeps deleted points in both document frequency and N. Neither route is exact between optimizations. If you bulk-delete a tenant or a document class, expect scores to settle after the optimizer runs, not immediately.
Per-tenant statistics
Since v1.19.0, a query can compute IDF over a subset of points instead of the whole shard. The idf search parameter takes a corpus filter, and per-tenant scoring statistics apply to BM25 text queries and to sparse vectors with the IDF modifier. For BM25 on a text index, the corpus also scopes the average document length. The corpus is deliberately broader than the retrieval filter: statistics come from all of one tenant's documents, results only from that tenant's 2026 documents. The field in the corpus filter should have a payload or tenant index (Qdrant Cloud's strict mode rejects filters on unindexed fields), and an empty corpus does not fall back to shard-wide statistics. Using idf on a sparse vector without the IDF modifier is an error. The Prefetch object in the v1.20.2 schema carries the same params field for a prefetch without nested prefetches, which is where this goes inside a hybrid request, though Qdrant's docs show the pattern only on a standalone query.
Narrow payload filters
On 1.20.x, native BM25 is slower than sparse BM25 under narrow filters. The open pull request that speeds up filtered native BM25, opened on 2026-11-18 by a Qdrant team member and unmerged on 2026-11-27, describes the cause: native BM25 "walked every posting of every query term and checked the filter per document. With a narrow filter the top-k never fills, so pruning never starts." Its own benchmark ran on 1.81M ESCI US products in 8 segments, reporting server-time p50 over 20 runs. With a brand filter matching 5 products, the base build took 10.96 ms for native BM25 against 0.32 ms for sparse BM25 on the same query. Across 1,000 random brand-filtered queries the base build averaged 2.36 ms. The fix only changes the plan when the filter keeps fewer than 5,000 points in a segment; wide filters keep the existing walk. Those are the PR's numbers on one dataset, not a general benchmark, and the PR itself states that native BM25 got slower as the filter got narrower. So if most of your BM25 traffic is tenant-scoped with small tenants, or filtered down to a handful of documents by product, matter or patient, keep the sparse vector until that PR ships in a release, or widen the filter and let the corpus filter carry the scoping. Selective filters already change dense HNSW behaviour, as covered in why metadata filters collapse vector search recall; on 1.20.x they now change the BM25 side as well.
Multilingual corpora
A text index takes one stemmer. At v1.20.2 the Snowball stemmer supports 19 languages, from Arabic to Turkish, with no Chinese or Japanese; the stopword list covers 30 languages including both. The multilingual tokenizer is for non-Latin scripts and languages written without spaces. For a corpus that mixes, say, German and English contracts, the schema leaves one pattern: one payload field and one scored text index per language, with a prefetch per field. The open request for per-point stemming languages, filed on 2026-11-17, describes that pattern as the one that works today and had no maintainer reply as of the post date. The server-side sparse route takes a language per request in options, which is the other way to vary stemming per document.
Arrays of text
The nested index parameter, added in v1.20.0, indexes every element of an array as its own document. A text query then scores each element separately, a point gets the score of its best-matching element, and the average document length becomes the average element length. For a product with several offer titles, or a contract stored as an array of clauses, that is closer to what you want than scoring the concatenation.
Running BM25 in Qdrant inside a regulated perimeter
The full-text route removes a moving part from a self-hosted retrieval stack. There is no FastEmbed package to approve and patch, no Hugging Face fetch of a stopword repository to mirror, no client-side tokenizer that must match server settings, and no avg_len constant that drifts away from the corpus. Statistics come from data already in the payload. If you stay on sparse vectors for filtered workloads, the server-side qdrant/bm25 model keeps tokenization inside Qdrant with no external inference service.
Tokenizer, stemmer, stopwords and scoring now determine which chunk a compliance analyst sees for a clause query, so they belong in the same versioned configuration as the collection schema, and a change to them goes through the change log like a model update. Toggling scoring rebuilds the index, so plan it as a migration with a maintenance window. Per-tenant IDF matters for multi-entity banks, insurers and holding structures that share a collection: without it, one entity's vocabulary shapes the rarity weights another entity's queries see. The same instance now holds the keyword index, so its access controls and TLS setup from hardening a self-hosted vector database cover lexical search as well. Our on-premise AI development team builds and gates this kind of retrieval stack on client infrastructure.
This week, on a staging copy of one collection, create a scored text index on the field your sparse vector was built from, with the English stemmer and stopwords if you used the model defaults. Run 20 known-answer queries through the sparse prefetch and the text prefetch separately, and record the top-10 overlap and the rank of the right chunk in each. Include five queries with your narrowest production filter. If overlap is high and the filtered queries stay within your latency budget, switch the hybrid query to the text prefetch and keep the sparse vectors for one release.
FAQ
Quick answers to the questions this post tends to raise.



