Query - v2 (Legacy)

Execute the v2 File Search endpoint against a collection. Returns retrieved chunks in search_results with content fields.

Path parameters

collection_namestringRequired

Request

This endpoint expects an object.
querystringRequired

Natural-language search query.

top_kinteger or nullOptionalDefaults to 10
Maximum number of search results to return.
metadata_filtermap from strings to any or nullOptional

Filter expression for indexed document metadata. Supports $eq, $ne, $gt, $gte, $lt, $lte, $in, $nin, $and, and $or.

rerankboolean or nullOptionalDefaults to false

Enable reranking for text-only collections. Multimodal collections always rerank and return a warning if rerank=false is ignored.

include_bboxboolean or nullOptionalDefaults to false
Legacy v2 layout option retained for clients that already depend on bounding boxes.

Response

Successful Response
successboolean
querystring
search_resultslist of objects
total_resultsinteger
top_kinteger
warningslist of strings or null
tokens_usedmap from strings to integers or null
execution_time_msinteger or null
request_idstring or null
token_balanceobject or null