[Docs] Fix consoleify search-template.asciidoc

It does not reproduce well, hopefully this will fix the failure on DELETE _search/template/<templatename>.
This commit is contained in:
Tanguy Leroux 2017-02-08 21:23:38 +01:00
parent da6b3e2f53
commit 832952cb29
1 changed files with 20 additions and 2 deletions

View File

@ -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/<templatename>
------------------------------------------
// 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: