Skip to main content
POST

Authorizations

x-api-key
string
header
required

Project API Key.

Path Parameters

collectionName
string
required

Collection name.

Body

application/json
size
integer | null
default:10

Number of documents to return, from 0 to 100. Defaults to 10 when omitted or null. Zero requires at least one facet; facet counts cover all matching documents regardless of this size.

Required range: 0 <= x <= 100
query
object | null

Query object. For managed embedding vector fields, use knn.queryText. For unmanaged vector fields, use knn.queryVector. Omit or use null to match all documents. Facets support queryString and bool queries only; vector, sparse vector, and hybrid queries cannot be combined with facets.

consistentRead
boolean
default:false

Overlay eligible pending writes on a directly selected branch's committed data. Defaults to false. Tag and alias reads reject true. Pending bulk imports are excluded. Returns 429 if the pending payload exceeds the consistent-read limit.

includeVectors
boolean
default:false

If your application need to include vector values in the response, set includeVectors to true.

sort
object[]

List of field name, sort direction pairs.

fields
object

An object to specify a list of field names to include and/or exclude in the result.

partitionFilter
PartitionFilter · object
ref
RefContext · object

Read ref selector. A ref that does not exist returns 404 ResourceNotFound; an alias whose target is dangling returns 400 BadRequest.

facets
object | null

Exact document counts by indexed keyword value. Keys are keyword field names, including dotted paths. Applies all query and partition filters and the selected ref. Requires a collection created with facet support. Existing collections retain their previous read/write behavior and return 400 for facet requests; reindex into a new collection to use facets. At most 10,000 distinct (field, value) buckets and 262,144 UTF-8 value bytes across requested fields; exceeding either bound returns 400 instead of partial counts. Separate memory admission limits return 400 when one request exceeds its estimated budget, or 429 when concurrent requests temporarily exhaust a budget. Request fewer fields or partitions for memory-limit errors; retry temporary 429 errors with backoff.

Response

Documents selected by query.

took
integer
required

Elapsed time in milliseconds.

total
integer
required

Total number of documents returned.

docs
object[]
required

List of documents.

isDocsInline
boolean
required

Whether docs are included inline. When false, docs is empty and the result items must be downloaded from docsUrl.

maxScore
number

Highest score among returned documents. Omitted when no returned document has a computed score.

docsUrl
string

Presigned download URL when isDocsInline is false. GET the complete URL without forwarding the LambdaDB API key. Returns a JSON array of result items, not an object with a docs field.

facets
object

Present when facets were requested, including empty buckets for fields without matching values. Remains inline when documents are served through docsUrl. total remains the number of returned documents, not the facet population.