# Getting unique fields from Query Result

**URL:** <https://discuss.elastic.co/t/getting-unique-fields-from-query-result/232105>\
**Category:** Elasticsearch\
**Created:** [May 11, 2020, 7:43pm UTC](https://discuss.elastic.co/t/getting-unique-fields-from-query-result/232105 "2020-05-11T19:43:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tidus](https://avatars.discourse-cdn.com/v4/letter/t/b77776/32.png) [@tidus](https://discuss.elastic.co/u/tidus)\
**Post date:** [May 11, 2020, 7:43pm UTC](https://discuss.elastic.co/t/getting-unique-fields-from-query-result/232105/1 "2020-05-11T19:43:50Z")

</div>

Hi,

I would like to know if there is another method besides a scripted metrics aggregation to get all unique document field names from a query result.

---

<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:** [June 8, 2020, 7:43pm UTC](https://discuss.elastic.co/t/getting-unique-fields-from-query-result/232105/2 "2020-06-08T19:43:58Z")

</div>

Closed on June 8, 2020, 7:43pm UTC

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