younifyd
Menu

Run a scrolling search (GET /_search/scroll)

Run a scrolling search

GET/_search/scroll

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Run a scrolling search (GET /_search/scroll) action (under search).
  3. Fill in the fields below, then reference the result from later steps as {{runAScrollingSearchGetSearchScroll.response.data}}.

Request

Query parameters

scrolloneOf

The period to retain the search context for scrolling.

scroll_idstring

The scroll ID

rest_total_hits_as_intboolean

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.

Response

Returns 200 with an object. Read it in later steps with {{runAScrollingSearchGetSearchScroll.response.data.<field>}}.

tooknumber

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_outboolean

If `true`, the request timed out before completion; returned results may be partial or empty.

_shardsany

A count of shards used for the request.

hitsany

The returned documents and metadata.

aggregationsobject
_clustersany
fieldsobject
max_scorenumber
num_reduce_phasesnumber
profileany
pit_idany
_scroll_idany

The identifier for the search and its search context. You can use this scroll ID with the scroll API to retrieve the next batch of search results for the request. This property is returned only if the `scroll` query parameter is specified in the request.

suggestobject
terminated_earlyboolean
json
{
  "took": 0,
  "timed_out": false,
  "_shards": null,
  "hits": null,
  "aggregations": {},
  "_clusters": null,
  "fields": {},
  "max_score": 0,
  "num_reduce_phases": 0,
  "profile": null,
  "pit_id": null,
  "_scroll_id": null
}

Need more? See the Elasticsearch guide for connection setup and behaviour shared by every action.

Run a scrolling search (GET /_search/scroll) — Elasticsearch — Documentation