Need all distinct values .. Elasticsearch returns 1000 only

Hi Team,
ES Version -- 7.5
am trying to get all the unique values of the particular field by using "aggs" method .
it only allow size value lesser than 1000.
is there any way I can get all values .. and I tried using scroll also .. it didn't worked well

"aggs": {
"myfieldName" :{
"terms":{
"field": "myfieldName"
}
}

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