# How to set the size from aggregations

**URL:** <https://discuss.elastic.co/t/how-to-set-the-size-from-aggregations/79356>\
**Category:** Elasticsearch\
**Created:** [March 21, 2017, 6:52am UTC](https://discuss.elastic.co/t/how-to-set-the-size-from-aggregations/79356 "2017-03-21T06:52:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wenthywang](https://avatars.discourse-cdn.com/v4/letter/w/a5b964/32.png) [@wenthywang](https://discuss.elastic.co/u/wenthywang)\
**Post date:** [March 21, 2017, 6:52am UTC](https://discuss.elastic.co/t/how-to-set-the-size-from-aggregations/79356/1 "2017-03-21T06:52:52Z")

</div>

i want to set the config file to set it

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 21, 2017, 8:01am UTC](https://discuss.elastic.co/t/how-to-set-the-size-from-aggregations/79356/2 "2017-03-21T08:01:01Z")

</div>

You can't in the config file. It's on the request.

---

<div class="post-metadata">

**Author:** ![wenthywang](https://avatars.discourse-cdn.com/v4/letter/w/a5b964/32.png) [@wenthywang](https://discuss.elastic.co/u/wenthywang)\
**Post date:** [March 21, 2017, 10:59am UTC](https://discuss.elastic.co/t/how-to-set-the-size-from-aggregations/79356/3 "2017-03-21T10:59:01Z")

</div>

oh .otherwise,why not the size is 0 accepted above 5.0？  
if i can set the size from config file,i will be happy ..haha

---Original---

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 21, 2017, 1:14pm UTC](https://discuss.elastic.co/t/how-to-set-the-size-from-aggregations/79356/4 "2017-03-21T13:14:36Z")

</div>

See [https://www.elastic.co/guide/en/elasticsearch/reference/5.2/breaking\_50\_aggregations\_changes.html#\_literal\_size\_0\_literal\_on\_terms\_significant\_terms\_and\_geohash\_grid\_aggregations](https://www.elastic.co/guide/en/elasticsearch/reference/5.2/breaking_50_aggregations_changes.html#_literal_size_0_literal_on_terms_significant_terms_and_geohash_grid_aggregations)

---

<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:** [April 18, 2017, 1:14pm UTC](https://discuss.elastic.co/t/how-to-set-the-size-from-aggregations/79356/5 "2017-04-18T13:14:48Z")

</div>

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