Planning Qdrant payload indexes for filtered search

Qdrant payload indexes decide whether filtered vector search stays fast. This page explains which fields to index, which index type fits each, and how to plan them before data is loaded.

On this page

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 patternIndex typeWhen it fitsConfirm before indexing
Tenant IDs and categorieskeywordExact-match filters on strings such as tenant, department, document class or product lineCardinality of the values and how many filters combine per query
Numeric rangesinteger or floatRange filters on counts, prices, page numbers or numeric scores; use integer for whole numbers and float for decimalsWhether values are whole numbers, since the choice changes the stored type and range behavior
Time windowsdatetimeFilters 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
FlagsboolYes or no fields such as is_archived, is_public or has_consentWhether every point always carries the flag, since missing values behave differently in filters
Location radiusgeoFilters that select points within a distance of a latitude and longitudePayload coordinate format and the distance units your application expects
Full-text matchtextWord or phrase matching inside titles, descriptions or extracted document textTokenizer and language settings, and that text match is not a substitute for a ranked keyword search engine
IdentifiersuuidExact lookups on record or document identifiers stored as UUID valuesThat every identifier is a valid UUID, since malformed values will not match as expected
Mixed or nested payload valuesConfirm per fieldFields that hold arrays, objects or mixed types need a type check before choosing an indexActual 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.

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.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. 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.

  8. 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 docs

Questions 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.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.