"type": "illegal_argument_exception",
"reason": "Rejecting mapping update to [people] as the final mapping would have more than 1 type: [woman, man]"
这是因为你安装了最新版的es,es从6.0以后就不支持一个索引指定多个类型了,默认一个类型且不能修改!所以你添加了两个类型就会报错
请问解决了吗?我也报这个错误
book/novel/_mappings
POST方式
{
"novel": {
"properties": {
"title": {
"type": "text"
}
}
}
}
错误信息
{
"error": {},
{}
"type": "illegal_argument_exception",
"reason": "Rejecting mapping update to [book] as the final mapping would have more than 1 type: [novel_mappings, novel]"
"root_cause": [],
"type": "illegal_argument_exception",
"reason": "Rejecting mapping update to [book] as the final mapping would have more than 1 type: [novel_mappings, novel]"
"status": 400
}
请问这个问题解决了吗,我也是报这个错误
看下你的请求 是不是没有指定类型