Questions
6 of 18
1Why did Qdrant consolidate search, recommend, and discovery operations into the Universal Query API?
2What is a prefetch stage in Qdrant's Universal Query API, and why would you use multiple prefetches?
3How do Reciprocal Rank Fusion and Distribution-Based Score Fusion differ when combining Qdrant prefetch results?
4How would you retrieve 500 candidates with dense vectors and rerank them using a ColBERT multivector?
5What is Qdrant's recommend query mode, and how is it different from plain similarity search?
6How does Qdrant combine vector similarity search with structured payload filters?
7What are must, should, and must_not clauses in a Qdrant payload filter?
8Why can filtering after an ANN search return too few results when the filter is highly selective?
9How does Qdrant's filtered vector search avoid the classic post-filtering problem?
10How would you implement a geo-radius search for similar items within 5 km of a location in Qdrant?
11Why should you create payload indexes for fields that are filtered frequently at scale?
12What payload index types does Qdrant support, and how would you choose one for tags versus price?
13What is a full-text payload index used for, and how does it differ from an exact-match keyword index?
14What is the cost of creating too many payload indexes on a high-write Qdrant collection?
15Why should point uploads be batched instead of sending one upsert request per point?
16What is Qdrant's Scroll API used for, and why is it preferable to vector search when iterating through matching points?
17How does Qdrant Scroll pagination avoid the main performance problem of large SQL OFFSET pagination?
18What is a realistic batch size for bulk-loading millions of Qdrant points, and what factors should influence it?
06 / 18

How does Qdrant combine vector similarity search with structured payload filters?

Filtered vector search

Qdrant accepts a vector query together with a filter composed of conditions over payload fields. The filter can constrain candidates using boolean logic such as must, should, and must_not, so the final results satisfy application-level constraints while being ranked by vector similarity.

For example, a product search can require category=electronics and price less than 100 while still ranking eligible products by semantic similarity. This is much more useful than retrieving arbitrary nearest neighbors and trying to enforce business constraints afterward.

The trade-off is that filtering can change the effective candidate set and influence search cost. Selective filters should be modeled and indexed appropriately, especially at large scale. Qdrant's query planner and filtered-search behavior are version-dependent, so I would benchmark representative filters.

A common mistake is treating payload filtering as an unrelated second API call. Qdrant's retrieval model allows the filter to participate in the vector query, which is important for correctness as well as performance.

javascript
  1. 1

    Filters can constrain vector search using payload fields

  2. 2

    must, should, and must_not express boolean filtering logic

  3. 3

    Filtering is part of the retrieval request rather than an application-only post-processing step

  4. 4

    Payload indexing and filter selectivity affect production performance

Difficulty: 3/10
Topics: Filtering, Payload queries, Vector search

Scenario Questions

0-2 years experience
  1. 1

    A user wants laptops under 1000 from a specific brand, ranked by semantic similarity. How would you express the business constraints?

  2. 2

    Why is filtering the top 10 vector results after the search potentially incorrect?

2-5 years experience
  1. 1

    A category filter reduces the eligible dataset to 0.1% of the collection. What would you check to keep filtered vector search efficient?

  2. 2

    Your application currently searches all products and filters them in Node.js. What correctness and performance problems could this create?

5-8 years experience
  1. 1

    A multi-tenant RAG service must combine semantic relevance with tenant and permission filters. How would you design the filter path so authorization cannot be accidentally skipped?

  2. 2

    A filter is highly selective and query latency becomes unpredictable. How would you diagnose the interaction between filtering and ANN traversal?

8+ years experience
  1. 1

    You are designing a global semantic-search platform with complex authorization, tenant isolation, and high-cardinality filters. How would you decide which constraints belong in Qdrant versus an upstream policy layer?

  2. 2

    A business-critical search must never return an unauthorized point. What defense-in-depth architecture would you use around Qdrant filtering?

Follow-up Questions

  • How do must, should, and must_not differ?
  • Why can payload indexes matter for filtered vector search?