Search Files in Bucket
POST
/mongodb/buckets/{bucketName}/files/search
The files of the bucket with a Lucene filter (2.6.0), like the search of documents: filter, sort and projection in the request body (no URL limit), fields of the files collection (filename, length, uploadDate, metadata.*). The operators of FILTER_OPERATORS_DENIED are refused; PAGING_MAX_ROWS applies.
Authorizations
httpAuth
Type
HTTP (bearer)
or
httpAuth1
Type
HTTP (basic)
or
apiKeyAuth
Type
API Key (header: X-AUTH-APIKEY)
Parameters
Path Parameters
bucketName*
The name of your MongoDb Collection
Type
Requiredstring
Query Parameters
rowsPerPage
Count elements per page
Type
integer
Example
100Format
"int64"page
Requested page of the ResultSets
Type
integer
Example
1Format
"int64"count
How the result is counted: exact (default) or none (no count headers, no count query)
Type
string
Valid values
"exact""none"Example
"exact"Default
"exact"after
Cursor paging: the x-pagination-next value of the previous page, empty for the first page. The sort always ends with _id; cannot be combined with page
Type
string
Example
""filterCaseInsensitive
true: wildcards and prefixes of the Lucene filter ignore the case.
Type
boolean
Default
falseRequest Body
application/json
JSON "filter": "string", "sort": [ "string" ], "projection": [ "string" ], "expand": [ "string" ]
{
}
Responses
application/json
JSON { "_id": "string", "filename": "string", "length": 0, "chunkSize": 0, "uploadDate": "2024-01-01T00:00:00Z", "metadata": { "additionalProperties": null } }
[
]
