异常如下
Rejecting mapping update to [] as the final mapping would have more than 1 type
因为 从6.0后,index里建多个types 不被支持了。
Multiple mapping types are not supported in indices created in 6.0

参考
https://discuss.elastic.co/t/unable-to-create-index-with-more-that-1-type-in-6-x/106089
https://www.elastic.co/guide/en/elasticsearch/reference/6.0/breaking-changes-6.0.html
网友评论