版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/gwd1154978352/article/details/82855837
ElasticSearch汇总请查看:ElasticSearch教程——汇总篇
ElasticSearch返回的异常为
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "Rejecting mapping update to [ecommerce] as the final mapping would have more than 1 type: [product, goods]"
}
],
"type": "illegal_argument_exception",
"reason": "Rejecting mapping update to [ecommerce] as the final mapping would have more than 1 type: [product, goods]"
},
"status": 400
}
原因:6.0的版本不允许一个index下面有多个type,并且官方说是在接下来的7.0版本中会删掉type