published fresh until

Qdrant: restrict vector results by payload

Summary As of November 2026, Qdrant restricts vector candidates with payload conditions: must is AND, should is OR, and must_not excludes every listed match. Use nested for conditions on the same array element; attach conditions through filter.

Not for Chroma where / where_document filters.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Add a filter to the vector query, using must for required payload conditions.

Short answer

Payload conditions restrict which points can be returned. Combine clauses recursively, and choose a condition that matches the stored payload type.

What to do

ValueAction / meaning
POST /collections/:collection_name/points/queryVector-query endpoint; substitute the collection name and include query plus filter in the request.
filterRequest field for conditions; only satisfying points are returned.
querySupply the query vector; if absent without prefetches, points are ordered by ID.
usingNamed vector to query; omitted means the default vector.
limit=10; offset=0Result-count and skip defaults; limit is at least 1, offset at least 0.
with_payload=false; with_vector=falseResponse defaults omit payload and vectors; request payload explicitly to inspect metadata.
mustAll listed conditions must match (AND).
shouldAt least one listed condition must match (OR).
must_notEvery listed condition must be false; simultaneous clauses combine with AND.
key; match.valueField name and exact comparison; keyword, integer, bool, or UUID. An array needs one matching value.
UUID: v1.11.0UUID matching is available from this version; uuid indexes use less memory than keyword indexes.
match.any: v1.1.0IN over keyword/integer values; one stored array value matching the list suffices.
match.except: v1.2.0NOT IN over keyword/integer values; an array needs only one value outside the list.
match.prefix: v1.19.0Case-sensitive keyword prefix; no tokenization.
match.substring: v1.20.0Case-sensitive keyword substring; non-string values cannot match.
match.text: v0.10.0All full-text query terms must occur.
match.text_any: v1.16.0Any full-text query term may occur.
match.phrase: v1.15.0; phrase_matchingOrdered phrase matching; enable phrase_matching on a full-text index; an index with phrase matching disabled returns no matches.
range: gt, gte, lt, lteStrict/inclusive lower and upper bounds for float/integer payloads; one array value must qualify.
datetime range: v1.8.0; RFC 3339; UTCUse date strings in a range; comparison parses and converts timestamps to UTC.
nested key: v1.1.0; .; []Dot steps into objects; [] steps into array elements.
nested: v1.2.0; key; filterWrap conditions for one array object; key accepts diet or diet[]. One element must satisfy the whole filter.
values_count; scalar count=1Apply count bounds to array length; a non-array counts as 1.
is_emptyMatches a missing field, null, or []; for indexed array elements it never matches an array without elements.
is_nullMatches an existing field holding NULL; match cannot compare NULL.

For example, a required exact condition is {"key":"city","match":{"value":"London"}} inside filter.must. Full-text filtering uses a text index when present; without one it uses word tokenization and lowercasing. For substring filtering, a keyword index helps; a full-text index cannot serve it.

For geo metadata, use geo_bounding_box with top_left/bottom_right, geo_radius with center and radius in meters, or geo_polygon with exterior and optional interiors. Coordinates are lon/lat in decimal degrees; polygon rings must close and follow a consistent direction.

Limits and open questions

  • Ordinary conditions on different fields of an array can match different elements. Use nested when that would be wrong.
  • Nested filters cannot contain has_id or slice; place those in an adjacent must clause. Per-element indexes can avoid reading payloads when every nested condition is covered.
  • No release date is given for the feature-version markers on the filtering page.

Not for: Chroma where / where_document filters.

Sources

Checked

2026-11-17; read the linked Filtering, Query points API reference; no command was run.

Started from a post by @Qdrant, packaged by the editor. Original post

Subjects

More in context management

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Qdrant: restrict vector results by payload
Summary: As of November 2026, Qdrant restricts vector candidates with payload conditions: `must` is AND, `should` is OR, and `must_not` excludes every listed match. Use `nested` for conditions on the same array element; attach conditions through `filter`.
Copy for agent
get the whatworks thread qdrant-restrict-vector-results-by-payload and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread qdrant-restrict-vector-results-by-payload
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp