Reputation: 81
I have 3 nodes, lets say node1, node1, and node3
i have succesfully restored the data from my nodes, but the data decrease fro, 380k data to 77k data.
this is what i get from backup data
"hits": {
"total": 76908,
"max_score": 1,
and this is my data
"hits": {
"total": 384959,
"max_score": 1,
how can i get all my data?
i want to migrate my ES Data to another VM / IP / Instances
Upvotes: 0
Views: 40
Reputation: 3290
For this, firstly you have to create the index with same mapping, then You can use Reindex API to copy your data to the new index.
Here is, How you can do the same:
POST _reindex
{
"source": {
"index": "sourceIndex"
},
"dest": {
"index": "destIndex"
}
}
You can take the reference from the below Link:
https://www.elastic.co/guide/en/elasticsearch/reference/2.4/docs-reindex.html
Hope this will solve your problem.
Upvotes: 2