生产环境迁移,使用reindex操作老数据迁移,同时生产也在往索引写数据,老数据迁移了好几天,由于网络问题导致reindex中断,不想重新reindex,该怎么操作?
使用默认的迁移脚本:
POST _reindex
{
"source": {
"remote": {
"host": "http://otherhost:9200",
"username": "user",
"password": "pass"
},
"index": "source",
"query": {
"match": {
"test": "data"
}
}
},
"dest": {
"index": "dest"
}
}
使用默认的迁移脚本:
POST _reindex
{
"source": {
"remote": {
"host": "http://otherhost:9200",
"username": "user",
"password": "pass"
},
"index": "source",
"query": {
"match": {
"test": "data"
}
}
},
"dest": {
"index": "dest"
}
}
4 个回复
a1158139810
赞同来自:
a1158139810
赞同来自:
mobikarl
赞同来自:
POST _reindex
{
"source": {
"index": "twitter"
},
"dest": {
"index": "new_twitter",
"op_type": "create"
}
}
qiye
赞同来自: