# Effient way to copy index

**URL:** <https://discuss.elastic.co/t/effient-way-to-copy-index/218365>\
**Category:** Elasticsearch\
**Created:** [February 7, 2020, 2:47pm UTC](https://discuss.elastic.co/t/effient-way-to-copy-index/218365 "2020-02-07T14:47:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhushan\_badgujar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhushan_badgujar/32/62288_2.png) [@bhushan\_badgujar](https://discuss.elastic.co/u/bhushan_badgujar)\
**Post date:** [February 7, 2020, 2:47pm UTC](https://discuss.elastic.co/t/effient-way-to-copy-index/218365/1 "2020-02-07T14:47:45Z")

</div>

We have two index

1. parent\_index
2. child\_index

My task is to create new\_child\_index with some fields from parent\_index.

Parent Index =\>  
{  
"\_parent": {  
"type": "parent"  
},  
"properties": {  
"id" : {  
"id" : "String"  
}  
"First\_name": {  
"type": "string",  
},  
"last\_name": {  
"type": "string",  
},  
"family": {  
"type": "string",  
}  
...  
}  
}  
Child Index  
{  
"\_Child": {  
"type": "child"  
},  
"properties": {  
"id" : {  
"id" : "String"  
},  
"parent\_id" : {  
"id" : "String"  
},  
"First\_name": {  
"type": "string",  
},  
"last\_name": {  
"type": "string",  
},  
"family": {  
"type": "string",  
}  
...  
}  
}

New\_Child\_Index  
{  
"\_Child": {  
"type": "parent"  
},  
"properties": {  
"id": {  
"id": "String"  
},  
"parent\_id": {  
"id": "String"  
},  
"parent\_first\_name": {  
"type": "String"  
},  
"parent\_last\_name": {  
"type": "String"  
},  
"First\_name": {  
"type": "string"  
},  
"last\_name": {  
"type": "string"  
},  
"family": {  
"type": "string"  
}

```
}

```

}

Here parent has 11M of documents and the Child has 175M documents. (2 TB data)

How can I efficiently copy the data from the parent and child index to a new child index?

---

<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:** [March 6, 2020, 2:47pm UTC](https://discuss.elastic.co/t/effient-way-to-copy-index/218365/2 "2020-03-06T14:47:51Z")

</div>

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