es遇到的BUG

1、Mapper for [tags] conflicts with existing mapping in other types:\n[mapper [tags] is used by multiple types. Set update_all_types to true to update [fielddata] across all types.]"

(1)解决办法:

PUT /ecommerce/_mapping/product?update_all_types
{
"properties": {
"tags":{
"type":"text",
"fielddata": true
}
}
}

(2)原因:不同类型之间字段修改会有冲突,同一索引的不同类型中,相同名称的字段必须有相同的映射,因为其内部是在同一领域中,此时更新时要指定update_all_types参数

2."reason": "Fielddata is disabled on text fields by default. Set fielddata=true on [tags] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory."

(1)解决办法

PUT /ecommerce/_mapping/product
{
"properties": {
"tags":{
"type":"text",
"fielddata": true
}
}
}

(2)原因:我想想

posted @ 2020-04-15 23:57  达达哦  阅读(1532)  评论(0)    收藏  举报