# Buckets - size and order

**URL:** <https://discuss.elastic.co/t/buckets-size-and-order/149998>\
**Category:** Kibana\
**Created:** [September 26, 2018, 12:04pm UTC](https://discuss.elastic.co/t/buckets-size-and-order/149998 "2018-09-26T12:04:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wheelq](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wheelq/32/35893_2.png) [@wheelq](https://discuss.elastic.co/u/wheelq)\
**Post date:** [September 26, 2018, 12:04pm UTC](https://discuss.elastic.co/t/buckets-size-and-order/149998/1 "2018-09-26T12:04:33Z")

</div>

How does the size option work inside the buckets? Why do I have to define it if I do not know how many buckets I'll have? I am using this if I want to show 5 top counts, but what should I put in there if I'd like to have a visualisation of all counts for all items?

---

<div class="post-metadata">

**Author:** ![jen-huang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jen-huang/32/74327_2.png) [@jen-huang](https://discuss.elastic.co/u/jen-huang)\
**Post date:** [September 26, 2018, 5:19pm UTC](https://discuss.elastic.co/t/buckets-size-and-order/149998/2 "2018-09-26T17:19:17Z")

</div>

Kibana visualizations work by querying Elasticsearch for aggregations. Aggregations (including buckets) are designed to be minimal by querying for the most relevant information, hence the required size parameter for terms aggregations. Try setting size to a high value like `10000` if you want to see all terms.

---

<div class="post-metadata">

**Author:** ![wheelq](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wheelq/32/35893_2.png) [@wheelq](https://discuss.elastic.co/u/wheelq)\
**Post date:** [October 11, 2018, 11:55am UTC](https://discuss.elastic.co/t/buckets-size-and-order/149998/3 "2018-10-11T11:55:33Z")

</div>

that's what I thought...there should be an option for - max

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 8, 2018, 11:55am UTC](https://discuss.elastic.co/t/buckets-size-and-order/149998/4 "2018-11-08T11:55:33Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
