diff --git a/docs/reference/search/search-your-data/search-template.asciidoc b/docs/reference/search/search-your-data/search-template.asciidoc index 9fb6ee85ffcca..7a7f09f4a37a7 100644 --- a/docs/reference/search/search-your-data/search-template.asciidoc +++ b/docs/reference/search/search-your-data/search-template.asciidoc @@ -795,7 +795,7 @@ PUT _scripts/my-search-template "lang": "mustache", "source": { "query":{ - "multi-match":{ + "multi_match":{ "query": "{{query_string}}", "fields": """[{{#text_fields}}{{user_name}},{{/text_fields}}]""" } @@ -834,7 +834,7 @@ When rendered, template outputs: { "template_output": { "query": { - "multi-match": { + "multi_match": { "query": "My string", "fields": "[John,kimchy,]" } @@ -855,7 +855,7 @@ PUT _scripts/my-search-template "lang": "mustache", "source": { "query":{ - "multi-match":{ + "multi_match":{ "query": "{{query_string}}", "fields": """[{{#text_fields}}{{user_name}}{{^last}},{{/last}}{{/text_fields}}]""" } @@ -895,7 +895,7 @@ When rendered the template outputs: { "template_output": { "query": { - "multi-match": { + "multi_match": { "query": "My string", "fields": "[John,kimchy]" }