# How to create new index from old index fields

**URL:** <https://discuss.elastic.co/t/how-to-create-new-index-from-old-index-fields/141174>\
**Category:** Elasticsearch\
**Created:** [July 23, 2018, 12:30pm UTC](https://discuss.elastic.co/t/how-to-create-new-index-from-old-index-fields/141174 "2018-07-23T12:30:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cool\_arun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cool_arun/32/70465_2.png) [@cool\_arun](https://discuss.elastic.co/u/cool_arun)\
**Post date:** [July 23, 2018, 12:30pm UTC](https://discuss.elastic.co/t/how-to-create-new-index-from-old-index-fields/141174/1 "2018-07-23T12:30:56Z")

</div>

i'm trying to create new index with data from the existing index , could you suggest me the best approach to do that.

EXISTING SAMPLE INDEX STRUCTURE (INDEX-1):  
{  
"name": "arun",  
"my\_list: ["john", "peter", "julie"]  
}

RESULT NEW INDEX STRUCTURE (INDEX-2):  
{  
"name": "john",  
"my\_list: ["john", "peter", "julie"]  
}  
{  
"name": "peter",  
"my\_list: ["john", "peter", "julie"]  
}  
{  
"name": "julie",  
"my\_list: ["john", "peter", "julie"]  
}

basically i want all of the my\_list in INDEX1 needs to be individual document in INDEX2.

---

<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:** [August 20, 2018, 12:31pm UTC](https://discuss.elastic.co/t/how-to-create-new-index-from-old-index-fields/141174/2 "2018-08-20T12:31:11Z")

</div>

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