# Make aggregation response shorter

**URL:** <https://discuss.elastic.co/t/make-aggregation-response-shorter/99009>\
**Category:** Elasticsearch\
**Created:** [August 31, 2017, 1:33pm UTC](https://discuss.elastic.co/t/make-aggregation-response-shorter/99009 "2017-08-31T13:33:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wullschi](https://avatars.discourse-cdn.com/v4/letter/w/9dc877/32.png) [@Wullschi](https://discuss.elastic.co/u/Wullschi)\
**Post date:** [August 31, 2017, 1:33pm UTC](https://discuss.elastic.co/t/make-aggregation-response-shorter/99009/1 "2017-08-31T13:33:50Z")

</div>

Hi!

Is it possible to make an aggregation response shorter by leaving away fields like "doc\_count\_error\_upper\_bound",  
"sum\_other\_doc\_count" or "doc\_count"?  
I could not find any information on how to disable those fields.

Thanks!  
Benjamin

---

<div class="post-metadata">

**Author:** ![colings86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/colings86/32/44960_2.png) [@colings86](https://discuss.elastic.co/u/colings86)\
**Post date:** [August 31, 2017, 2:51pm UTC](https://discuss.elastic.co/t/make-aggregation-response-shorter/99009/2 "2017-08-31T14:51:24Z")

</div>

These fields cannot be disabled. They only appear once per aggregation so do not contribute much to the size of the response. Why are you wanting to remove them?

---

<div class="post-metadata">

**Author:** ![Wullschi](https://avatars.discourse-cdn.com/v4/letter/w/9dc877/32.png) [@Wullschi](https://discuss.elastic.co/u/Wullschi)\
**Post date:** [September 1, 2017, 12:27pm UTC](https://discuss.elastic.co/t/make-aggregation-response-shorter/99009/3 "2017-09-01T12:27:49Z")

</div>

Thanks you! In my Aggregation, I have a lot of buckets with a very small amount of information in each bucket, so these additional infos, that I don't really need, take up a significant part of the response. I was just wondering if it is possible to optimize the data load of the response by leaving all unwanted Information away.

---

<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:** [September 29, 2017, 12:27pm UTC](https://discuss.elastic.co/t/make-aggregation-response-shorter/99009/4 "2017-09-29T12:27:50Z")

</div>

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