fixed nested example response in docs

Closes #4935
This commit is contained in:
uboness 2014-01-29 13:09:12 +01:00
parent 2de0e60342
commit 9f04e5fe38
1 changed files with 7 additions and 3 deletions

View File

@ -3,7 +3,8 @@
A special single bucket aggregation that enables aggregating nested documents. A special single bucket aggregation that enables aggregating nested documents.
For example, lets say we have a index of products, and each product holds the list of resellers - each having its own price for the product. The mapping could look like: For example, lets say we have a index of products, and each product holds the list of resellers - each having its own
price for the product. The mapping could look like:
[source,js] [source,js]
-------------------------------------------------- --------------------------------------------------
@ -47,7 +48,8 @@ The following aggregations will return the minimum price products can be purchas
} }
-------------------------------------------------- --------------------------------------------------
As you can see above, the nested aggregation requires the `path` of the nested documents within the top level documents. Then one can define any type of aggregation over these nested documents. As you can see above, the nested aggregation requires the `path` of the nested documents within the top level documents.
Then one can define any type of aggregation over these nested documents.
Response: Response:
@ -56,7 +58,9 @@ Response:
{ {
"aggregations": { "aggregations": {
"resellers": { "resellers": {
"min_price": 350 "min_price": {
"value" : 350
}
} }
} }
} }