Planning Qdrant payload indexes for filtered search before data is loaded
When a team filters vector search by tenant, date, status or location and sees slow or inconsistent results, the usual cause is that the filtered fields were never planned as payload indexes. Payload indexes should be planned per field and per type before ingestion starts. Each field you filter on needs a deliberate choice of index type, and that choice should be made from your query patterns, not added after users complain.
Qdrant offers eight payload index types: keyword, integer, float, bool, geo, datetime, text and uuid. A keyword index suits exact-match fields such as a tenant ID or a status value, an integer or float index suits numeric ranges, datetime suits time windows, geo suits location radius and bounding-box queries, text supports full-text matching on string content, and uuid suits identifier lookups. Filtering is only needed when a query must restrict results by metadata. If every query searches the whole collection and metadata only decorates the output, you may not need a payload index at all. Confirm this against your application's actual query set before you add indexes.
The open-source engine is licensed under Apache-2.0 and is free to self-host, so the cost of payload indexing is mainly the memory and engineering time it consumes inside your own infrastructure. Index planning should therefore list every filtered field, its index type, its expected cardinality and the queries that depend on it. Review that list with the team that owns the data model and with the security team if fields hold regulated or tenant-identifying values. For a list of the access and audit controls that sit around these fields, see the Qdrant security documentation.
The primary check before loading data is to confirm that every planned field exists in a test collection with its index in place, and that a sample filtered query returns the expected results. Index definitions are easier to adjust while the collection is small, so run the test on a representative sample before committing the full ingestion job.
Which payload index type fits which field
This table maps common filter fields in a Qdrant payload to the index type that fits each one, with the query behavior and memory cost to confirm before you commit. Read each row as a field pattern, then check the type against your own query mix and payload size. The main takeaway is that the type should follow how the field is filtered, and every type adds memory that must be sized before ingestion.
| Field pattern | Index type | When it fits | Confirm before indexing |
|---|---|---|---|
| Tenant IDs and categories | keyword | Exact-match filters on strings such as tenant, department, document class or product line | Cardinality of the values and how many filters combine per query |
| Numeric ranges | integer or float | Range filters on counts, prices, page numbers or numeric scores; use integer for whole numbers and float for decimals | Whether values are whole numbers, since the choice changes the stored type and range behavior |
| Time windows | datetime | Filters such as created after a date or updated within the last 30 days (illustrative) | Timestamp format in your payloads and the time zone used when ingesting |
| Flags | bool | Yes or no fields such as is_archived, is_public or has_consent | Whether every point always carries the flag, since missing values behave differently in filters |
| Location radius | geo | Filters that select points within a distance of a latitude and longitude | Payload coordinate format and the distance units your application expects |
| Full-text match | text | Word or phrase matching inside titles, descriptions or extracted document text | Tokenizer and language settings, and that text match is not a substitute for a ranked keyword search engine |
| Identifiers | uuid | Exact lookups on record or document identifiers stored as UUID values | That every identifier is a valid UUID, since malformed values will not match as expected |
| Mixed or nested payload values | Confirm per field | Fields that hold arrays, objects or mixed types need a type check before choosing an index | Actual value shapes in a sample of your data and the index memory they add per field |
How ACORN handles restrictive filters
A broad filter matches most of the points in a collection, such as a condition that selects all records in an active status or all records in one large region. In this case, the HNSW graph still has plenty of matching neighbors around any query point, so the search can follow the graph and collect enough candidates without special handling. Most of the time, the filtered search behaves much like an unfiltered one, and the work concentrates on the usual parameters for recall and speed.
- Neighbors usually pass: Most direct graph neighbors satisfy the filter, so traversal rarely stalls.
- Payload index still helps: An index on the filtered field lets Qdrant estimate cardinality and choose a sensible plan.
- Cardinality estimates matter less: Qdrant can plan the search with a high match ratio in mind.
- Fewer surprises under load: Latency tends to track the vector search itself rather than the filter.
- Check the baseline: Record recall and latency with the broad filter so you can compare later changes.
Confirm with a test query set that a broad filter on your data returns the expected results at your target latency before you assume it needs no extra tuning.
A restrictive filter matches only a small fraction of points, such as one tenant, a narrow date range or a rare category. The problem is that the HNSW graph connects points by vector similarity, not by payload value, so most direct neighbors of a query point may fail the filter. The search then visits many nodes that it cannot return, and recall can drop or latency can rise. This is the case that filter-aware graph search is designed to handle.
- Direct neighbors fail: Most of the nodes reached in the first hop do not match, so the search stalls.
- Recall risk rises: Fewer valid candidates are found within the search budget.
- Latency can rise: More nodes are visited to find matches, especially with large collections.
- Payload index is the starting point: Qdrant needs the filtered field indexed to plan these searches.
- Small matches may bypass HNSW: When the match set is small, Qdrant can scan matching points directly, which depends on its planner and thresholds.
Confirm with your own restrictive filters, including the rarest values, that results and latency stay within your requirements.
ACORN is a search algorithm that Qdrant added in v1.16.0. When a direct neighbor of a node is filtered out, ACORN explores the neighbors of that neighbor, a second hop, to find candidates that pass the filter. This extends reach through the graph without rebuilding the index, and it targets the case where the first hop yields too few valid points. The exact behavior, including when it activates and which settings control it, is defined by the Qdrant version you run and its configuration.
- Second-hop exploration: Candidates are reached through neighbors of filtered-out nodes.
- Introduced in v1.16.0: Earlier versions do not have this behavior, so confirm your version before planning around it.
- Activation depends on the query: The search engages the extended exploration when direct neighbors fail the filter.
- Cost is extra traversal: Second-hop exploration visits more nodes, which can add latency.
- Settings are version specific: Confirm the parameter names and defaults in the indexing documentation for your release.
Confirm the ACORN settings in the indexing documentation for your exact version and whether they are set at collection or query time.
Benchmarks on public datasets do not predict how your filters behave on your payloads, because selectivity, value distribution and vector geometry differ across datasets. A filter that is restrictive for one dataset can be broad for another. The reliable approach is to build a labeled set of queries that mirror your real filter combinations, including the rarest values, and to measure recall and latency against an exact baseline. Recheck these measurements after changes to the collection, the index or the Qdrant version.
- Build filter-specific query sets: Include broad, medium and rare filter values from production patterns.
- Use an exact baseline: Compare approximate results with exact search for the same filter.
- Measure recall at k and tail latency: Averages hide slow queries that matter to users.
- Compare with and without ACORN settings: Only where your version exposes the choice.
- Repeat after data growth: Selectivity changes as collections grow.
Confirm with your platform team who will own the query set and when the measurements are rerun.
How payload index planning fits the ingestion sequence
The sequence starts with inventorying filter fields from the query patterns the application will run, then choosing an index type for each field. Payload indexes are created in the collection before points are ingested, so HNSW can be built with filterable links from the start. After ingestion, teams verify indexed filters against their expected queries. If an index was added late, the collection must be rebuilt, and restrictive filters should be routed to ACORN testing before go-live.
Payload index phases from field inventory through ingestion, verification and rebuild.
Setting up payload indexes in a planned order
This sequence turns a list of filter fields into a collection where every filtered query is backed by a typed payload index built before data arrives, and each stage has a check that proves it. The order matters because indexes created early are built as data loads, and the checks catch type mismatches before they become silent recall or performance problems.
Collect filter fields from real query patterns
The search or application team lists every payload field that appears in a filter condition, using the queries the application runs today and the ones planned for launch. Platform engineers record each field's name, the filter operators used on it (exact match, range, geo, full text) and how often it appears. Fields used only for display stay out of the list, because each index adds memory cost. The step is done when the list is reviewed by both the application owner and the platform owner and every filter in the application code maps to a listed field or is explicitly excluded.
Map each field to a payload index type
For each field, choose one index type from the set the indexing documentation lists: keyword, integer, float, bool, geo, datetime, text or uuid. Match the type to the values actually stored, so a field holding numeric IDs stored as strings is either converted at ingestion or indexed as keyword. Write the mapping in a table that also notes whether a field needs full-text search. The step is complete when a sample of real payloads has been checked against the chosen types, and any field with mixed value types has been fixed at the source or split into separate fields.
Estimate index memory before creating the collection
Count the indexed fields and the expected number of points, then review the memory each index will use on the target nodes against the RAM plan for the collection. Indexes are held alongside vectors and HNSW structures, so an index list that looks harmless on a laptop can push a production node into swapping or eviction. Ask the Qdrant team or your own benchmark to confirm the per-index memory for your payload shape, and drop any field whose filter value is marginal. The step is done when the planned index count fits the sizing for the node class you will run.
Create the collection with indexes defined up front
Create the collection and its payload indexes through the API before any points are uploaded, using the commands and configuration keys in the indexing documentation. Creating the indexes first means Qdrant can build filterable HNSW links as points are inserted, instead of rebuilding them later. Store the create requests in version control so the same schema is applied in staging and production. The step is complete when a describe or info call returns the expected collection configuration and every planned payload index is listed with its declared type.
Load a labeled sample and check field types
Upload a small, representative set of points that includes edge cases such as missing fields, null values, empty strings and values at the range boundaries. Query the stored payloads and confirm each indexed field holds the type declared in the index, since a value that fails the declared type will not match the filter the way the application expects. Record any mismatch, correct the ingestion mapping, and re-upload the sample. The step is done when the sample contains zero unexpected types across all indexed fields.
Load the full dataset into the indexed collection
Ingest the full dataset using the same schema and the batch size and parallelism your upload plan defines. Monitor the collection status until indexing completes, and keep the indexing threshold in mind if you use deferred indexing during bulk loads, so the indexes are not left in a half-built state when traffic starts. Track counts per collection against the source system to confirm nothing was dropped. The step is complete when point counts match the source and the collection reports that optimization has finished.
Confirm filtered results against an exact baseline
Build a labeled query set from the application's filter patterns, including restrictive filters that match a small share of points. Run each query with an exact search that applies the filter without approximate search, then run the same query against the indexed collection and compare the returned IDs. Restrictive filters are the cases where ACORN and HNSW settings matter most, so include them deliberately. The step is done when the overlap between approximate and exact results meets the recall target your team sets, and any query below target has been traced to a missing index, a type mismatch or an HNSW setting.
Force a rebuild after adding an index later
When a new filter field appears after data is loaded, create the payload index on the existing collection and then confirm the optimizer has rebuilt the affected segments before routing filtered traffic to it. Repeat the labeled baseline check for the queries that use the new field. Record the change in the schema file in version control so the next environment receives it. The step is complete when the new index appears in the collection configuration, the rebuild has finished and the baseline comparison passes for the new filter patterns.
What payload indexes cost in memory and disk
Payload indexes add memory and disk on top of vectors and HNSW graphs, and the cost depends on how many fields you index, what each field holds, and how many copies of the data you keep. The cards below list the drivers to check before you choose which fields to index. Exact memory figures must come from the Qdrant sizing guide or your own test on representative data, not from this page.
Number of indexed fields
Each payload index is a separate structure built alongside the vectors, so every additional indexed field adds its own memory and disk footprint. Index only the fields your filters use in queries. A field you filter on once a month in a reporting job rarely justifies the same footprint as the tenant or status field on every request. Review the list of indexed fields against real query logs before each capacity review.
Cardinality of each field
The number of distinct values in a field changes how large its index becomes and how selective filters are. A keyword field with a few hundred tenant identifiers behaves very differently from a field that holds a unique value per record. Measure distinct value counts on your own data before choosing an index type, because a high-cardinality field can grow the index to a size that dominates the collection.
Index type and payload size
The index type (keyword, integer, float, bool, geo, datetime, text or uuid) determines how values are stored and searched, so the same field can cost more under one type than another. Text indexes over long strings cost more than keyword indexes over short labels. Check the average payload size per point, since large payloads also raise the memory and disk you must provision for stored data.
Keeping indexes in RAM
For hot collections that serve filtered queries at steady latency, the indexes and the data they point to need to stay in memory. If the working set outgrows the RAM on a node, filtered searches slow down as data is read from disk. Ask your engineers to test filtered latency with the indexes resident in memory and again under memory pressure, then size nodes for the case you cannot tolerate.
Replication multiplies storage
In distributed mode, the replication factor keeps extra copies of each shard, and each copy holds its own payload indexes. A replication factor of 2 doubles storage, and the indexes come with the data they cover. Include replicas in every disk estimate, and confirm with the sizing guide whether your plan counts index overhead per replica or per shard.
Distributed deployment docsQuestions teams ask before planning payload indexes
What does a payload index planning engagement cost, and what drives the effort?
The cost follows from the written scope, and DeployOpen does not publish a price list. The effort is driven mainly by the number of payload fields that filters touch, the data volume already in or planned for the collection, the number of distinct query shapes, and how much testing is needed to confirm filtered results and latency. Ask for a quote that separates the query inventory, the index design, the test plan, the rebuild and verification work, and any follow-up tuning. Ask whether the quote includes a rerun of tests after the data grows. Index memory is a recurring cost on your hardware, so ask the provider to show how the index plan changes RAM use.
How long does a late payload index rebuild take?
The duration depends on how many points the collection holds, how large the vectors and existing payloads are, how much compute and disk I/O the target nodes have, and whether the rebuild runs while the collection serves traffic. Qdrant payload indexes are built on the data that already exists, so a field added late means work on every stored point in that collection. Plan the rebuild in a staging copy first, measure it there, and ask your provider or your own team to confirm the expected duration against your own data size before scheduling a production change. Do not commit a window until a test run on comparable data has finished.
Can our internal team plan and build payload indexes without a partner?
Yes, a team with Qdrant experience can do it, and the official documentation covers index types and the rebuild steps. The work gets harder when the team must inventory every query, map fields to index types, measure memory cost on production-sized data, and build repeatable tests for filtered results. A partner adds the most value when the team lacks time or experience with vector search, or when the index design must be documented for a compliance or security review. Decide based on who will own the index plan after handover and who will answer when a filter becomes slow.
What do we need to provide before planning starts?
The planning work depends on access to real usage, so expect to provide a query inventory with the filters applications send, the fields those filters use and their value types, and the expected growth of the collection. You will also need labeled test queries with the expected results so filtered search can be checked for correctness, and access to a non-production environment with a copy of representative data and the same Qdrant version as production. Confirm with your engineers who can approve schema changes and which access controls apply to the cluster, including any API keys or JWT permissions the test environment needs.
How does ACORN change planning for restrictive filters?
ACORN is a search algorithm added in Qdrant v1.16.0. When a filter is restrictive and many direct neighbors in the HNSW graph are filtered out, ACORN explores second-hop neighbors so the search can still find matching points. This reduces the need to index every restrictive field only to keep filtered results fast, but it does not replace a sound index plan. Test the restrictive filters your applications really use, compare latency and recall with and without the index in place, and record which queries depend on ACORN. Confirm the behavior on your exact Qdrant version before you rely on it in a production design.
What goes wrong if we add payload indexes after ingestion?
Filterable HNSW needs the payload index in place before the data is loaded, so adding an index later means the collection must be rebuilt or reindexed before filtered search behaves as planned. Teams often find slow filtered queries in production and add indexes under pressure, which lengthens the rebuild and risks latency during the change. Plan the index set before ingestion, run a staging rebuild to measure the impact, and document the exact field names and types so later changes follow the same process.
What compliance evidence should the index plan include?
An index plan is an operational design rather than a certification, and DeployOpen prepares the systems, controls and evidence for compliance assessments while independent auditors issue any formal report. Useful evidence includes the approved list of indexed fields, the reason each field is filterable, the test results showing filtered queries return correct results, the change record for each index addition, and the access controls that limit who can change the schema. Ask your compliance team which of these records they need before the design is finalized.
How DeployOpen scopes and delivers Qdrant payload index planning
DeployOpen plans payload indexes for filtered search as part of the Qdrant deployment, before any data is loaded. We map your filter fields to index types, test the filtered queries your application actually sends, and document the memory cost and rebuild steps so your team can run the collection after handover.
How we scope
- We list every payload field your queries filter on, with the expected query patterns for each.
- We agree on index types per field and note which fields need a fallback to full-scan filtering.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
How we build
- We create the collection and payload indexes before ingestion so filterable HNSW is built during loading.
- We test restrictive filters with and without ACORN enabled and record latency and result quality.
- We measure index memory cost on your sizing assumptions and confirm the rebuild steps after adding an index.
How we hand over
- You receive the index map, the collection creation scripts and the filter test results in writing.
- We document how to add an index later, including the forced rebuild, and which queries it affects.
- Your team walks through the runbook with us so the index plan can be maintained after handover.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- We can retest filtered search when your application adds new filter fields or query patterns.
- Retainer scope, response expectations and fees are confirmed in a written quote based on your environment.

