elasticsearch 索引复制(含数据)
确保elasticsearch version 2.x
苦逼的等了几年
POST http://localhost:9200/_reindex
{
"source": {
"index": "index_test_001"
},
"dest": {
"index": "new_index_test_001",
"op_type": "create"
}
}
详细参考: https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html
谢谢
定,精,简,俭