亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

PUT提交時報錯

?"type": "illegal_argument_exception",

?"reason": "Rejecting mapping update to [people] as the final mapping would have more than 1 type: [woman, man]"


正在回答

4 回答

這是因為你安裝了最新版的es,es從6.0以后就不支持一個索引指定多個類型了,默認一個類型且不能修改!所以你添加了兩個類型就會報錯

5 回復 有任何疑惑可以回復我~
#1

kennethwoman

這個有解決方法嗎
2018-10-09 回復 有任何疑惑可以回復我~

請問解決了嗎?我也報這個錯誤

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

}


0 回復 有任何疑惑可以回復我~
#1

codxiao

這是因為你安裝了最新版的es,es從6.0以后就不支持一個索引指定多個類型了,默認一個類型且不能修改!所以你添加了兩個類型就會報錯
2018-06-17 回復 有任何疑惑可以回復我~

請問這個問題解決了嗎,我也是報這個錯誤


0 回復 有任何疑惑可以回復我~

看下你的請求? 是不是沒有指定類型

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

PUT提交時報錯

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號