Menu
Run a search with a search template (GET /{index}/_search/template)
Run a search with a search template
GET
/{index}/_search/templateUse it in a workflow
- Add a step and choose the Elasticsearch connector.
- Pick the Run a search with a search template (GET /{index}/_search/template) action (under search).
- Fill in the fields below, then reference the result from later steps as
{{runASearchWithASearchTemplateGetIndexSearchTemplate.response.data}}.
Request
Path parameters
Query parameters
Response
Returns 200 with an object. Read it in later steps with {{runASearchWithASearchTemplateGetIndexSearchTemplate.response.data.<field>}}.
{
"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.
Was this page helpful?