June 2017
Beginner to intermediate
404 pages
8h 22m
English
Your index data is spread across multiple shards, so the aggregation query is sent to all the shards, and each shard responds back with its view of the data. Each shard responds with its top buckets, and the coordinating node combines the results and sends them back to the client.
You may go through the following query:
"aggregations": { "category_products": { "doc_count_error_upper_bound" : 0, "buckets": [ // Buckets in the first level {
You can also specify the number of buckets you want in the response by specifying the size as shown here: ...
Read now
Unlock full access