Reindex from the existing index

Hi,
Is there a way to build a new index from the existing index ?
Thank you,
Vladi

This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this on behalf of the
addressee you must not use, copy, disclose or take action based on this
message or any information herein.
If you have received this message in error, please advise the sender
immediately by reply email and delete this message. Thank you.

--
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/9f51ce24-b826-4bcb-8d2c-ab18732e8016%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

If you Search on the web site for reindex, you will find this:
http://www.elastic.co/guide/en/elasticsearch/guide/current/reindex.html

David

Le 1 avr. 2015 à 06:15, Vladi Feigin vladif@liveperson.com a écrit :

Hi,
Is there a way to build a new index from the existing index ?
Thank you,
Vladi

This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this on behalf of the
addressee you must not use, copy, disclose or take action based on this
message or any information herein.
If you have received this message in error, please advise the sender
immediately by reply email and delete this message. Thank you.

--
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/9f51ce24-b826-4bcb-8d2c-ab18732e8016%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/A8B19DE8-AE00-4482-BB59-09993806309D%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.

On Wednesday, April 01, 2015 at 06:15 CEST,
Vladi Feigin vladif@liveperson.com wrote:

Is there a way to build a new index from the existing index ?

Elasticsearch doesn't ship with a tool for this purpose nor
a one-stop-shop API, but there are several wrappers of the
bulk reindexing API. I've successfully used the es-reindex
tool and the elasticsearch.helpers.reindex() function from
the official Python client for ES.


http://elasticsearch-py.readthedocs.org/en/master/helpers.html

--
Magnus Bäck | Software Engineer, Development Tools
magnus.back@sonymobile.com | Sony Mobile Communications

--
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/20150401062112.GC3582%40seldlx20533.corpusers.net.
For more options, visit https://groups.google.com/d/optout.

install elasticsearch python plugin

from elasticsearch import Elasticsearch
form elasticsearch.helpers import reindex
es = Elasticsearch(["es.node1"])

reindex(es, "source_index", "target_index")

this will reindex from source_index to target_index, also keep in mind that
the mappings won't be transferred.

you can specify another target cluster as well.. and a query so that
documents that only satisfy that query in source index will be reindexed
into the target index.

more
documentation https://elasticsearch-py.readthedocs.org/en/master/helpers.html#elasticsearch.helpers.reindex

On Wednesday, April 1, 2015 at 11:52:26 AM UTC+5:30, Magnus Bäck wrote:

On Wednesday, April 01, 2015 at 06:15 CEST,
Vladi Feigin <vla...@liveperson.com <javascript:>> wrote:

Is there a way to build a new index from the existing index ?

Elasticsearch doesn't ship with a tool for this purpose nor
a one-stop-shop API, but there are several wrappers of the
bulk reindexing API. I've successfully used the es-reindex
tool and the elasticsearch.helpers.reindex() function from
the official Python client for ES.

https://github.com/geronime/es-reindex
http://elasticsearch-py.readthedocs.org/en/master/helpers.html

--
Magnus Bäck | Software Engineer, Development Tools
magnu...@sonymobile.com <javascript:> | Sony Mobile Communications

--
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/d840f503-2e41-4ea2-afc3-4a1135b873ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.