younifyd
Menu

Get async search results

Get async search results

GET/_async_search/{id}

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Get async search results action (under search).
  3. Fill in the fields below, then reference the result from later steps as {{getAsyncSearchResults.response.data}}.

Request

Path parameters

idstringrequired

A unique identifier for the async search.

Query parameters

keep_aliveoneOf

The length of time that the async search should be available in the cluster. When not specified, the `keep_alive` set with the corresponding submit async request will be used. Otherwise, it is possible to override the value and extend the validity of the request. When this period expires, the search, if still running, is cancelled. If the search is completed, its saved results are deleted.

typed_keysboolean

Specify whether aggregation and suggester names should be prefixed by their respective types in the response

wait_for_completion_timeoutoneOf

Specifies to wait for the search to be completed up until the provided timeout. Final results will be returned if available before the timeout expires, otherwise the currently available results will be returned once the timeout expires. By default no timeout is set meaning that the currently available results will be returned without any additional wait.

return_intermediate_resultsboolean

Specifies whether the response should contain intermediate results if the query is still running when the wait_for_completion_timeout expires or if no wait_for_completion_timeout is specified. If true and the search is still running, the search response will include any hits and partial aggregations that are available. If false and the search is still running, the search response will not include any hits (but possibly include total hits) nor will include any partial aggregations. When not specified, the intermediate results are returned for running queries.

Response

Returns 200 with a any. Read it in later steps with {{getAsyncSearchResults.response.data.<field>}}.

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

Get async search results — Elasticsearch — Documentation