Search

Search batch points

POST
Retrieves the closest points in batches based on vector similarity and given filtering conditions.

Path parameters

collection_namestringRequired
Name of the collection to search in

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
Search request. Holds all conditions and parameters for the search of most similar points by vector similarity given the filtering restrictions.

Response

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