How to copy an index with 5 shards to an index with 1 shard

Hi,

--
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/088474b4-ed13-4ef0-b7d0-b7e7d2acbf83%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hi Ben,

You'll have to reindex your data. One way to do it is to scroll through the
existing index and make a new one with the same data, then delete the
initial index. Here's a blog post by Zachary with some code that should
help:
http://euphonious-intuition.com/2012/08/reindexing-your-elasticsearch-data-with-scanscroll/

Best regards,
Radu

On Thu, Dec 5, 2013 at 1:24 PM, Ben Ryan argaric@gmail.com wrote:

Hi,

--
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/088474b4-ed13-4ef0-b7d0-b7e7d2acbf83%40googlegroups.com
.
For more options, visit https://groups.google.com/groups/opt_out.

--
Performance Monitoring * Log Analytics * Search Analytics
Solr & Elasticsearch Support * http://sematext.com/

--
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/CAHXA0_0q8agN%2B2063F_DHq9i75_EtCRq4gdMASfa4JavkQGD%2Bg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hi Ben,

+1 to Radu answer. If you are familiar to perl, you can also try this

.
Did reindex a few days ago.

/Jason

On Thu, Dec 5, 2013 at 10:16 PM, Radu Gheorghe
radu.gheorghe@sematext.comwrote:

Hi Ben,

You'll have to reindex your data. One way to do it is to scroll through
the existing index and make a new one with the same data, then delete the
initial index. Here's a blog post by Zachary with some code that should
help:

http://euphonious-intuition.com/2012/08/reindexing-your-elasticsearch-data-with-scanscroll/

Best regards,
Radu

On Thu, Dec 5, 2013 at 1:24 PM, Ben Ryan argaric@gmail.com wrote:

Hi,

--
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/088474b4-ed13-4ef0-b7d0-b7e7d2acbf83%40googlegroups.com
.
For more options, visit https://groups.google.com/groups/opt_out.

--
Performance Monitoring * Log Analytics * Search Analytics
Solr & Elasticsearch Support * http://sematext.com/

--
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/CAHXA0_0q8agN%2B2063F_DHq9i75_EtCRq4gdMASfa4JavkQGD%2Bg%40mail.gmail.com
.

For more options, visit https://groups.google.com/groups/opt_out.

--
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/CAHO4itzVr8LDGYEzN%2BUGHcnFHQ-CUwVP0v_pWaNNeZEgqTGjsg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

This is also really useful - GitHub - elastic/stream2es: Stream data into ES (Wikipedia, Twitter, stdin, or other ESes)

Regards,
Mark Walkom

Infrastructure Engineer
Campaign Monitor
email: markw@campaignmonitor.com
web: www.campaignmonitor.com

On 6 December 2013 07:35, Jason Wee peichieh@gmail.com wrote:

Hi Ben,

+1 to Radu answer. If you are familiar to perl, you can also try this
http://search.cpan.org/~drtech/Elasticsearch-0.76/lib/Elasticsearch/Bulk.pm#reindex() .
Did reindex a few days ago.

/Jason

On Thu, Dec 5, 2013 at 10:16 PM, Radu Gheorghe <radu.gheorghe@sematext.com

wrote:

Hi Ben,

You'll have to reindex your data. One way to do it is to scroll through
the existing index and make a new one with the same data, then delete the
initial index. Here's a blog post by Zachary with some code that should
help:

http://euphonious-intuition.com/2012/08/reindexing-your-elasticsearch-data-with-scanscroll/

Best regards,
Radu

On Thu, Dec 5, 2013 at 1:24 PM, Ben Ryan argaric@gmail.com wrote:

Hi,

--
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/088474b4-ed13-4ef0-b7d0-b7e7d2acbf83%40googlegroups.com
.
For more options, visit https://groups.google.com/groups/opt_out.

--
Performance Monitoring * Log Analytics * Search Analytics
Solr & Elasticsearch Support * http://sematext.com/

--
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/CAHXA0_0q8agN%2B2063F_DHq9i75_EtCRq4gdMASfa4JavkQGD%2Bg%40mail.gmail.com
.

For more options, visit https://groups.google.com/groups/opt_out.

--
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/CAHO4itzVr8LDGYEzN%2BUGHcnFHQ-CUwVP0v_pWaNNeZEgqTGjsg%40mail.gmail.com
.

For more options, visit https://groups.google.com/groups/opt_out.

--
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/CAEM624boB1t0J10sn%3D7XBTHitnnfg7Cj9cX1Z6O4zZvePoK5gg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.