How to clone an index with all it's documents

I'm looking for a way to clone an entire index with all it's documents into
a new index with a different name. What is the fast/efficient/elegant way
to do this?

Thanks :slight_smile:

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/c9e39709-35a9-4425-bdc0-031363cce28c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Snapshot and restore.

Best.

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 21 nov. 2014 à 16:53, Ori P shalti@gmail.com a écrit :

I'm looking for a way to clone an entire index with all it's documents into a new index with a different name. What is the fast/efficient/elegant way to do this?

Thanks :slight_smile:

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/c9e39709-35a9-4425-bdc0-031363cce28c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/C437F302-F289-4553-B546-76D6E7D3ACEA%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.

I've created a simple script to do the same. Below is the Github url

On Friday, November 21, 2014 9:23:31 PM UTC+5:30, Ori P wrote:

I'm looking for a way to clone an entire index with all it's documents
into a new index with a different name. What is the fast/efficient/elegant
way to do this?

Thanks :slight_smile:

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/6ac7d34e-d74d-4a17-82a2-22d15a4ce00f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.