# How to create index based on the contents of existing index?

**URL:** <https://discuss.elastic.co/t/how-to-create-index-based-on-the-contents-of-existing-index/37658>\
**Category:** Elasticsearch\
**Created:** [December 21, 2015, 4:31am UTC](https://discuss.elastic.co/t/how-to-create-index-based-on-the-contents-of-existing-index/37658 "2015-12-21T04:31:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kartheek91](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@kartheek91](https://discuss.elastic.co/u/kartheek91)\
**Post date:** [December 21, 2015, 4:31am UTC](https://discuss.elastic.co/t/how-to-create-index-based-on-the-contents-of-existing-index/37658/1 "2015-12-21T04:31:13Z")

</div>

Can you please suggest how to create index based on existing index.

---

<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:** [December 21, 2015, 4:55am UTC](https://discuss.elastic.co/t/how-to-create-index-based-on-the-contents-of-existing-index/37658/2 "2015-12-21T04:55:57Z")

</div>

You need to pull the data out and then out it into a new one.  
You can use one of the clients, or Logstash to do this.

If you want more information, you will need to give us a better idea on what you are doing.

---

<div class="post-metadata">

**Author:** ![kartheek91](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@kartheek91](https://discuss.elastic.co/u/kartheek91)\
**Post date:** [December 21, 2015, 4:57am UTC](https://discuss.elastic.co/t/how-to-create-index-based-on-the-contents-of-existing-index/37658/3 "2015-12-21T04:57:33Z")

</div>

I need a replica of that index to load synonyms.

---

<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:** [July 5, 2017, 11:29pm UTC](https://discuss.elastic.co/t/how-to-create-index-based-on-the-contents-of-existing-index/37658/4 "2017-07-05T23:29:41Z")

</div>


