问答详情
源自:4-1 索引创建

PUT提交时报错

 "type": "illegal_argument_exception",

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


提问者:kyrio 2018-03-31 12:12

个回答

  • codxiao
    2018-06-17 11:22:41

    这是因为你安装了最新版的es,es从6.0以后就不支持一个索引指定多个类型了,默认一个类型且不能修改!所以你添加了两个类型就会报错

  • likeflower950
    2018-05-20 23:20:04

    请问解决了吗?我也报这个错误

    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

    }


  • JKzhao
    2018-05-06 00:25:46

    请问这个问题解决了吗,我也是报这个错误


  • Paranoia3893950
    2018-04-10 15:37:46

    看下你的请求  是不是没有指定类型