# Distinct values of a field

**URL:** <https://discuss.elastic.co/t/distinct-values-of-a-field/226264>\
**Category:** Elasticsearch\
**Created:** [April 2, 2020, 5:55pm UTC](https://discuss.elastic.co/t/distinct-values-of-a-field/226264 "2020-04-02T17:55:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![liorg2](https://avatars.discourse-cdn.com/v4/letter/l/ed8c4c/32.png) [@liorg2](https://discuss.elastic.co/u/liorg2)\
**Post date:** [April 2, 2020, 5:55pm UTC](https://discuss.elastic.co/t/distinct-values-of-a-field/226264/1 "2020-04-02T17:55:20Z")

</div>

is there a way to get a list of distinct values of a field except the term aggregation?  
I'm referring to a use case when I don't need the doc\_count, but only list of values (I assume that calculating the doc\_count requires some effort)

thanks

---

<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:** [April 30, 2020, 5:57pm UTC](https://discuss.elastic.co/t/distinct-values-of-a-field/226264/2 "2020-04-30T17:57:48Z")

</div>

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