Let\'s say I have movie data in my ElasticSearch and I created them like this:
curl -XPUT \"http://192.168.0.2:9200/movies/movie/1\" -d\'
{
\"title\": \"
The best approach would be to use elasticsearch-dump tool https://github.com/taskrabbit/elasticsearch-dump.
The real world example I used :
elasticdump \
--input=http://localhost:9700/.kibana \
--output=http://localhost:9700/.kibana_read_only \
--type=mapping
elasticdump \
--input=http://localhost:9700/.kibana \
--output=http://localhost:9700/.kibana_read_only \
--type=data