橡皮、老虎皮、狮子皮哪一个最不好?

增加映射报错

Elasticsearch | 作者 redhat | 发布于2017年03月27日 | 阅读数:7891

我想在现有的index创建个新的type,增加映射
{
"_all": {
"enabled": true,
"store": true
}
}
报如下错误:
{

"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "Mapper for [_all] conflicts with existing mapping in other types: [mapper [_all] has different [store] values]"
}
],
"type": "illegal_argument_exception",
"reason": "Mapper for [_all] conflicts with existing mapping in other types: [mapper [_all] has different [store] values]"
},
"status": 400

}
求大神赐教
已邀请:

redhat

赞同来自:

找到原因了,在同一个索引的不同类型中,相同名称的字段必须有相同的映射,可在更新的时候指定update_all_types参数。在这种情况下将更新所有同一索引同名称的映射参数。

要回复问题请先登录注册