API Endpoint
Basic Vector Search
Find points most similar to your query vector.Search Parameters
Query vector to search for. Must match the collection’s vector dimensions.
Maximum number of results to return.
Skip first N results. Useful for pagination.
Minimum score threshold. Only return results with score above this value.
Include payload in the results. Can be
true, false, or an array of specific fields.Include vectors in the results. Can be
true, false, or an array of specific vector names.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
- Include vectors
- Exclude vectors
- Specific named 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.Size of the dynamic candidate list for HNSW index. Higher values improve accuracy but reduce speed.
If
true, perform exact search (brute force) instead of approximate search.If
true, only search indexed vectors, skip unindexed segments.Batch Search
Perform multiple searches in a single request for better efficiency.Response Format
Response Example
Query Parameters
Read consistency level:
majority- Wait for majority of replicasquorum- Wait for quorum of replicasall- Wait for all replicas
Operation timeout in seconds.
Best Practices
- Limit Size: Keep limit values reasonable (10-100) for best performance
- Score Threshold: Use score thresholds to filter out low-quality results
- Payload Selection: Only request needed payload fields to reduce response size
- Batch Requests: Use batch search when performing multiple searches
- HNSW EF: Increase
hnsw_effor better accuracy at the cost of speed