# Retreive all documents of specific index from ES with snapshot

**URL:** <https://discuss.elastic.co/t/retreive-all-documents-of-specific-index-from-es-with-snapshot/295034>\
**Category:** Elasticsearch\
**Created:** [January 21, 2022, 8:43am UTC](https://discuss.elastic.co/t/retreive-all-documents-of-specific-index-from-es-with-snapshot/295034 "2022-01-21T08:43:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hyeongjun\_Kim](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hyeongjun_kim/32/100662_2.png) [@Hyeongjun\_Kim](https://discuss.elastic.co/u/Hyeongjun_Kim)\
**Post date:** [January 21, 2022, 8:43am UTC](https://discuss.elastic.co/t/retreive-all-documents-of-specific-index-from-es-with-snapshot/295034/1 "2022-01-21T08:43:53Z")

</div>

Hello, I want to extract all documents from ES index.

More than 6M documents are stored in target index.

In order to get all documents with scroll or search\_after API, I have to send lots of search requests.

Many search requests caused high search latency of production search API and high data nodes JVMMemoryPressure.

I want to retrieve all the documents without affecting the production environment.

One of the methods I thought is using a snapshot of the ES cluster.

Is there any way to retrieve all documents of specific index from snapshot file?

Please help me!

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [January 21, 2022, 11:45am UTC](https://discuss.elastic.co/t/retreive-all-documents-of-specific-index-from-es-with-snapshot/295034/2 "2022-01-21T11:45:13Z")

</div>

> [@Hyeongjun\_Kim](#):
>
> Is there any way to retrieve all documents of specific index from snapshot file?

Yes: restore the snapshot into a different cluster and use the regular search APIs. You could set up a dedicated cluster for this specific task.

---

<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:** [February 18, 2022, 11:46am UTC](https://discuss.elastic.co/t/retreive-all-documents-of-specific-index-from-es-with-snapshot/295034/3 "2022-02-18T11:46:07Z")

</div>

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