Aggregation size

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?

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 
}

Because of: Terms aggregation | Elasticsearch Guide [8.11] | Elastic

size is 10 by default.

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

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?

1 Like

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