Registered Search Templates in multi search API (_msearch)


Is it possible to use registered search templates in a multi search api
(_msearch) request?
If so, how?

I tried giving the following query in a body.

{"template":{"id":"template_1"},"params":{"a":1, "b":2}}

But that leads to the error:
Parse Failure [No parser for element [template]]

I tried wrapping everything in a query and POSTing to _msearch/template,
but these don't work either.

Thanks in advance

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