构建新索引和数据迁移
发布时间
阅读量:
阅读量
在原有索引建立之后,其内容将无法进行任何更改,唯有通过构建全新的索引,并将原有数据迁移至新索引中,方可实现更新操作。
生成新索引
PUT gulimall_product
{
"mappings" : {
"properties" : {
"attrs" : {
"type" : "nested",
"properties" : {
"attrId" : {
"type" : "long"
},
"attrName" : {
"type" : "keyword"
},
"attrValue" : {
"type" : "keyword"
}
}
},
"brandId" : {
"type" : "long"
},
"brandImg" : {
"type" : "keyword"
},
全部评论 (0)
还没有任何评论哟~
