Skip to main content

Command Results

RequestReturn format
_search, _mgetDocument result sets; see Reading Results.
_countCount result set.
_msearchOne result set per search.
Document writesUpdate count and optional generated keys.
Generic RESTTop-level fields for a JSON object, or rows for array elements.
HEADSTATUS column.

Do not choose a return type solely from GET/POST. If uncertain, use execute() and inspect the result set or update count.

Search results do not retain _scroll_id, sort, highlight, fields, _score or top-level aggregations. Use the official client when these are required.