Procházet zdrojové kódy

[Docs] Fix consoleify search-template.asciidoc

It does not reproduce well, hopefully this will fix the failure on DELETE _search/template/<templatename>.
Tanguy Leroux před 8 roky
rodič
revize
832952cb29
1 změnil soubory, kde provedl 20 přidání a 2 odebrání
  1. 20 2
      docs/reference/search/search-template.asciidoc

+ 20 - 2
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/<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: