首页 > 其他 > 详细

es遇到的BUG

时间:2020-04-16 00:27:48      阅读:225      评论:0      收藏:0      [点我收藏+]

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)原因:我想想

es遇到的BUG

原文:https://www.cnblogs.com/zdwda/p/12709687.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!