diff --git a/docs/reference/search/search-template.asciidoc b/docs/reference/search/search-template.asciidoc index cd61e317aaf..62d0670ee8a 100644 --- a/docs/reference/search/search-template.asciidoc +++ b/docs/reference/search/search-template.asciidoc @@ -452,6 +452,7 @@ because we'll use it later. } -------------------------------------------------- // TESTRESPONSE +// TEST[continued] ////////////////////////// @@ -475,7 +476,8 @@ which is rendered as: "template" : "{\"query\":{\"match\":{\"title\":\"{{query_string}}\"}}}" } ------------------------------------------ -//TESTRESPONSE +// TESTRESPONSE +// TEST[continued] This template can be deleted by @@ -484,7 +486,23 @@ This template can be deleted by DELETE _search/template/ ------------------------------------------ // CONSOLE -// TEST[catch:missing] +// TEST[continued] + +////////////////////////// + +We want to be sure that the template has been created, +because we'll use it later. + +[source,js] +-------------------------------------------------- +{ + "acknowledged" : true +} +-------------------------------------------------- +// TESTRESPONSE +// TEST[continued] + +////////////////////////// To use an indexed template at search time use: