Index mappings not preserved in backups
Problem
- Elasticsearch indices have their nice mappings.
- We only backup index data, we ignore the mapping.
- When we restore the index data, some implicit mapping is created.
- That mapping may not be necessarily correct.
- Problem.
Solution
- elasticsearch-dump can dump/restore mappings.
- We should do that.
- Maybe we should also do the same with other dump types: settings, analyzer, alias.