# How to Export ALL searching results?

**URL:** <https://discuss.elastic.co/t/how-to-export-all-searching-results/70081>\
**Category:** Elasticsearch\
**Created:** [December 27, 2016, 3:55pm UTC](https://discuss.elastic.co/t/how-to-export-all-searching-results/70081 "2016-12-27T15:55:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Seankiki](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@Seankiki](https://discuss.elastic.co/u/Seankiki)\
**Post date:** [December 27, 2016, 3:55pm UTC](https://discuss.elastic.co/t/how-to-export-all-searching-results/70081/1 "2016-12-27T15:55:35Z")

</div>

I tried to make a GET request to my Elasticsearch server with CURL-command,and the result showed there could be 124739 "hits", but I only got 10 items, as the following snapshot shows, is there any way that I can get or export ALL searching results?

 ![](https://us1.discourse-cdn.com/elastic/original/2X/9/95b257bcaae63e8363cdd9d5b87302b904fa0b3e.png)  
Thanks

---

<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:** [December 27, 2016, 7:30pm UTC](https://discuss.elastic.co/t/how-to-export-all-searching-results/70081/2 "2016-12-27T19:30:01Z")

</div>

It's the way it works by default. Pages of 10 docs.

You can change `size` and `from` parameters but don't use that to extract all docs.  
Use scroll API instead.

---

<div class="post-metadata">

**Author:** ![Seankiki](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@Seankiki](https://discuss.elastic.co/u/Seankiki)\
**Post date:** [December 28, 2016, 12:29am UTC](https://discuss.elastic.co/t/how-to-export-all-searching-results/70081/3 "2016-12-28T00:29:45Z")

</div>

OK, I will try it, Thanks a lot

---

<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:** [January 25, 2017, 12:30am UTC](https://discuss.elastic.co/t/how-to-export-all-searching-results/70081/4 "2017-01-25T00:30:13Z")

</div>

Closed on January 25, 2017, 12:30am UTC

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