# How to get distinct value of a field with URI query of elasticsearch and remove size constraint from the URI query

**URL:** <https://discuss.elastic.co/t/how-to-get-distinct-value-of-a-field-with-uri-query-of-elasticsearch-and-remove-size-constraint-from-the-uri-query/41744>\
**Category:** Elasticsearch\
**Created:** [February 15, 2016, 7:16am UTC](https://discuss.elastic.co/t/how-to-get-distinct-value-of-a-field-with-uri-query-of-elasticsearch-and-remove-size-constraint-from-the-uri-query/41744 "2016-02-15T07:16:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lovika\_Jain](https://avatars.discourse-cdn.com/v4/letter/l/958977/32.png) [@Lovika\_Jain](https://discuss.elastic.co/u/Lovika_Jain)\
**Post date:** [February 15, 2016, 7:16am UTC](https://discuss.elastic.co/t/how-to-get-distinct-value-of-a-field-with-uri-query-of-elasticsearch-and-remove-size-constraint-from-the-uri-query/41744/1 "2016-02-15T07:16:13Z")

</div>

If I have redundant data for a field particular field, how do i display the field value only once with URI query of elasticsearch  
Plus how can we remove size constraint and get all the indexed data?

---

<div class="post-metadata">

**Author:** ![Lovika\_Jain](https://avatars.discourse-cdn.com/v4/letter/l/958977/32.png) [@Lovika\_Jain](https://discuss.elastic.co/u/Lovika_Jain)\
**Post date:** [February 15, 2016, 8:29am UTC](https://discuss.elastic.co/t/how-to-get-distinct-value-of-a-field-with-uri-query-of-elasticsearch-and-remove-size-constraint-from-the-uri-query/41744/2 "2016-02-15T08:29:19Z")

</div>

could anybody please reply to this query?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 15, 2016, 4:15pm UTC](https://discuss.elastic.co/t/how-to-get-distinct-value-of-a-field-with-uri-query-of-elasticsearch-and-remove-size-constraint-from-the-uri-query/41744/3 "2016-02-15T16:15:38Z")

</div>

If you want to get all the data then use scan and scroll, not a query.

---

<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:** [July 5, 2017, 11:16pm UTC](https://discuss.elastic.co/t/how-to-get-distinct-value-of-a-field-with-uri-query-of-elasticsearch-and-remove-size-constraint-from-the-uri-query/41744/4 "2017-07-05T23:16:21Z")

</div>


