标签:efault 修改 tags ldd prope 领域 不同 reason not
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)原因:我想想
标签:efault 修改 tags ldd prope 领域 不同 reason not
原文地址:https://www.cnblogs.com/zdwda/p/12709687.html