I tried to create the new index according to what I need, reindex according to the old, but it didn't work as expected and the data was not copied together
below the old index:
mappings: {
properties: {
donor: {
type: "nested",
properties: {
id: { type: "integer" },
dateOfBirth: { type: "date" },
profile: {
type: "nested",
properties: {
...
},
},
},
},
}
}
below the desired index:
mappings: {
properties: {
id: { type: "integer" },
dateOfBirth: { type: "date" },
profile: {
type: "nested",
properties: {
...
},
},
},
}
当您更改对象结构时,您需要创建一个迁移程序来检索旧“文档结构”/对象中的所有文档,更改“文档结构”/对象并将它们插入新索引中。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.