Yes it is. There are unfortunately no APIs yet to reindex content from an
index to a new index. There is an issue open for that[1] which is currently
blocked by the fact that we need a better infrastructure to handle
long-running tasks in a cluster.
However, it is still possible to reindex externally by using the
scan/scroll and bulk-update APIs. Some our our client libraries even
provide easy-to-use helper methods to do so. For instance see the
elasticsearch.helpers.reindex[2] helper from our python client.
Scan\scroll is indeed the way to go. The only thing I can add is that you
should take the opportunity to run sanity checks on the documents like
filtering out fields that were in the old index but shouldn't be copied to
the new one.
On Oct 19, 2014 5:24 PM, "Adrien Grand" adrien.grand@elasticsearch.com
wrote:
Yes it is. There are unfortunately no APIs yet to reindex content from an
index to a new index. There is an issue open for that[1] which is currently
blocked by the fact that we need a better infrastructure to handle
long-running tasks in a cluster.
However, it is still possible to reindex externally by using the
scan/scroll and bulk-update APIs. Some our our client libraries even
provide easy-to-use helper methods to do so. For instance see the
elasticsearch.helpers.reindex[2] helper from our python client.
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.