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

Posted 雅冰石

tags:

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

我往employee这个type里插入数据的时候报错:

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

原因是elastic search在6.x版本调整了, 一个index只能存储一种type。

https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html
Each index has one mapping type which determines how the document will be indexed.


————————————————
版权声明:本文为CSDN博主「muzizongheng」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/muzizongheng/article/details/85257078

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

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]