[[reference-msearch_template]] //////// =========================================================================================================================== || || || || || || || ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ || || ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ || || ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ || || ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ || || ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ || || ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ || || || || || || This file is autogenerated, DO NOT send pull requests that changes this file directly. || || You should update the script that does the generation, which can be found in: || || https://github.com/elastic/elastic-client-generator-js || || || || You can run the script with the following command: || || npm run elasticsearch -- --version || || || || || || || =========================================================================================================================== //////// [discrete] === client.msearchTemplate Run multiple templated searches. {ref}/search-multi-search.html[{es} documentation] [discrete] ==== Function signature [source,ts] ---- (MsearchTemplateRequest, options?): Promise ---- [discrete] ===== `MsearchTemplateRequest` [source,ts] ---- interface MsearchTemplateRequest extends <> { index?: <> ccs_minimize_roundtrips?: boolean max_concurrent_searches?: <> search_type?: <> rest_total_hits_as_int?: boolean typed_keys?: boolean search_templates?: MsearchTemplateRequestItem[] } ---- [discrete] ===== `MsearchTemplateResponse` [source,ts] ---- type MsearchTemplateResponse>, AggregationsAggregate>> = MsearchMultiSearchResult ----