# Need all distinct values .. Elasticsearch returns 1000 only

**URL:** <https://discuss.elastic.co/t/need-all-distinct-values-elasticsearch-returns-1000-only/212940>\
**Category:** Elasticsearch\
**Created:** [December 24, 2019, 10:10am UTC](https://discuss.elastic.co/t/need-all-distinct-values-elasticsearch-returns-1000-only/212940 "2019-12-24T10:10:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amkaran](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@amkaran](https://discuss.elastic.co/u/amkaran)\
**Post date:** [December 24, 2019, 10:10am UTC](https://discuss.elastic.co/t/need-all-distinct-values-elasticsearch-returns-1000-only/212940/1 "2019-12-24T10:10:40Z")

</div>

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"  
> }  
> }

---

<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:** [January 21, 2020, 10:10am UTC](https://discuss.elastic.co/t/need-all-distinct-values-elasticsearch-returns-1000-only/212940/2 "2020-01-21T10:10:44Z")

</div>

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