“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

猜你喜欢

转载自blog.csdn.net/yabignshi/article/details/120882444
今日推荐