How to copy some ElasticSearch data to a new index

后端 未结 6 2122
渐次进展
渐次进展 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 09:51

    To reindex specific type from source index to destination index type syntax is

    POST _reindex/
     {
     "source": {
     "index": "source_index",
     "type": "source_type",
     "query": {
      // add filter criteria
       }
     },
     "dest": {
      "index": "dest_index",
      "type": "dest_type"
      }
    }
    

提交回复
热议问题