Export a data index page by page

Returns a page of documents from a data index using cursor-based pagination. Send the next_cursor value from the previous response as the only body property to retrieve the next page. When cursor is set, all other body properties are ignored.

Path Params
string
required

The name of the data index to export.

Body Params
query
object

An OpenSearch query DSL object used to filter the exported documents. Defaults to matching every document.

fields
array of strings

The fields (columns) to return. All fields are returned when omitted.

fields
sort
array of strings

The sort order, as field:direction entries. A _doc:asc tiebreaker is always appended so that paging is stable.

sort
boolean
Defaults to false

Sets whether the _score field is kept on each returned document.

integer
Defaults to 1000

The number of documents returned per page. The value is capped by the per-index limit, which is between 100 and 1000 depending on the index.

string

The next_cursor value from the previous response. When this property is set, all other properties are ignored.

Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json