浏览代码

[Docs] Fix consoleify search-template.asciidoc

It does not reproduce well, hopefully this will fix the failure on DELETE _search/template/<templatename>.
Tanguy Leroux 8 年之前
父节点
当前提交
832952cb29
共有 1 个文件被更改,包括 20 次插入2 次删除
  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
 // TESTRESPONSE
+// TEST[continued]
 
 
 //////////////////////////
 //////////////////////////
 
 
@@ -475,7 +476,8 @@ which is rendered as:
     "template" : "{\"query\":{\"match\":{\"title\":\"{{query_string}}\"}}}"
     "template" : "{\"query\":{\"match\":{\"title\":\"{{query_string}}\"}}}"
 }
 }
 ------------------------------------------
 ------------------------------------------
-//TESTRESPONSE
+// TESTRESPONSE
+// TEST[continued]
 
 
 This template can be deleted by
 This template can be deleted by
 
 
@@ -484,7 +486,23 @@ This template can be deleted by
 DELETE _search/template/<templatename>
 DELETE _search/template/<templatename>
 ------------------------------------------
 ------------------------------------------
 // CONSOLE
 // 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:
 To use an indexed template at search time use: