I'm trying to find a way to recreate all index mappings from when I use GET /_all/_mapping
or iterate over each index.
For creating development cluster purposes.
I have tried to use the json I get from get all mappings with Elasticsearch nodejs client, but putting the mappings
object into client.index
with specifying index name and mappings object as a mappings.
But it still didn't worked out as expected.
Is there a better way to "backup" mappings of indexes and recreating them ?