# The fastest way to export to Text

**URL:** <https://discuss.elastic.co/t/the-fastest-way-to-export-to-text/299849>\
**Category:** Elasticsearch\
**Created:** [March 16, 2022, 10:23am UTC](https://discuss.elastic.co/t/the-fastest-way-to-export-to-text/299849 "2022-03-16T10:23:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xodn0812](https://avatars.discourse-cdn.com/v4/letter/x/c5a1d2/32.png) [@xodn0812](https://discuss.elastic.co/u/xodn0812)\
**Post date:** [March 16, 2022, 10:23am UTC](https://discuss.elastic.co/t/the-fastest-way-to-export-to-text/299849/1 "2022-03-16T10:23:24Z")

</div>

Hi.  
I want to create a function to export logs stored in Elasticsearch to Text using Java APIs.  
Currently, I have used the Scroll API to implement it, but I want it to be more than twice as fast.  
Is the Scroll API the fastest way to get a large amount of searched data into Text? (Slice is also in use)

---

<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 13, 2022, 10:23am UTC](https://discuss.elastic.co/t/the-fastest-way-to-export-to-text/299849/2 "2022-04-13T10:23:53Z")

</div>

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