Elasticsearch aggregation size

When i use following query, it shows only 10 buckets as default

"aggs": {
"group": {
"terms": {
"field": "user.keyword"
}

when i need to get all buckets i used following query

"aggs": {
"group": {
"terms": {
"field": "user.keyword",
"size":100000
}

Is there any way to get all the documents, without mention 10000.

1 Like

if you need to go through all results of an aggregation, check out the composite aggregation, as otherwise you will run into the max_buckets limitation

1 Like

@spinscale Thank you so much

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