# Get single field of each result as list of strings

**URL:** <https://discuss.elastic.co/t/get-single-field-of-each-result-as-list-of-strings/122934>\
**Category:** Elasticsearch\
**Created:** [March 7, 2018, 5:31pm UTC](https://discuss.elastic.co/t/get-single-field-of-each-result-as-list-of-strings/122934 "2018-03-07T17:31:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lemonade1947](https://avatars.discourse-cdn.com/v4/letter/l/f04885/32.png) [@Lemonade1947](https://discuss.elastic.co/u/Lemonade1947)\
**Post date:** [March 7, 2018, 5:31pm UTC](https://discuss.elastic.co/t/get-single-field-of-each-result-as-list-of-strings/122934/1 "2018-03-07T17:31:38Z")

</div>

Say I have documents with three properties, Name, Address, and Postcode. I'd like to, for example, get back a simple json array with just the postcodes. Not objects with single properties.

Is this possible?

---

<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 4, 2018, 5:31pm UTC](https://discuss.elastic.co/t/get-single-field-of-each-result-as-list-of-strings/122934/2 "2018-04-04T17:31:45Z")

</div>

Closed on April 4, 2018, 5:31pm UTC

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