[DOCS] Fix multi percolate response sample in percolate.asciidoc

This commit is contained in:
olivier bourgain 2015-03-29 17:02:04 +02:00 committed by Luca Cavanna
parent 80fe8d1f72
commit 00a9db73ae
1 changed files with 31 additions and 4 deletions

View File

@ -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"
},
{
"error" : "[user][3]document missing"
"_index": "twitter",
"_id": "5"
},
{
"_index": "twitter",
"_id": "6"
}
]
},
{
"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