How to copy some ElasticSearch data to a new index

后端 未结 6 2086
渐次进展
渐次进展 2020-12-23 09:39

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\": \"         


        
6条回答
  •  生来不讨喜
    2020-12-23 10:09

    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
    

提交回复
热议问题