# Aggregation: Remove a aggregation buckets from multi aggregated response

**URL:** <https://discuss.elastic.co/t/aggregation-remove-a-aggregation-buckets-from-multi-aggregated-response/98800>\
**Category:** Elasticsearch\
**Created:** [August 30, 2017, 7:03am UTC](https://discuss.elastic.co/t/aggregation-remove-a-aggregation-buckets-from-multi-aggregated-response/98800 "2017-08-30T07:03:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tamizh](https://avatars.discourse-cdn.com/v4/letter/t/8c91f0/32.png) [@Tamizh](https://discuss.elastic.co/u/Tamizh)\
**Post date:** [August 30, 2017, 7:03am UTC](https://discuss.elastic.co/t/aggregation-remove-a-aggregation-buckets-from-multi-aggregated-response/98800/1 "2017-08-30T07:03:24Z")

</div>

```
GET testing/_search
{
  "size": 0, 
  "aggs": {
    "users": {
      "terms": {
        "field": "user.keyword",
        "size": 225000
      },
      "aggs": {
        "followers_count": {
          "max": {
            "field": "followers"
          }
        }
      }
    },
    "count": {
      "sum_bucket": {
        "buckets_path": "users>followers_count"
      }
    }
  }
}

```

from the above query, i need only the count aggregation bucket. How to do that. The whole response takes much time to load because of the size. Thanks in advance.

---

<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 27, 2017, 7:03am UTC](https://discuss.elastic.co/t/aggregation-remove-a-aggregation-buckets-from-multi-aggregated-response/98800/2 "2017-09-27T07:03:51Z")

</div>

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