您当前的位置: 首页 > 

qq_34412985

暂无认证

  • 0浏览

    0关注

    1061博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

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

qq_34412985 发布时间:2019-10-31 17:41:31 ,浏览量:0

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

[root@master ~]# 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

关注
打赏
1653291990
查看更多评论
立即登录/注册

微信扫码登录

0.0501s