For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
CloudGitHub
  • API Reference
      • POSTSearch points
      • POSTSearch batch points
      • POSTSearch point groups
      • POSTRecommend points
      • POSTRecommend batch points
      • POSTRecommend point groups
      • POSTDiscover points
      • POSTDiscover batch points
      • POSTQuery points
      • POSTQuery points in batch
      • POSTQuery point groups
      • POSTDistance matrix pairs
      • POSTDistance matrix offsets
LogoLogo
CloudGitHub
API ReferenceSearch

Search batch points

POST
/collections/:collection_name/points/search/batch
POST
/collections/:collection_name/points/search/batch
$curl -X POST \
> 'http://localhost:6333/collections/collection_name/points/search/batch' \
> --header 'api-key: <api-key-value>' \
> --header 'Content-Type: application/json' \
> --data-raw '{
> "searches": [
> {
> "vector": [
> 0.2,
> 0.1,
> 0.9,
> 0.7
> ],
> "limit": 3
> },
> {
> "vector": [
> 0.5,
> 0.3,
> 0.2,
> 0.3
> ],
> "filter": {
> "must": [
> {
> "key": "city",
> "match": {
> "value": "London"
> }
> }
> ]
> },
> "limit": 3
> }
> ]
>}'
200Successful
1{
2 "usage": {
3 "cpu": 1,
4 "io_read": 1,
5 "io_write": 1
6 },
7 "time": 0.002,
8 "status": "ok",
9 "result": [
10 [
11 {
12 "id": 42,
13 "version": 3,
14 "score": 0.75,
15 "payload": {},
16 "vector": {},
17 "shard_key": "region_1",
18 "order_value": 42
19 }
20 ]
21 ]
22}
Retrieves the closest points in batches based on vector similarity and given filtering conditions.
Was this page helpful?
Previous

Search point groups

Next
Built with

Authentication

api-keystring
API Key authentication via header

Path parameters

collection_namestringRequired
Name of the collection to search in

Query parameters

consistencyinteger or enumOptional
Define read consistency guarantees for the operation
timeoutintegerOptional>=1
If set, overrides global timeout for this request. Unit is seconds.

Request

Search batch request
searcheslist of objectsRequired

Response

successful operation
usageobject or any
timedouble
Time spent to process this request
statusstring
resultlist of lists of objects