# The best way to export specific data to lucene file like snapshot file

**URL:** <https://discuss.elastic.co/t/the-best-way-to-export-specific-data-to-lucene-file-like-snapshot-file/286557>\
**Category:** Elasticsearch\
**Created:** [October 13, 2021, 1:54am UTC](https://discuss.elastic.co/t/the-best-way-to-export-specific-data-to-lucene-file-like-snapshot-file/286557 "2021-10-13T01:54:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lec\_ssmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lec_ssmi/32/70666_2.png) [@lec\_ssmi](https://discuss.elastic.co/u/lec_ssmi)\
**Post date:** [October 13, 2021, 1:54am UTC](https://discuss.elastic.co/t/the-best-way-to-export-specific-data-to-lucene-file-like-snapshot-file/286557/1 "2021-10-13T01:54:47Z")

</div>

I want to export some data according to specific condititons. But the rest api has a bad performance. In order to export the file as soon as possible, I can use snapshot. But snapshot can only be exported incrementally, which does not meet my requirements. Any other way ?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 13, 2021, 2:01am UTC](https://discuss.elastic.co/t/the-best-way-to-export-specific-data-to-lucene-file-like-snapshot-file/286557/2 "2021-10-13T02:01:22Z")

</div>

I don't believe so.

Why is the REST API bad?

---

<div class="post-metadata">

**Author:** ![lec\_ssmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lec_ssmi/32/70666_2.png) [@lec\_ssmi](https://discuss.elastic.co/u/lec_ssmi)\
**Post date:** [October 13, 2021, 2:18am UTC](https://discuss.elastic.co/t/the-best-way-to-export-specific-data-to-lucene-file-like-snapshot-file/286557/3 "2021-10-13T02:18:08Z")

</div>

Compared with snapshot, the throughput of rest api is too small.

---

<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:** [November 10, 2021, 2:18am UTC](https://discuss.elastic.co/t/the-best-way-to-export-specific-data-to-lucene-file-like-snapshot-file/286557/4 "2021-11-10T02:18:11Z")

</div>

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