PUT提交時報錯
?"type": "illegal_argument_exception",
?"reason": "Rejecting mapping update to [people] as the final mapping would have more than 1 type: [woman, man]"
?"type": "illegal_argument_exception",
?"reason": "Rejecting mapping update to [people] as the final mapping would have more than 1 type: [woman, man]"
2018-03-31
舉報
2018-06-17
這是因?yàn)槟惆惭b了最新版的es,es從6.0以后就不支持一個索引指定多個類型了,默認(rèn)一個類型且不能修改!所以你添加了兩個類型就會報錯
2018-05-20
請問解決了嗎?我也報這個錯誤
http://localhost:9200/
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
}
2018-05-06
請問這個問題解決了嗎,我也是報這個錯誤
2018-04-10
看下你的請求? 是不是沒有指定類型