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.
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.
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.
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.
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.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.