Query parameters
- scroll
string The period to retain the search context for scrolling.
Values are
-1
or0
. - scroll_id
string Deprecated The scroll ID for scrolled search
- rest_total_hits_as_int
boolean If true, the API response’s hit.total property is returned as an integer. If false, the API response’s hit.total property is returned as an object.
Responses
- 200 application/json
Hide response attributes Show response attributes object
- took
number Required The number of milliseconds it took Elasticsearch to run the request. This value is calculated by measuring the time elapsed between receipt of a request on the coordinating node and the time at which the coordinating node is ready to send the response. It includes:
- Communication time between the coordinating node and data nodes
- Time the request spends in the search thread pool, queued for execution
- Actual run time
It does not include:
- Time needed to send the request to Elasticsearch
- Time needed to serialize the JSON response
- Time needed to send the response to a client
- timed_out
boolean Required If
true
, the request timed out before completion; returned results may be partial or empty. - _shards
object Required Hide _shards attributes Show _shards attributes object
- failed
number Required - successful
number Required - total
number Required - failures
array[object] Hide failures attributes Show failures attributes object
- index
string - node
string - reason
object Required Hide reason attributes Show reason attributes object
- type
string Required The type of error
- reason
string A human-readable explanation of the error, in English.
- stack_trace
string The server stack trace. Present only if the
error_trace=true
parameter was sent with the request. - caused_by
object - root_cause
array[object] - suppressed
array[object]
- shard
number Required - status
string
- skipped
number
- hits
object Required Hide hits attributes Show hits attributes object
- hits
array[object] Required Hide hits attributes Show hits attributes object
- _index
string Required - _id
string _score
number | string | null - _explanation
object Hide _explanation attributes Show _explanation attributes object
- description
string Required - details
array[object] Required - value
number Required
- fields
object Hide fields attribute Show fields attribute object
- *
object Additional properties
- highlight
object Hide highlight attribute Show highlight attribute object
- *
array[string] Additional properties
- inner_hits
object matched_queries
array[string] | object - _nested
object - _ignored
array[string] - ignored_field_values
object Hide ignored_field_values attribute Show ignored_field_values attribute object
- *
array[number | string | boolean | null | object] Additional properties A field value.
- _shard
string - _node
string - _routing
string - _source
object - _rank
number - _seq_no
number - _primary_term
number - _version
number - sort
array[number | string | boolean | null | object] A field value.
max_score
number | string | null
- aggregations
object - _clusters
object Hide _clusters attributes Show _clusters attributes object
- skipped
number Required - successful
number Required - total
number Required - running
number Required - partial
number Required - failed
number Required - details
object Hide details attribute Show details attribute object
- *
object Additional properties Hide * attributes Show * attributes object
- status
string Required Values are
running
,successful
,partial
,skipped
, orfailed
. - indices
string Required - took
number Time unit for milliseconds
- timed_out
boolean Required - _shards
object Hide _shards attributes Show _shards attributes object
- failed
number Required - successful
number Required - total
number Required - failures
array[object] - skipped
number
- failures
array[object]
- fields
object Hide fields attribute Show fields attribute object
- *
object Additional properties
- max_score
number - num_reduce_phases
number - profile
object Hide profile attribute Show profile attribute object
- shards
array[object] Required Hide shards attributes Show shards attributes object
- aggregations
array[object] Required Hide aggregations attributes Show aggregations attributes object
- breakdown
object Required - description
string Required - type
string Required - debug
object - children
array[object]
- cluster
string Required - dfs
object Hide dfs attributes Show dfs attributes object
- statistics
object Hide statistics attributes Show statistics attributes object
- knn
array[object]
- fetch
object Hide fetch attributes Show fetch attributes object
- type
string Required - description
string Required - time_in_nanos
number Time unit for nanoseconds
- breakdown
object Required Hide breakdown attributes Show breakdown attributes object
- load_source
number - load_source_count
number - load_stored_fields
number - load_stored_fields_count
number - next_reader
number - next_reader_count
number - process_count
number - process
number
- debug
object Hide debug attributes Show debug attributes object
- stored_fields
array[string] - fast_path
number
- children
array[object]
- id
string Required - index
string Required - node_id
string Required - searches
array[object] Required Hide searches attributes Show searches attributes object
- collector
array[object] Required - query
array[object] Required - rewrite_time
number Required
- shard_id
number Required
- pit_id
string - _scroll_id
string - suggest
object Hide suggest attribute Show suggest attribute object
- terminated_early
boolean
curl \
--request GET 'http://api.example.com/_search/scroll' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '"{\n \"scroll_id\" : \"DXF1ZXJ5QW5kRmV0Y2gBAAAAAAAAAD4WYm9laVYtZndUQlNsdDcwakFMNjU1QQ==\"\n}"'
{
"scroll_id" : "DXF1ZXJ5QW5kRmV0Y2gBAAAAAAAAAD4WYm9laVYtZndUQlNsdDcwakFMNjU1QQ=="
}