# Suggest? Move (Not copy) large volume (around 100m) data from one index to another

**URL:** <https://discuss.elastic.co/t/suggest-move-not-copy-large-volume-around-100m-data-from-one-index-to-another/358902>\
**Category:** Elasticsearch\
**Created:** [May 7, 2024, 8:17am UTC](https://discuss.elastic.co/t/suggest-move-not-copy-large-volume-around-100m-data-from-one-index-to-another/358902 "2024-05-07T08:17:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![samadna](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@samadna](https://discuss.elastic.co/u/samadna)\
**Post date:** [May 7, 2024, 8:17am UTC](https://discuss.elastic.co/t/suggest-move-not-copy-large-volume-around-100m-data-from-one-index-to-another/358902/1 "2024-05-07T08:17:38Z")

</div>

One Time Requirement to move unwanted data (around 200mi) from a large (500mi) index based on certain filter criteria to another (New) index.  
We are planning to write java code as below.

1. Group certain list of ids and run "reindex" command in loops to copy to "NEW" index
2. Group the same list of ids and run "Delete" command in current index

Looking for any "MOVE" kind of solution rather than Copy & Delete approach?

Thank You for any Suggestion.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [May 7, 2024, 8:21am UTC](https://discuss.elastic.co/t/suggest-move-not-copy-large-volume-around-100m-data-from-one-index-to-another/358902/2 "2024-05-07T08:21:02Z")

</div>

> [@samadna](#):
>
> Looking for any "MOVE" kind of solution rather than Copy & Delete approach?

There isn't one. The approach you described is what you need to do.

The only alternative I can think of would be to first clone the index and then delete the appropriate data from the two indices, but as you are moving less than half of the data that may be slower.

---

<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:** [June 4, 2024, 8:21am UTC](https://discuss.elastic.co/t/suggest-move-not-copy-large-volume-around-100m-data-from-one-index-to-another/358902/3 "2024-06-04T08:21:42Z")

</div>

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