码迷,mamicode.com
首页 > 其他好文 > 详细

es遇到的BUG

时间:2020-04-16 00:30:12      阅读:165      评论:0      收藏:0      [点我收藏+]

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

es遇到的BUG

标签:efault   修改   tags   ldd   prope   领域   不同   reason   not   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!