diff --git a/docs/reference/search/search-template.asciidoc b/docs/reference/search/search-template.asciidoc index 135f0b76e6d22..e8d142d71d6dc 100644 --- a/docs/reference/search/search-template.asciidoc +++ b/docs/reference/search/search-template.asciidoc @@ -257,7 +257,7 @@ for `end`: [float] ===== Converting parameters to JSON -The `{{toJson}}parameter{{/toJson}}` function can be used to convert parameters +The `{{#toJson}}parameter{{/toJson}}` function can be used to convert parameters like maps and array to their JSON representation: [source,js]