一、ElasticSearch创建索引报错:
{
"error": {
"root_cause": [
{
"type": "resource_already_exists_exception",
"reason": "index [app_info_article/iH0woutQSVeEjEDxx1uKsw] already exists",
"index_uuid": "iH0woutQSVeEjEDxx1uKsw",
"index": "app_info_article"
}
],
"type": "resource_already_exists_exception",
"reason": "index [app_info_article/iH0woutQSVeEjEDxx1uKsw] already exists",
"index_uuid": "iH0woutQSVeEjEDxx1uKsw",
"index": "app_info_article"
},
"status": 400
}
二、Postman中报错
三、解决方案(因为ES创建具有幂等性,第一次创建再次创建会报错,需要删除)
四、重新使用PUT不会报错