# How to fetch all data from any index in spring boot

**URL:** <https://discuss.elastic.co/t/how-to-fetch-all-data-from-any-index-in-spring-boot/178444>\
**Category:** Elasticsearch\
**Created:** [April 25, 2019, 11:35am UTC](https://discuss.elastic.co/t/how-to-fetch-all-data-from-any-index-in-spring-boot/178444 "2019-04-25T11:35:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![localhost](https://avatars.discourse-cdn.com/v4/letter/l/53a042/32.png) [@localhost](https://discuss.elastic.co/u/localhost)\
**Post date:** [April 25, 2019, 11:35am UTC](https://discuss.elastic.co/t/how-to-fetch-all-data-from-any-index-in-spring-boot/178444/1 "2019-04-25T11:35:57Z")

</div>

Hi All,  
I have index name "platinum". I want to fetch all data from this index.

While opening this url in browser:  
[http://localhost:9200/platinum/\_search](http://localhost:9200/platinum/_search) I got all data in json.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 25, 2019, 4:29pm UTC](https://discuss.elastic.co/t/how-to-fetch-all-data-from-any-index-in-spring-boot/178444/2 "2019-04-25T16:29:57Z")

</div>

Use the scroll API.

---

<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:** [May 23, 2019, 4:34pm UTC](https://discuss.elastic.co/t/how-to-fetch-all-data-from-any-index-in-spring-boot/178444/3 "2019-05-23T16:34:24Z")

</div>

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