From 00a9db73aec8f7d5702e44e0c5391860d669b415 Mon Sep 17 00:00:00 2001 From: olivier bourgain Date: Sun, 29 Mar 2015 17:02:04 +0200 Subject: [PATCH] [DOCS] Fix multi percolate response sample in percolate.asciidoc --- docs/reference/search/percolate.asciidoc | 35 +++++++++++++++++++++--- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/docs/reference/search/percolate.asciidoc b/docs/reference/search/percolate.asciidoc index 78523094697..0e72eafd934 100644 --- a/docs/reference/search/percolate.asciidoc +++ b/docs/reference/search/percolate.asciidoc @@ -396,7 +396,7 @@ Response: [source,js] -------------------------------------------------- { - "items" : [ + "responses" : [ { "took" : 24, "_shards" : { @@ -405,7 +405,20 @@ Response: "failed" : 0, }, "total" : 3, - "matches" : ["1", "2", "3"] + "matches" : [ + { + "_index": "twitter", + "_id": "1" + }, + { + "_index": "twitter", + "_id": "2" + }, + { + "_index": "twitter", + "_id": "3" + } + ] }, { "took" : 12, @@ -415,10 +428,23 @@ Response: "failed" : 0, }, "total" : 3, - "matches" : ["4", "5", "6"] + "matches" : [ + { + "_index": "twitter", + "_id": "4" + }, + { + "_index": "twitter", + "_id": "5" + }, + { + "_index": "twitter", + "_id": "6" + } + ] }, { - "error" : "[user][3]document missing" + "error" : "DocumentMissingException[[_na][_na] [user][3]: document missing]" }, { "took" : 12, @@ -440,6 +466,7 @@ Response: } ] } + -------------------------------------------------- Each item represents a percolate response, the order of the items maps to the order in which the percolate requests