Download a data index export as NDJSON

Streams the matching documents as application/x-ndjson, one JSON object per line with no wrapping array. The X-Export-Limit, X-Total-Available and X-Export-Truncated headers are sent before the first byte of the body. The page_size and cursor parameters are not supported on this endpoint.

Path Params
string
required

The name of the data index to export.

Query Params
integer

The maximum number of documents to stream. The value is capped by the per-index export limit, and the full limit is used when omitted.

string

A comma-separated list of the fields (columns) to return. All fields are returned when omitted. For CSV exports this also sets the header row.

string

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

string

A JSON-encoded OpenSearch query DSL object used to filter the exported documents.

boolean
Defaults to false

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

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

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