# How can I change the default size of the returned aggregations (10)?

**URL:** <https://discuss.elastic.co/t/how-can-i-change-the-default-size-of-the-returned-aggregations-10/260909>\
**Category:** Elasticsearch\
**Created:** [January 12, 2021, 9:40pm UTC](https://discuss.elastic.co/t/how-can-i-change-the-default-size-of-the-returned-aggregations-10/260909 "2021-01-12T21:40:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Catalin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/catalin/32/65314_2.png) [@Catalin](https://discuss.elastic.co/u/Catalin)\
**Post date:** [January 12, 2021, 9:40pm UTC](https://discuss.elastic.co/t/how-can-i-change-the-default-size-of-the-returned-aggregations-10/260909/1 "2021-01-12T21:40:20Z")

</div>

Is there an index setting in order to change default size of aggregations returned, which seems to be set at 10 ?

---

<div class="post-metadata">

**Author:** ![linkerc](https://avatars.discourse-cdn.com/v4/letter/l/13edae/32.png) [@linkerc](https://discuss.elastic.co/u/linkerc)\
**Post date:** [January 12, 2021, 11:00pm UTC](https://discuss.elastic.co/t/how-can-i-change-the-default-size-of-the-returned-aggregations-10/260909/2 "2021-01-12T23:00:51Z")

</div>

"size" parameter.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 12, 2021, 11:52pm UTC](https://discuss.elastic.co/t/how-can-i-change-the-default-size-of-the-returned-aggregations-10/260909/3 "2021-01-12T23:52:36Z")

</div>

See [https://www.elastic.co/guide/en/elasticsearch/reference/current/search-search.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-search.html) for more on `size`.

---

<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:** [February 9, 2021, 11:52pm UTC](https://discuss.elastic.co/t/how-can-i-change-the-default-size-of-the-returned-aggregations-10/260909/4 "2021-02-09T23:52:47Z")

</div>

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