Rejecting mapping update to [xxx] as the final mapping would have more than 1 type: [xxx, xx]

Posted xiaolaotou

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Rejecting mapping update to [xxx] as the final mapping would have more than 1 type: [xxx, xx]相关的知识,希望对你有一定的参考价值。

说明:

1、elasticsearch 版本 6.3.1 

2、在同一个index下创建两个type时报错,信息如下:

在创建第二个type:solr时,先前已经在相同索引下创建了一个type:es

[[email protected] ~]# curl -H "Content-Type: application/json" -XPOST localhost:9200/books/solr/1?pretty -d {"title":"Apache Solr 4 Cookbook",
> "published": 2012}{
  "error" : {
    "root_cause" : [
      {
        "type" : "illegal_argument_exception",
        "reason" : "Rejecting mapping update to [books] as the final mapping would have more than 1 type: [solr, es]"
      }
    ],
    "type" : "illegal_argument_exception",
    "reason" : "Rejecting mapping update to [books] as the final mapping would have more than 1 type: [solr, es]"
  },
  "status" : 400
}

3、原因

是由于6.0的版本不允许一个index下面有多个type,并且官方说是在接下来的7.0版本中会删掉type

以上是关于Rejecting mapping update to [xxx] as the final mapping would have more than 1 type: [xxx, xx]的主要内容,如果未能解决你的问题,请参考以下文章

ElasticSearch6.5.0 Rejecting mapping update to [posts] as the final mapping would have more than 1 (

Rejecting mapping update to [xxx] as the final mapping would have more than 1 type: [xxx, xx]

“Rejecting mapping update to [aa] as the final mapping would have more than 1 type: [_doc, employee]

“Rejecting mapping update to [aa] as the final mapping would have more than 1 type: [_doc, employee]

Rejecting Good Engineers?

availableProcessors is already set to [8], rejecting [8]