Search template in bulk


I was wondering if there is a way to execute search template queries in

For eg, I have couple of search templates registered in .scripts index. I
want to run a bulk search template using these templates and different set
of parameters for each search in bulk.

Example query could be:

cat requests
{ "template": { "id": "tempalte1" },"params": { "title": "burger" } }
{ "template": { "id": "tempalte2" },"params": { "title": "pizza" } }

GET /blogs/post/_msearch/template --data-binary @requests; echo

Is a similar thing possible/planned?


You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit