Search

Discover batch points

POST
Retrieves points in batches based on the target and/or positive and negative example pairs.

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
Use context and a target to find the most similar points, constrained by the context.

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/discover/batch \
2 -H "api-key: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "searches": [
6 {
7 "limit": 1
8 }
9 ]
10}'
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}