How Qdrant geo and datetime filtering narrows vector search
Use geo and datetime filters when a team needs vector search results limited to a place or a time window, such as nearby stores or documents from the last quarter. Qdrant applies these conditions alongside the similarity search, so the returned points are both semantically close to the query and inside the location or date range. The filter only works efficiently when the matching payload fields are indexed, so the indexing decision is part of the design, not an afterthought.
Qdrant's geo payload indexes serve Geo Bounding Box and Geo Radius conditions, which cover rectangular areas and distance from a point. Datetime indexes, added in v1.8.0, serve range conditions on timestamps, so a query can ask for records between two dates. Each index is built on a payload field that you name when you create it, and the stored values must be in the shape the index expects. Before you build the schema, confirm the exact payload format for coordinates and timestamps in the Qdrant indexing documentation, and test the field types with a small sample collection.
Teams need these filters when the business question includes a hard boundary, such as a delivery radius, a jurisdiction or a retention window. They usually do not need them when the location or date is only a ranking signal, where a score formula or recency boost fits better, or when a few hundred points can be filtered in the application. Each payload index adds memory and write cost, so list every field that queries will filter on, drop the ones that only appear in reports, and measure the memory impact on a realistic dataset before you approve the schema.
How a filtered query uses payload indexes
The request starts at the client, which sends a vector query with a geo or datetime filter through the API key check to Qdrant. The payload index for that field narrows the points that match the condition, and only that candidate set goes to the HNSW vector search. Results return to the client with payload fields read from separate payload storage, so check that the index exists on the filtered field before you measure latency.
Filtered query path through the payload index, HNSW search and payload storage.
Geo and datetime condition types and when each fits
This table compares Geo Bounding Box, Geo Radius and datetime range conditions by the payload shape each expects, the payload index each needs, and the use cases they fit. Read each row as a decision: match the shape of your data and your query to the condition, then confirm the index before you rely on it in production.
| Condition | Payload field shape | Required payload index | Typical use and trade-off |
|---|---|---|---|
| Geo Bounding Box | Geo point stored as latitude and longitude in the payload field | Geo payload index on the same field | Rectangular area such as a map viewport or city boundary box. Simple to express, but corners of the box do not follow a true circle. |
| Geo Radius | Geo point stored as latitude and longitude in the payload field | Geo payload index on the same field | Points within a set distance of a center, such as stores near a shopper. Matches a circular area, but the query needs a center and radius from your application. |
| Datetime range | Timestamp stored as an RFC 3339 style string in the payload field | Datetime payload index on the same field | Recency windows, event periods and time-bounded retrieval. Supports range comparisons, but values must be written in one consistent format. |
| Index size driver (geo) | Number of points that carry a geo value | Geo index built per field | Index grows with the count of indexed points and the fields you index. Index only fields your queries filter on. |
| Index size driver (datetime) | Number of points that carry a timestamp value | Datetime index built per field | Index grows with the count of indexed points. Ask your team to confirm the current memory footprint on your data before sizing hardware. |
| Combined geo and time queries | Both a geo point and a timestamp in the same payload | One index per filtered field | Each condition adds its own index. Filters can be combined, so test the query path with realistic data before rollout. |
| Missing or mixed payload values | Points without the field or with malformed values | Index applies only to values it can read | Points with bad coordinates or dates may be skipped by the filter. Validate payloads at ingestion. |
What each payload index costs in memory and disk
Geo and datetime payload indexes are not free. Their footprint depends on how many points carry the field, how many distinct values the field holds, and where Qdrant keeps the index. The cards below cover what drives that cost, how it grows over time, and what to measure and ask for before you commit to a design.
Indexed field and point count
Each geo or datetime index is built over one payload field, so the cost scales with how many points have that field set. A location or created_at field present on every point costs far more than one present on a small subset. Count the points that will carry each field in your production data model, not only the fields your queries use today. Points without the field add no index entries, so sparse payloads are cheaper to index.
Cardinality of indexed values
Distinct values matter as much as row count. A datetime field with millisecond timestamps produces many unique entries, while a coarse field such as a day bucket produces fewer. Geo values are unique per point in most datasets, so coordinate-based indexes grow with the dataset. Profile the number of distinct values per field in a sample before sizing, and ask the vendor how its index structure scales with unique values.
RAM or on-disk index placement
Index memory placement changes both cost and latency. Keeping payload indexes in RAM speeds filtered search but consumes memory that competes with vectors and HNSW graphs. Confirm in the current configuration reference which payload index settings allow on-disk storage for geo and datetime fields, and what latency change to expect. Test both placements against your filtered query mix before choosing.
How cost grows with data
Index cost recurs as the collection grows. Every inserted point with a geo or datetime value adds index entries, and updates that change those values rewrite them. Growth also raises the memory needed to hold the index in RAM, so a deployment sized for today's point count may need more nodes later. Model growth at your expected ingestion rate, and include payload update patterns such as re-timestamping records.
Measuring a test collection
Build a test collection with production-like payloads and point counts, then record resident memory and disk usage before and after creating each payload index. Repeat the measurement at two or more data sizes to see the slope, not just a single point. Run representative geo radius, bounding box and datetime range queries and record latency alongside memory, so the trade-off is visible in one table.
Questions to ask the vendor
Ask Qdrant or your partner for the documented memory model of geo and datetime payload indexes, the on-disk options available in your version, and any guidance on index size per point. Ask how index memory is reported in metrics so you can track it in production. Confirm these answers against the version you plan to run, because index behavior changes between releases.
Setting up geo and datetime indexes in Qdrant
This sequence takes a collection from confirming version support through payload schema, index creation, and test queries to a production rollout, with a check at each stage so the filters return what the data says they should. It is written for the team that will build and own the index layer.
Confirm version and index support
Check the Qdrant version running in your test environment against the release notes and the indexing documentation before writing any index definitions. Geo payload indexes serve Geo Bounding Box and Geo Radius conditions, and datetime indexes, introduced in v1.8.0, serve range conditions, so any cluster older than that needs an upgrade plan first. Confirm the version with the API root endpoint and record it in the change ticket. Done when the version string and the index types you need are written down together.
Define the payload schema for coordinates and timestamps
Decide the exact payload field names, types and formats for location and time before ingestion starts. For geo, choose one consistent representation for latitude and longitude, and confirm the coordinate order your client library and the docs expect. For time, agree on one timestamp format and timezone, normally UTC, and state whether values are stored as strings or numbers. Have the data owner sign off on the schema. Done when a sample document with each field is reviewed and every producer writes the same shape.
Create geo and datetime payload indexes
Create a geo payload index on the location field and a datetime payload index on the timestamp field using the collection's index endpoint, then set them as payload schema on the collection. Run this in the test environment first and use the same definitions you will use in production. Each index adds memory and disk overhead, so only index fields that filters will use. Done when the collection info response lists both indexes with the expected field names and types.
Load a test dataset with known answers
Load a small, representative dataset that includes points inside and outside a chosen bounding box or radius, timestamps at the edges of a chosen range, and a few malformed or missing values. Record the expected matching IDs for each test filter in a file before running any query. Loading in batches keeps the process observable. Done when the point count matches the source and the stored payloads for the edge cases read back as written.
Run filtered queries and compare results
Run geo bounding box, geo radius, datetime range, and combined vector-plus-filter queries against the test collection. Compare the returned point IDs with the expected list from the previous step, checking boundary behavior such as points exactly on an edge and timestamps on the start or end of a range. Investigate any mismatch by checking the payload type and coordinate order before changing the query. Done when every test case returns exactly the expected IDs.
Measure filtered query latency
Time the same filtered queries under a realistic request pattern in a environment sized like production, and compare them with the same queries run without the indexed filters. Note memory use on the nodes before and after index creation, since payload indexes consume RAM and disk. Ask the platform owner to review the numbers against the memory budget. Done when you have latency and memory figures for each filter type and the owner has accepted them.
Roll out the indexes to production
Apply the same index definitions to the production collection during a planned window, and confirm they are created through the collection info endpoint before any application traffic uses the filters. Take a snapshot before the change so the collection can be restored if the rollout fails. Repeat the known-answer queries against production with the agreed test points. Done when production returns the expected IDs for every test case and the snapshot is recorded.
Document the schema and monitor the indexes
Store the payload schema, index definitions, expected test queries and latency baseline in version control next to the application code so future producers follow the same contract. Add an alert or regular review of node memory so index growth is noticed as data grows. Assign an owner for changes to the schema. Done when the documentation is merged, the owner is named, and the memory check is part of routine operations.
Why filter design affects recall and speed
Filters in Qdrant do not run as a separate step after vector search. Conditions on payload fields narrow the set of points the engine can consider, so the way a filter is written and indexed decides how much work each query does. The payload index is what makes a filter cheap. Without an index on the field, a condition has to check payload values point by point, and a broad condition such as a wide bounding box or a long date range can match a large share of the collection and still force that work. Confirm in the Qdrant indexing documentation which condition types each index type serves before you assume a filter is covered.
Data consistency is the most common cause of filters that silently return fewer results than expected. Geo points must be stored with the coordinate order the index and client expect, and a swapped latitude and longitude will place every record in the wrong region without raising an error. Datetime values need one format and one time zone across all ingestion pipelines, because a mix of local times and UTC stamps shifts range boundaries and drops records near the edges. Write a sample check that inserts known coordinates and timestamps, runs a bounding box and a date range, and compares the returned IDs with the expected set before you load production data.
Layout also changes the cost of the same filter. In a multi-tenant design, a tenant identifier used in every query should be indexed, and conditions that combine tenant, location and time should be tested together, since each added condition changes how selective the query is. In a sharded cluster, each shard applies the filter to its own points, so the index must exist on every shard and the cost of a broad filter multiplies with shard count. Record the query shapes your application sends, test each against a realistic copy of the data, and confirm the behavior of your chosen shard and tenant layout with the distributed deployment and indexing documentation.
Security and data handling for location and time data
Location and timestamp payloads often identify people or reveal where and when they act, so they need the same controls as the vectors they sit beside. The cards below cover the Qdrant settings that restrict access, the network and transport choices that protect data in transit, and the data minimization decisions to make before indexing location fields.
Per-collection access with API keys and JWT
Self-hosted Qdrant ships with no authentication, so every collection holding geo or datetime payloads needs an explicit access model. Admin and read-only API keys cover simple setups, while JWT tokens can limit a client to read or write permissions on specific collections. Check that the service applications querying location data receive only the collections and permissions they need, and test that a read-only key cannot change payloads.
- JWT per-collection permissions
- v1.9.0
Network exposure of self-hosted instances
By default, self-deployed Qdrant listens on all network interfaces. Bind the REST and gRPC ports to the internal interfaces your applications use, restrict them with firewall rules or network policies, and keep the instance off public routes. Confirm which ports your load balancer, sidecars and cluster peers need before opening anything beyond them.
Qdrant security docsTLS for REST and gRPC traffic
Location coordinates and event times travel with every search request and result payload, so encrypt both REST and gRPC connections. Qdrant supports TLS on both protocols, and the same setting should apply to traffic between cluster nodes where your topology allows it. Plan certificate issuance and rotation with the team that runs your other internal services.
- TLS support added
- v1.2.0
Audit logging of authenticated operations
Filters on location and time fields show who searched for what region or period, which can be sensitive in its own right. Qdrant logs authenticated API operations as JSON, so enable that logging, ship it to your central log store, and confirm that retention meets your policy. Review whether the logs record the search conditions you need for investigations without storing more personal detail than required.
- JSON audit logging
- v1.17.0
Data minimization for location fields
Store only the coordinates, timestamps and identifiers that a filter needs, and drop precise values where a coarser area or date range answers the business question. A geo index on a field that holds exact home addresses carries more risk than one on a city or postal area. Decide the precision and retention of each field before indexing, because removing values later means reindexing and checking snapshots.
Privacy obligations for location data
Location data can count as personal data under privacy laws in many jurisdictions, and timestamps tied to a person can add to that exposure. Whether your collections fall under those rules, and what they require for purpose, access and deletion, depends on your data and location. Confirm these obligations with your privacy and legal teams before you load production data into Qdrant.
Questions teams ask before adding geo or datetime filters
What drives the cost of setting up geo and datetime filters in Qdrant?
The main driver is how many collections and payload fields need filtering, and how clean the source data is. Each geo or datetime condition needs a matching payload index, and someone must decide the field names, the timestamp format and the coordinate convention before indexing. Cost splits into design work (data model, query patterns, index plan), build work (payload backfill, index creation, query tests) and recurring work (checking index memory as data grows). Ask any partner for a written scope that lists the collections, fields and query types covered, and whether the quote includes testing against your real filter combinations.
How long does a geo or datetime filter setup take?
Duration depends mostly on the state of your data and your environment, not on the filter syntax itself. Teams with consistent coordinates and ISO-style timestamps in each point's payload move quickly, while teams that must normalize time zones, reconcile coordinate order or backfill missing fields spend most of their time on data work. Access to a non-production cluster also shapes the schedule. Ask for a timeline tied to named milestones such as data profiling, index creation on a copy of the collection, and query validation, rather than a single overall estimate.
What does our team need to provide before the work starts?
Plan to provide a representative sample of payloads that includes the location and time fields, the filter queries your applications send today, and the field naming rules your data team follows. You also need access to a non-production Qdrant instance that matches your production storage setup, since Qdrant requires block-level storage with a POSIX-compatible file system and cannot run on network file systems or object storage. Confirm who approves schema changes and who can grant access to the deployment environment, because both affect the schedule.
Can an internal team set up geo and datetime filtering without outside help?
Yes, if the team already runs Qdrant and understands its payload model. The index types are documented in the Qdrant indexing documentation, and the work is mostly data modeling and testing. Outside help tends to pay off when the team lacks experience with collection design, when filters must combine with hybrid or multitenant queries, or when the results must be defensible to an internal audit or security review. Compare the internal effort, including testing time, against the scope you would ask a partner to cover.
How does index memory affect the hardware plan for geo and datetime filters?
Each payload index adds memory and storage on top of the vectors themselves, so every geo or datetime field you index should appear in the sizing calculation. Geo payload indexes serve Geo Bounding Box and Geo Radius conditions, and datetime indexes, available since v1.8.0, serve range conditions. Index more fields only when queries filter on them, and measure the footprint on a copy of your data before you commit to node sizing. Qdrant's distributed mode also multiplies stored data through the replication factor, so a replication factor of 2 doubles storage, and that includes indexed payload data.
Do geo and datetime filters change how we secure and audit searches?
Filters themselves do not replace access control. A self-deployed Qdrant instance ships without authentication, so filtering by location or time gives no protection if the API is exposed. Confirm that API keys, TLS and per-collection permissions are in place, and that audit logging captures the queries that use location or time conditions. If search results reveal where people are or when they acted, treat those payload fields as sensitive data and document who can query them.
What should we ask a partner for in a written quote?
Ask for a fixed scope listing the collections, payload fields and query patterns covered, the environments where work happens, and the deliverables, such as index definitions, a query test set and a short operations note. Ask how the partner measures index memory before and after creation, how they handle a rollback if an index build fails, and what your team must approve at each milestone. Clarify which items are one-time work and which are recurring, such as reviewing index memory as data grows. DeployOpen does not publish a price list, so a quote follows from the written scope.
When to use a separate search or database instead
Keep geo and datetime filtering inside Qdrant only when the question is "find the nearest or most recent points that also match a similarity query." When the question is a spatial analysis (polygons, routes, containment tests, or distances along a road network), or when the work is a time-series aggregation such as hourly rollups, percentiles or joins across event tables, a separate system is usually the better home for that logic. Qdrant's geo conditions cover a bounding box and a radius, and its datetime range condition covers a window on a single timestamp field. Anything beyond those shapes is outside what the payload index is designed to answer, so the first decision point is whether the filter can be written as one of those conditions without workarounds.
Second, check the volume and shape of the analytical workload. If your team runs dashboards or reports that group millions of events by time bucket, Qdrant is a vector engine and not the place to run those aggregations at scale. A columnar analytics database or a search engine with aggregation support is generally built for that pattern. Third, decide who owns the data. If the same records must serve transactional lookups, geofenced compliance queries and vector search, a common practice is to keep the source of truth in your existing database and sync only the vector and the filterable fields into Qdrant. Ask your team to confirm how often that sync must run, how stale results may be, and what happens to deleted or corrected records. Validate every product claim about spatial or time-series capabilities against the current documentation of the candidate system and against your own test data before you commit.
How DeployOpen scopes and delivers Qdrant filtering
DeployOpen plans geo and datetime filtering as part of the wider Qdrant deployment, starting from the queries your application runs and the payload fields they filter on. The work is delivered in your own infrastructure, with the index design, memory checks and access controls written down so your team can review and run them.
How we scope
- Map each location and time query to a geo or datetime condition and its payload field
- Confirm which collections, fields and filter combinations need payload indexes before build
- Agree the written, fixed scope, deliverables and timeline before any work starts
- Include a memory estimate for each planned payload index in the scope document
- Note which ongoing support or retainer covers index changes after launch
How we build
- Define the payload schema for coordinates and timestamps, with consistent types across writes
- Create geo and datetime payload indexes and check that filtered queries use them
- Test Geo Bounding Box, Geo Radius and datetime range conditions with representative data
- Combine location and time filters with vector queries and verify result correctness
- Measure index memory and query behavior on the target infrastructure before sign-off
How we hand over
- Document the payload schema, index definitions and the query patterns each one serves
- Provide the index memory figures and the sizing assumptions behind them
- Deliver runbooks for adding fields, reindexing and checking index status in production
- Walk your engineering and security teams through the design and access controls
- Leave a retest checklist for future filter changes
How we support
- Review new filter requirements and index changes before they reach production
- Retest geo and datetime queries after Qdrant version upgrades in your environment
- Monitor index memory growth and flag when a sizing review is needed
- Offer ongoing support, upgrades and continuous testing as a retainer
- Keep all changes documented so auditors and internal reviewers can follow them

