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

原文地址:https://www.cnblogs.com/yfb918/p/10690103.html

时间: 2024-08-05 12:41:40

Rejecting mapping update to [xxx] as the final mapping would have more than 1 type: [xxx, xx]的相关文章

An internal error occurred during: "J2EE Component Mapping Update".

1.错误描述 An internal error occurred during: "J2EE Component Mapping Update". java.lang.NullPointerException 2.错误原因 3.解决办法 版权声明:本文为博主原创文章,未经博主允许不得转载.

An internal error occurred during: "J2EE Component Mapping Update".

1.错误描写叙述 An internal error occurred during: "J2EE Component Mapping Update". java.lang.NullPointerException 2.错误原因 从网上的一个SVN地址:http://code.taobao.org/svn/bigfoot_v2.检出一个项目完后,打开该项目,出现这个错误. 这是一个内部错误,在从SVN检出项目或更新时.eclipse报的一个错 3.解决的方法 (1)重新启动eclips

Eclipse报错An internal error occurred during: "J2EE Component Mapping Update". java.lang.NullPointerException

Eclipse每次打开.java文件时,报错信息如下: An internal error occurred during: "J2EE Component Mapping Update". java.lang.NullPointerException 解决办法: 1 找到工作区该项目目录,删除.settings文件夹. 2 Eclipse删除该项目(本地项目文件不要删除). 3 重启Eclipse,重新导入该项目.

真机测试 Thnetwork connection was lost. No profiles for 'xxx' were found: Xcode couldn't find a provisioning profile matching 'xxx'. Code signing is required for product type

最近接手了一个新项目,是从外包接手的,结果出现了很多问题,真的很崩溃,崩溃,吐槽一下 问题一:一直请求不到数据,因为外包只做了一版,上架的这个版本是可以显示数据的,但是给我的项目是没有数据的,因为并没有给文档,接口什么的都得自己一遍遍测试,注释也真的很少,到最后发现是接口问题,但是我在浏览器中测试也可以的,为什么呢?一个很重要的原因:我没有加http://,在浏览器中输入后面的接口是可以显示json数据的,就是忘了加http://... 问题二:真机测试出现标题上描述的问题 因为项目中有推送的S

C#:Could not load type 'XXX.Global'

 今天,在从现网代码,转为本地调试的时候,在web.config改过接口之后,忽然发现接口页面弹出这种未加载错误: c#,未能加载类型 Could not load type 'XXX.Global' 很是纳闷,不解,项目没有包含接口么,不对啊,已经包含进去啦,点击http://localhost:5320/端口,同样此错误,很是不解. 然后在网上找了找,发现大部分解决都是删除global文件,然后重新加载.也有的Rebuld成功的. 我这个地方是rebuld不成功,global文件删除倒是

Receiver type 'XXX' for instance message is a forward declaration

今天遇到这个错误.刚开始字体太大,没显示全,后来调小字体之后看到了完整提示信息: 之后就忽然想起没引入相关的类,添加 #import "RDVTabBarItem.h" 就行了. Receiver type 'XXX' for instance message is a forward declaration

The type XXX cannot be resolved. It is indirectly referenced from required .class files错误.....

遇到The type XXX cannot be resolved. It is indirectly referenced from required .class files错误.....,查找的解决办法如下: 一: 错误提示: It is indirectly referenced from required .class file 错误的解决 原因:你导入得jar依赖另一个jar 解决方法:导入缺失的包

The type xxx cannot be resolved. It is indirectly referenced from required .class files

项目A中引入一个jar包B,在项目A中调用项目B,出现如下错误提示: 大致意思是:这上面所需的包是间接引用的,即A项目调用B项目,B项目又引用了另外一个包C,而这个包现在不在你的A项目的引用中. 所以你需要做的就是把jar包C引入至项目A中. The type xxx cannot be resolved. It is indirectly referenced from required .class files

spring注入时报错::No qualifying bean of type 'xxx.xxMapper'

做一个小项目,因为有 baseService,所以偷懒就没有写单独的每个xxService接口,直接写的xxServiceImpl,结果在service实现类中注入Mapper的时候,用的 @Autowired, 结果,junit一启动,就报错误:Java.lang.illegalStateException:Failed to load ApplicationContext 具体是在 创建bean的时候报:No qualifying bean of type 'xxx.xxMapper' ab