Reputation: 2586
I have an index in elasticsearch 6.x, I want to copy this index to new elastic search 7.
I tried using elasticsearch-dump:v6.24.0
& _reindex
api. I was able to copy the data from the source index, but not all the fields/properties are getting fully copied. It seems to skip few of them.
where am I going wrong ?
This is the _reindex request.
POST _reindex
{
"source": {
"remote": {
"host": "http://prodsystem:9200"
},
"index": "file",
"query": {
"match_all": {}
}
},
"dest": {
"index": "filebkp"
}
}
Upvotes: 0
Views: 573
Reputation: 44
Use elasticsearchdump to dump your's mapping, settings and data of old elasticsearch. After use elasticsearchdump again to restore data to new elasticsearch. https://github.com/elasticsearch-dump/elasticsearch-dump
Upvotes: 1