msearchTemplate

edit

msearchTemplate

edit
client.msearchTemplate([params, [callback]])

Check the API Conventions and the elasticsearch docs for more information pertaining to this method.

Params

searchType

String — Search operation type

Options
  • "query_then_fetch"
  • "query_and_fetch"
  • "dfs_query_then_fetch"
  • "dfs_query_and_fetch"

typedKeys

Boolean — Specify whether aggregation and suggester names should be prefixed by their respective types in the response

maxConcurrentSearches

Number — Controls the maximum number of concurrent searches the multi search api will execute

restTotalHitsAsInt

Boolean — Indicates whether hits.total should be rendered as an integer or an object in the rest search response

[ccsMinimizeRoundtrips=true]

Boolean — Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution

index

String, String[], Boolean — A comma-separated list of index names to use as default

type

String, String[], Boolean — A comma-separated list of document types to use as default

body

Object[], JSONLines — The request body, as either an array of objects or new-line delimited JSON objects. See the elasticsearch docs for details about what can be specified here.

back to top