มันคือการ copy index นี่แหล่ะ และสามารถที่จะ copy ข้ามเซิฟเว่อ ได้ด้วย ซึ่งดีต่อการย้ายข้อมูล หรือ backup นั่นเอง
มันคือการ copy index นี่แหล่ะ และสามารถที่จะ copy ข้ามเซิฟเว่อ ได้ด้วย ซึ่งดีต่อการย้ายข้อมูล หรือ backup นั่นเอง
จำเป็นต้องเพิ่ม reindex.remote.whitelist
ใน env
ของมันด้วย ตัวอย่างเช่น
-e reindex.remote.whitelist=remote-elasticsearch.un-no.com:443
POST https://my-elasticsearch.un-no.com/_reindex
{
"source": {
"remote": {
"host": "https://remote-elasticsearch.un-no.com:443",
"username": "username",
"password": "password"
},
"index": "chat_2021*"
},
"dest": {
"index": "chat_2021-old"
}
}