Hello everyone,
I am using elastic search 1.4.2 and trying to work out a way on back up and
restore operation of an index.
Objective:
An index is already present on a system with some mapping. During system
upgrade, mapping needs to be updated, which is not possible easily in
elastic search without reindexing.
So here's one path that I have chosen.
Take backup of existing index on file system
Delete existing index
Create an index with same name but with new mapping
Restore the (backed up) index. - Issue: When restoring index here, it
also overwrites mapping to previous state, the way it was defined on
original index. Is there a way to restore only the data and not
settings/mapping. Or is there a way to restore index explicitly with new
mappings?
Other option that I see is to create restore into a new index and then
perform bulk indexing on original index name. But that seems too much to me
just to perform data backup and restore.
Index is expected to have about 80 millions of records
Hello everyone,
I am using Elasticsearch 1.4.2 and trying to work out a way on back up
and restore operation of an index.
Objective:
An index is already present on a system with some mapping. During system
upgrade, mapping needs to be updated, which is not possible easily in
Elasticsearch without reindexing.
So here's one path that I have chosen.
Take backup of existing index on file system
Delete existing index
Create an index with same name but with new mapping
Restore the (backed up) index. - Issue: When restoring index here, it
also overwrites mapping to previous state, the way it was defined on
original index. Is there a way to restore only the data and not
settings/mapping. Or is there a way to restore index explicitly with new
mappings?
Other option that I see is to create restore into a new index and then
perform bulk indexing on original index name. But that seems too much to me
just to perform data backup and restore.
Index is expected to have about 80 millions of records
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.