Files
elasticsearch-js/docs/reference/api/RenderSearchTemplateRequest.md
2025-05-28 10:02:30 -05:00

1.1 KiB

RenderSearchTemplateRequest [interface-RenderSearchTemplateRequest]

Name Type Description
body string ({ [key: string]: any; } & { id?: never; file?: never; params?: never; source?: never; })
file string  
id Id The ID of the search template to render. If no source is specified, this or the id request body parameter is required.
params Record<string, any> Key-value pairs used to replace Mustache variables in the template. The key is the variable name. The value is the variable value.
querystring { [key: string]: any; } & { id?: never; file?: never; params?: never; source?: never; } All values in querystring will be added to the request querystring.
source ScriptSource An inline search template. It supports the same parameters as the search API's request body. These parameters also support Mustache variables. If no id or <templated-id> is specified, this parameter is required.