# Listing the content of an Index

**URL:** <https://discuss.elastic.co/t/listing-the-content-of-an-index/41288>\
**Category:** Elasticsearch\
**Created:** [February 9, 2016, 3:15pm UTC](https://discuss.elastic.co/t/listing-the-content-of-an-index/41288 "2016-02-09T15:15:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinod\_rao](https://avatars.discourse-cdn.com/v4/letter/v/3e96dc/32.png) [@vinod\_rao](https://discuss.elastic.co/u/vinod_rao)\
**Post date:** [February 9, 2016, 3:15pm UTC](https://discuss.elastic.co/t/listing-the-content-of-an-index/41288/1 "2016-02-09T15:15:09Z")

</div>

Hi Team,

I need to list the first field of each document of an index. How can we achieve this. Do we have any possibility to do this?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [February 9, 2016, 3:17pm UTC](https://discuss.elastic.co/t/listing-the-content-of-an-index/41288/2 "2016-02-09T15:17:12Z")

</div>

The fields of a document aren't in any particular order, so if you can't name the field you want you'll have to fetch each document in full.

---

<div class="post-metadata">

**Author:** ![vinod\_rao](https://avatars.discourse-cdn.com/v4/letter/v/3e96dc/32.png) [@vinod\_rao](https://discuss.elastic.co/u/vinod_rao)\
**Post date:** [February 9, 2016, 3:19pm UTC](https://discuss.elastic.co/t/listing-the-content-of-an-index/41288/3 "2016-02-09T15:19:47Z")

</div>

How can we list the all documents of an index?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [February 9, 2016, 3:21pm UTC](https://discuss.elastic.co/t/listing-the-content-of-an-index/41288/4 "2016-02-09T15:21:57Z")

</div>

Use the [scroll API](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-scroll.html).

---

<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:17pm UTC](https://discuss.elastic.co/t/listing-the-content-of-an-index/41288/5 "2017-07-05T23:17:56Z")

</div>


