Reputation: 397
I have a Hourly Snapshot which takes the backup of ES indices and the Data. Now I am trying to restore the snapshot on a new cluster, if I do restore, restore is successfull. But the restore is adding _meta and _doc fields to the mappings which is causing the structure to be different.
Index Mapping Before Snapshot
{
"mappings": {
"dynamic": "true",
"properties": {}
}
}
Index Mapping After Restore:
{
"mappings": {
"enabled": false,
"_meta": {
"_doc": {
"dynamic": "true",
"properties": {}
}
}
}
}
This change is causing my code to break, My Code looks for Properties under the mappings but after the restore it is under _doc which is different.
Source/Snapshot Cluster and Destination/Restore Cluster Elasticsearch versions is same.
Upvotes: 0
Views: 70