Search

Query points in batch

POST
Universally query points in batch. This endpoint covers all capabilities of search, recommend, discover, filters. But also enables hybrid and multi-stage queries.

Path parameters

collection_namestringRequired
Name of the collection to query

Query parameters

consistencyunionOptional
Define read consistency guarantees for the operation
timeoutintegerOptional
If set, overrides global timeout for this request. Unit is seconds.

Request

This endpoint expects an object.
searches
list of objectsRequired

Response

This endpoint returns an object
time
doubleOptional
Time spent to process this request
status
stringOptional
result
list of objectsOptional
POST
1curl -X POST http://localhost:6333/collections/collection_name/points/query/batch \
2 -H "api-key: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "searches": [
6 {}
7 ]
8}'
200Successful
1{
2 "time": 1.1,
3 "status": "status",
4 "result": [
5 {
6 "points": [
7 {
8 "id": 1,
9 "version": 1,
10 "score": 1.1
11 }
12 ]
13 }
14 ]
15}