# Aggregation size

**URL:** <https://discuss.elastic.co/t/aggregation-size/269067>\
**Category:** Elasticsearch\
**Created:** [April 1, 2021, 5:48pm UTC](https://discuss.elastic.co/t/aggregation-size/269067 "2021-04-01T17:48:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Giovanni\_Di\_Lembo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/giovanni_di_lembo/32/45714_2.png) [@Giovanni\_Di\_Lembo](https://discuss.elastic.co/u/Giovanni_Di_Lembo)\
**Post date:** [April 1, 2021, 5:48pm UTC](https://discuss.elastic.co/t/aggregation-size/269067/1 "2021-04-01T17:48:33Z")

</div>

Hi all and sorry for my poor english  
I have tons of data with different field value 'fastCategory', but whe i do an aggragation on fastCategory, I found just 10 aggregation? Why that?

```auto
POST statistic/_search
{ 
  "aggs": {
    "filtered": {
      "filter": {
        "bool": {
          "must": [
            {
              "term": {
                "accountUuid": "5522626"
              }              
            },	
	          {
              "term": {
                "profileUuid": "abcde"
              }              
            },		
            {
              "range": {
                "currentDate": {
                  "from": 1614612148000,
                  "to": 1617290548000
                }                
              }              
            } ]          
        }        
      },
      "aggs": {
        "category": {
          "terms": {
            "field": "fastCategory" 
          } ,
          "aggs": {
            "services": {
              "terms": {
                "field": "serviceName" 
              } ,
              "aggs":{
                "totalTrafficPerService": {
                  "sum": {
                    "field": "totalTraffic" 
                  }  
                } 
              }
            } ,
            "totalTrafficBucket": {
              "sum": {
                "field": "totalTraffic"                            
              }                          
            } 
          }  
        } 
      }      
    }     
  },
  "size": 0 
}

```

---

<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:** [April 1, 2021, 6:05pm UTC](https://discuss.elastic.co/t/aggregation-size/269067/2 "2021-04-01T18:05:54Z")

</div>

> [@Giovanni\_Di\_Lembo](#):
>
> Why that?

Because of: [Terms aggregation | Elasticsearch Guide [8.11] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html#search-aggregations-bucket-terms-aggregation-size)

`size` is `10` by default.

---

<div class="post-metadata">

**Author:** ![Giovanni\_Di\_Lembo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/giovanni_di_lembo/32/45714_2.png) [@Giovanni\_Di\_Lembo](https://discuss.elastic.co/u/Giovanni_Di_Lembo)\
**Post date:** [April 2, 2021, 6:47am UTC](https://discuss.elastic.co/t/aggregation-size/269067/3 "2021-04-02T06:47:56Z")

</div>

What surprise . 😀  
You should better specify this information in documentation. For future misunderstanding  
Thanks

---

<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:** [April 2, 2021, 7:01am UTC](https://discuss.elastic.co/t/aggregation-size/269067/4 "2021-04-02T07:01:11Z")

</div>

I agree. I was very surprised that the default value is not on this page.

Would you like to send a pull request to fix that?

---

<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 30, 2021, 7:01am UTC](https://discuss.elastic.co/t/aggregation-size/269067/5 "2021-04-30T07:01:48Z")

</div>

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