Skip to main content
Search is the core operation in Qdrant. It finds the nearest neighbors to a given query vector based on the configured distance metric.

API Endpoint

Find points most similar to your query vector.

Search Parameters

array
required
Query vector to search for. Must match the collection’s vector dimensions.
integer
default:"10"
Maximum number of results to return.
integer
default:"0"
Skip first N results. Useful for pagination.
number
Minimum score threshold. Only return results with score above this value.
boolean | array
Include payload in the results. Can be true, false, or an array of specific fields.
boolean | array
Include vectors in the results. Can be true, false, or an array of specific vector names.
object
Filter conditions to apply. See the filtering guide for details.

Search with Score Threshold

Only return results that meet a minimum similarity score.
The score threshold interpretation depends on the distance metric:
  • Cosine: 0 to 1 (higher is more similar)
  • Dot: -∞ to +∞ (higher is more similar)
  • Euclid: 0 to +∞ (lower is more similar)

Control Payload and Vector Returns

Return Specific Payload Fields

Include/Exclude Vectors

Search with Named Vectors

For collections with multiple named vectors, specify which vector to search.

Search with Filters

Combine vector similarity with payload filtering.

Advanced Search Parameters

Search Params

Fine-tune the search algorithm for better performance or accuracy.
integer
default:"dynamic"
Size of the dynamic candidate list for HNSW index. Higher values improve accuracy but reduce speed.
boolean
default:"false"
If true, perform exact search (brute force) instead of approximate search.
boolean
default:"false"
If true, only search indexed vectors, skip unindexed segments.
Perform multiple searches in a single request for better efficiency.

Response Format

array
Array of scored points.
integer | string
Point ID.
integer
Point version.
number
Similarity score.
object
Point payload (if requested).
array | object
Point vector(s) (if requested).
Response Example

Query Parameters

string
Read consistency level:
  • majority - Wait for majority of replicas
  • quorum - Wait for quorum of replicas
  • all - Wait for all replicas
integer
Operation timeout in seconds.
Large limit values (>1000) may impact performance. Consider pagination for large result sets.

Best Practices

  1. Limit Size: Keep limit values reasonable (10-100) for best performance
  2. Score Threshold: Use score thresholds to filter out low-quality results
  3. Payload Selection: Only request needed payload fields to reduce response size
  4. Batch Requests: Use batch search when performing multiple searches
  5. HNSW EF: Increase hnsw_ef for better accuracy at the cost of speed