When server-side BM25 in Qdrant replaces a pipeline tokenizer
Teams that run keyword and vector search side by side often maintain their own sparse vector code: a tokenizer, a stemmer, a stopword list, a vocabulary and the statistics behind term weighting. All of it must match at indexing time and at query time, and drift between the two is a common source of odd rankings. Server-side BM25 lets Qdrant build the sparse vector from raw text, so your application sends text and Qdrant produces the term weights it stores and searches. Move tokenization into Qdrant when the pipeline tokenizer is a maintenance burden, when indexing and query code have diverged, or when several services need the same sparse representation. Before you design around any option, confirm in the current Qdrant documentation which BM25 settings and request fields your release supports.
The split is simple to state. The client keeps everything that defines the business meaning of a record: document IDs, chunking, payload fields, access checks, the dense embedding model and the filters a user is allowed to apply. The server takes over the sparse side: tokenizing text, normalizing terms, weighting them with BM25 and tracking the inverse document frequency that BM25 depends on. Your application sends text where it used to send precomputed indices and values, and Qdrant builds the sparse vector. The client still decides how keyword and dense results are fused in each query, which the hybrid search section covers.
Three decisions come before the switch. First, language handling moves with the tokenizer, so confirm which tokenizer, stemming and stopword options your release offers, then test them on a sample of real queries, especially for non-English or mixed-language content. Second, IDF is computed from the data Qdrant holds, so ask how those statistics are scoped when many tenants share one collection and whether that scope matches your isolation rules. Third, run the old pipeline and the server-side path on the same queries and compare the top results before you retire the client code. Treat that comparison as a written acceptance test with named queries and expected results.
How raw text becomes a sparse vector at query and index time
The flow starts in your application, which sends raw document text at index time and raw query text at search time, and which also produces the dense embedding in its own pipeline. The subgraph marks the trust boundary: everything inside the Qdrant node is server-side, so the BM25 sparse vector is built there and written under a named sparse vector in the collection. At query time, the hybrid request combines the query text with the dense vector, and Qdrant returns candidates from both. Check that indexing and querying use the same named vector and that the collection stores the sparse vector you expect before you trust the results.
Raw text becomes a stored sparse vector alongside the dense vector.
Which BM25 configuration fits which workload
This table compares the BM25 setup choices a team makes in Qdrant, with the workloads each one fits and the cost of changing it later. Read each row against your data layout and tenancy model, then check the flagged items against the release you plan to deploy.
| Configuration choice | Fits when | Cost to change later | Confirm before build |
|---|---|---|---|
| Named sparse vector in one collection | Dense and BM25 vectors are queried together and share payload filters and point IDs | Adding a sparse vector to existing points means re-ingesting or updating them | Update path for existing points in your release |
| Separate BM25 collection | Keyword search has a different owner, lifecycle or scale from dense data | Results must be joined in application code, and moving back means re-indexing both sides | Cross-collection query support for your client |
| Global IDF across the collection | One corpus with shared vocabulary, and scores should be comparable for all users | Splitting into per-tenant IDF later requires new collections and a full re-upload | How IDF is computed when the collection is sharded |
| Per-tenant IDF | Tenants have distinct vocabularies and must stay isolated in statistics and data | Usually one collection per tenant, which adds operational overhead as tenant count grows | Collection count limits and memory cost at your tenant volume |
| Default tokenizer settings | Mostly one language with standard keyword matching is enough for the use case | Changing tokenizer or stemming changes term statistics and requires a full re-index | Supported tokenizer options and language coverage |
| Custom language handling in the pipeline | You need domain stopwords, specialized analyzers or languages the default settings do not handle | Query and index tokenization must stay identical across every producer and consumer | Whether your client accepts pre-tokenized input for BM25 |
| Server-side sparse generation | A small team wants Qdrant to build BM25 vectors from raw text in one ingestion path | Switching model or settings later means regenerating sparse vectors for every point | Model name and parameters available in your release |
| Sparse generation kept in the pipeline | You need versioned, reproducible sparse vectors across several languages or services | Every change to weighting or tokenization needs a pipeline re-run and version bump | Whether any server-side settings are needed to match your pipeline output |
How to set up BM25 in a Qdrant collection
This sequence takes a collection from empty to a tested hybrid search that scores keyword matches with BM25 inside Qdrant. Your team confirms the release supports the feature, builds the collection, loads a sample, and checks ranking against queries with known answers before any production data moves in.
Confirm server-side BM25 support in your release
The platform owner checks the release notes for the Qdrant version you plan to run, starting with the Qdrant GitHub releases page, and confirms that server-side BM25 generation and the sparse vector options you need are documented for that version. The latest release listed there is v1.19.2, published October 5, 2026, but a newer release is not automatically a fit. If the feature is not documented for your target version, choose a version where it is before you build anything, because every later step depends on it. Done when the version number and the release note reference are written in your design record.
Create the collection with two named vectors
Create the collection with one named dense vector sized to your embedding model and one named sparse vector for BM25, with the IDF modifier set in the sparse configuration (
"modifier": "idf"), so Qdrant applies inverse document frequency at query time. Use the dense size and distance metric your embedding model documents. Check the collection info response: it should list both vector names, the dense vector size, and the sparse configuration, and the collection status should be healthy. Record the exact vector names, because every prefetch and query in later steps refers to them.Load a small sample with raw text
Insert a small, representative sample of documents. Each point carries its dense embedding, and the raw text goes into the sparse field as a document object that names the BM25 model your Qdrant documentation specifies, so Qdrant builds the sparse vector on the server. Store any tenant, language, or access fields in the payload now, because you will filter on them later. Check that the stored point count matches the number you sent, then retrieve a sample point and confirm that the sparse vector is present and non-empty and that the payload contains the original text.
Run a hybrid query with prefetch and fusion
Send one query with two prefetch branches, a dense branch from the query embedding and a sparse branch built from the raw query text, and fuse the candidates at the top level with Reciprocal Rank Fusion. Set the prefetch limit high enough that each branch returns candidates the fusion can meaningfully rank. Apply the same payload filters in both branches so they cannot disagree. Check that the response returns points in fused order with scores, and that a query containing an exact rare term returns its document near the top. If it does not, run each branch alone to find which one is failing before you change the fusion settings.
Verify ranking against known queries
Build a short test set of queries where the correct documents are already known. Include exact identifiers, product codes, and paraphrases, and record the expected top result for each query. Run dense only, sparse only, and hybrid searches for every query and compare where the expected document lands in each. The check passes when hybrid places the expected document near the top for the keyword-heavy queries and still returns the paraphrase queries that dense search handles well. Save these results as the baseline for every later change to the model, the fusion, or the collection.
Check IDF behavior for shared collections
If the collection serves several tenants or teams, confirm in the current Qdrant documentation how IDF statistics are scoped before you rely on them. Vocabulary and document counts from one tenant can shift keyword scores for another if the statistics are shared. Ask the platform owner to test a tenant with very different language, and compare its ranking with a run against a separate test collection. The check is complete when the team accepts the shared statistics for the workload or chooses a separate collection design, and that decision is written down with the test results.
How IDF scope changes ranking across tenants
Inverse document frequency (IDF) decides how much a matching term is worth, and the scope of the corpus it is measured over decides what that worth is. IDF is high for terms that appear in few documents and low for terms that appear in many. In a BM25 score, a rare word such as a product code or a client's internal project name adds much more to a document's score than a common word such as "invoice" or "policy." When Qdrant computes IDF for a collection, the document count and term frequencies come from every point in that collection. If one collection holds several tenants, a term that is rare for one tenant can be common across the whole collection and get a lower weight, and the reverse is also true. The same query can therefore rank one tenant's results differently from how it would rank them in a collection of their own.
The decision you face is isolation against consistent scoring. A collection or shard per tenant gives each tenant its own statistics and a clean boundary for access control, deletion and backup, but it multiplies the index overhead and makes cross-tenant comparison meaningless. A shared collection with a tenant filter keeps one set of statistics, which is simpler to operate and makes scores comparable across tenants, but it means one tenant's content shapes another tenant's term weights. Your multitenancy design sets which of these you get. Confirm with Qdrant's documentation for your version exactly how sparse statistics are maintained per collection and per shard before you assume a tenant-level IDF exists at all.
Test this with your own data before you commit. Pick two or three tenants with very different vocabularies, index their documents both ways, and run the same queries against a shared collection and a separated one. Compare the top results and note where a tenant's distinctive terms rank differently. Ask whether a tenant with a small corpus gets noisy term weights, and whether your product needs scores to be comparable across tenants for reporting or ranking. Record the answers in your design decision, because changing IDF scope later means reindexing the affected data.
Security and operational risks to plan for
Server-side BM25 moves tokenization and sparse vector generation into Qdrant, so the text itself now lives in the same store as your vectors. The cards below cover the access, retention and operations decisions that follow from that change, and what to confirm before the endpoint or the new sparse configuration reaches production traffic.
Set authentication before exposing the endpoint
Self-deployed Qdrant listens on all network interfaces and has no authentication configured by default. Before the endpoint is reachable from any application network, configure an admin API key and a read-only key, or JWT-based access, and confirm that TLS is enabled for REST and gRPC. Server-side BM25 does not add a separate control here, so the same key and network rules must cover the raw text you now send in. Check the network policy with a test client from outside the intended subnet.
Qdrant security docsScope access to sparse vectors per collection
JWT access control grants read or write permissions per collection, so a service that only queries should not be able to write documents or change the sparse vector configuration. Decide which service accounts create the BM25 named vector, which ones insert raw text, and which ones only search. Confirm in a test environment that a read-only token cannot modify the collection schema and that tokens are scoped to the collections of one tenant or team.
Audit authenticated operations
Qdrant writes JSON audit logs for authenticated API operations, which lets you trace who inserted or queried documents that contain sensitive text. Route these logs to the same store your security team monitors, and confirm which fields identify the caller. Because raw text is sent to the server, verify that the logs record operation metadata without copying document bodies into log output your team cannot protect.
Retention and erasure of payload text
With server-side BM25, the source text is stored as payload and also feeds the sparse index, so deleting a record means removing both the payload and its sparse contribution. Define how long raw text is kept, how erasure requests propagate to snapshots and backups, and who approves deletion. Test a delete end to end, then check that the text no longer appears in a restored snapshot taken before the delete.
Index rebuild effects on live traffic
Adding a BM25 sparse vector to an existing collection or re-indexing documents uses CPU, disk I/O and memory while the collection keeps serving queries. Schedule the change in a window, run it against a staging copy with realistic document counts, and watch latency and optimizer activity during the rebuild. Ask your DeployOpen or internal team to define a rollback path that keeps the previous query behavior available until search quality checks pass.
Client SDK compatibility with upgrades
Server-side inference changes how requests are shaped, so the client SDK version must match the server release that supports the document and query format you use. Pin SDK versions in your build, run the same query set against the staging server before each Qdrant upgrade, and compare ranking output for a fixed sample. Upgrade one minor version at a time and confirm the supported client versions in the release notes before rollout.
Questions teams ask before building BM25 on Qdrant
What does it cost to build server-side BM25 on Qdrant?
The cost is mostly the people time to design the collection, write the ingestion and query code, and test relevance, plus the infrastructure that runs Qdrant. The open-source engine is free to self-host under the Apache-2.0 license, so the license itself adds no fee. Costs rise with the number of collections, the size of the text corpus, how many languages and tenants need separate IDF handling, and how much relevance testing is required before go-live. Infrastructure cost recurs: RAM, block storage and backups. Ask any partner for a fixed-scope quote that lists each deliverable, the environments covered and the test cases included, and separate one-time build work from recurring operations and upgrades.
How long does a pilot take to scope?
Scoping depends on the data and the decisions still open, not on a fixed template. The questions that set the timeline are how many text fields need sparse vectors, which languages appear in the corpus, whether IDF must be computed per tenant, and how much existing search traffic must be compared against. Your team can estimate the schema work and the relevance test set before any partner is involved. Ask for a written scope that names the pilot dataset, the success measures agreed with your search owners and the point at which the pilot stops, rather than a generic duration.
Can our in-house team build BM25 on Qdrant without a partner?
Yes, if your engineers are comfortable with Qdrant collections, named vectors and the query API, and you have someone who owns search relevance. The Qdrant documentation covers the request format and collection setup, so the core build is a normal engineering task. Teams usually need outside help when they lack a relevance owner, when they must run the system inside a regulated network, or when they need a documented evidence trail for reviewers. Your team should check that it can run the upgrade and backup procedures for the Qdrant version it deploys, since those are ongoing responsibilities after launch.
What data and access does the BM25 work need?
The work needs a sample of the text you plan to index, the payload fields that hold it, the tenant or access model that scopes queries, and read access to the current search logs or judged query set used to measure quality. Qdrant itself should run on block storage with a POSIX-compatible file system, not on NFS or S3, according to its installation documentation. Before any data leaves your environment, confirm where the text is processed and who can read the collection. Because a self-deployed Qdrant instance has no authentication by default, access keys, TLS and network limits must be designed in from the start, and the team that reviews the data should approve the sample used for testing.
How do we validate relevance before switching traffic to BM25?
Start with a labeled query set drawn from real searches, with known relevant documents for each query, and compare the current search results with the BM25 plus dense results on the same queries. Measure ranking quality with metrics your search owners agree on before the test begins, and review failure cases by hand, especially rare terms, product codes and multilingual queries. Check that IDF behaves as expected for each tenant if you scope it that way. Keep the old path running in parallel until the comparison is accepted, and record the results so reviewers and auditors can see how the decision was made.
Do we still need a separate search engine if Qdrant has BM25?
Often not for keyword ranking inside a vector retrieval pipeline, but a separate engine may still be needed for features outside Qdrant's scope. Qdrant's server-side BM25 supports keyword scoring alongside dense vectors in one query, which covers many retrieval-augmented workloads. Consider a dedicated engine if you need its full analyzer chain, complex aggregations, log analytics or a large existing index with search features your applications already depend on. Compare the required query features against the Qdrant full-text and hybrid search documentation before you decide, and document the reason for keeping or retiring the existing engine.
How do we handle Qdrant version upgrades for BM25 collections?
Plan upgrades as a recurring task, one minor version at a time, and test the BM25 query path on each target version before you move production. Qdrant's snapshot documentation says a snapshot can be restored only to a cluster running the same minor version or the next minor version, so the restore path must be rehearsed against the version you will run. Pin the client SDK version, re-run the relevance test set after each upgrade, and confirm that the sparse vector configuration still loads as expected. Ask your partner, or confirm internally, who owns the upgrade calendar, rollback steps and the test evidence kept for each release. Watch the Qdrant release notes for changes that affect your settings.
Where to check the current BM25 behavior
The authority for BM25 request format and version support is the official Qdrant documentation, not this page or any blog post. Before you write code, open the documentation for the exact server version you run and confirm the sparse vector and inference fields, their names and their defaults. Qdrant's own pages sit behind the Qdrant documentation for installation and the Qdrant GitHub releases page for change history, so start from those two sources and record the version you checked in your design notes.
Read release notes with a specific question in mind: does this version change how a sparse vector is declared on a named vector, how text is converted into sparse values, or which client SDK method sends the request? Look for changes to tokenization, to the modifier that applies inverse document frequency, and to any field that controls how the server builds the vector. Note the release date and the minor version, because a change in either can affect snapshot restores and client compatibility. The latest release at the time of writing is v1.19.2, published October 5, 2026, so confirm whether a newer release has shipped before you rely on the behavior described here.
Turn the check into a short gate for your team. Pin the server image and client SDK versions, run a small test collection with a few known documents and queries, and compare the returned scores against your expected ranking. Repeat the check whenever you plan an upgrade. If a release note or documentation page is unclear for your setup, ask Qdrant support or your DeployOpen engineer to confirm it in a test environment before production traffic depends on it.
How DeployOpen scopes and delivers BM25 search on Qdrant
DeployOpen plans and builds server-side BM25 on self-hosted Qdrant inside your own infrastructure, starting from a written scope. We set up the collection, named vectors, query flow and access controls, then test and document the result so your security and engineering teams can review it.
How we scope
- Map which text fields become BM25 sparse vectors and which stay as payload filters
- Define the tenant or language boundaries that decide whether IDF is shared or per tenant
- Agree the dense embedding model, hybrid query pattern and result limits in writing
- Confirm where the cluster runs, including the storage and network rules it must meet
How we build
- Create the collection with named dense and sparse vector fields configured for server-side inference
- Wire ingestion so raw text is sent to Qdrant and payloads stay consistent with your source records
- Build hybrid queries that pair dense and BM25 prefetch stages with the fusion method you choose
- Test relevance on your own query set and check how results change across shards
How we hand over
- Deliver configuration as code, with the collection definition, query templates and ingestion scripts
- Document the IDF scope, tokenizer settings and any limits found during testing
- Provide a runbook covering reindexing, snapshots and version checks for the Qdrant release in use
- Walk your engineering and security teams through the access model and audit log configuration
How we support
- Support is available as a retainer for upgrades, tuning and continuous testing after handover
- Retests follow changes to Qdrant releases, client SDKs or the collection schema
- Ask any quote to itemize scoping, build, testing, documentation and retainer costs separately
- Confirm the support hours, response process and upgrade cadence before the work starts

