# Hide doc\_count\_error\_upper\_bound and sum\_other\_doc\_count from aggregation

**URL:** https://discuss.elastic.co/t/hide-doc-count-error-upper-bound-and-sum-other-doc-count-from-aggregation/145085
**Category:** Elasticsearch
**Created:** [August 20, 2018, 5:25am UTC](https://discuss.elastic.co/t/hide-doc-count-error-upper-bound-and-sum-other-doc-count-from-aggregation/145085 "2018-08-20T05:25:18Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![anam](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@anam](https://discuss.elastic.co/u/anam)
#### Post date: [August 20, 2018, 5:25am UTC](https://discuss.elastic.co/t/hide-doc-count-error-upper-bound-and-sum-other-doc-count-from-aggregation/145085/1 "2018-08-20T05:25:19Z")

</div>

How to hide `doc_count_error_upper_bound: 0` and `sum_other_doc_count: 0` from aggregation result?

```auto
{
    ...
    "aggregations" : {
        "genres" : {
            "doc_count_error_upper_bound": 0,
            "sum_other_doc_count": 0,
            "buckets" : [ 
                {
                    "key" : "electronic",
                    "doc_count" : 6
                },
                {
                    "key" : "rock",
                    "doc_count" : 3
                },
                {
                    "key" : "jazz",
                    "doc_count" : 2
                }
            ]
        }
    }
}

```

---

<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 17, 2018, 5:25am UTC](https://discuss.elastic.co/t/hide-doc-count-error-upper-bound-and-sum-other-doc-count-from-aggregation/145085/2 "2018-09-17T05:25:29Z")

</div>

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