younifyd
Menu

Run multiple templated searches (POST /_msearch/template)

Run multiple templated searches

POST/_msearch/template

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Run multiple templated searches (POST /_msearch/template) action (under search).
  3. Fill in the fields below, then reference the result from later steps as {{runMultipleTemplatedSearchesPostMsearchTemplate.response.data}}.

Request

Query parameters

ccs_minimize_roundtripsboolean

If `true`, network round-trips are minimized for cross-cluster search requests.

max_concurrent_searchesnumber

The maximum number of concurrent searches the API can run.

search_typestring

The type of the search operation.

One ofquery_then_fetchdfs_query_then_fetch

rest_total_hits_as_intboolean

If `true`, the response returns `hits.total` as an integer. If `false`, it returns `hits.total` as an object.

typed_keysboolean

If `true`, the response prefixes aggregation and suggester names with their respective types.

Response

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

tooknumber
responsesarray<oneOf>
json
{
  "took": 0,
  "responses": [
    null
  ]
}

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

Run multiple templated searches (POST /_msearch/template) — Elasticsearch — Documentation