Allows to retrieve a large numbers of results from a single search request
Query parameters
-
scroll string
Period to retain the search context for scrolling.
-
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
-
Hide _shards attributes Show _shards attributes object
-
failures array[object]
Hide failures attributes Show failures attributes object
-
index string
-
node string
-
Hide reason attributes Show reason attributes object
-
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]
-
-
status string
-
-
skipped number
-
Hide hits attributes Show hits attributes object
-
Hide hits attributes Show hits attributes object
-
_id string
_score number | string | null
-
_explanation object
Hide _explanation attributes Show _explanation attributes object
-
fields object
Hide fields attributes Show fields attributes object
-
key object
-
highlight object
Hide highlight attributes Show highlight attributes object
-
key array
-
inner_hits object
Hide inner_hits attributes Show inner_hits attributes object
matched_queries array[string] | object
-
_nested object
-
_ignored array[string]
-
ignored_field_values object
Hide ignored_field_values attributes Show ignored_field_values attributes object
-
key array
-
_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]
max_score number | string | null
-
aggregations object
-
_clusters object
Hide _clusters attributes Show _clusters attributes object
-
details object
Hide details attributes Show details attributes object
-
fields object
Hide fields attributes Show fields attributes object
-
key object
-
max_score number
-
num_reduce_phases number
-
profile object
Hide profile attribute Show profile attribute object
-
Hide shards attributes Show shards attributes object
-
Hide aggregations attributes Show aggregations attributes object
-
Hide searches attributes Show searches attributes object
-
fetch object
Hide fetch attributes Show fetch attributes object
-
time_in_nanos number
Time unit for nanoseconds
-
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]
-
-
-
pit_id string
-
_scroll_id string
-
suggest object
Hide suggest attributes Show suggest attributes object
-
key array
-
terminated_early boolean
POST /_search/scroll
curl \
-X POST http://api.example.com/_search/scroll \
-H "Content-Type: application/json" \
-d '{"scroll":"string","scroll_id":"string"}'