执行请求:httplocalhost:9200/testAdd
请求方式:PUT
错误返回结果:
{
"error": {
"root_cause": [
{
"type": "invalid_index_name_exception",
"reason": "Invalid index name [testAdd], must be lowercase",
"index_uuid": "_na_",
"index": "testAdd"
}
],
"type": "invalid_index_name_exception",
"reason": "Invalid index name [testAdd], must be lowercase",
"index_uuid": "_na_",
"index": "testAdd"
},
"status": 400
}
原因:
查看反馈结果:"reason": "Invalid index name [testAdd], must be lowercase",
查看请求:httplocalhost:9200/testAdd
错误原因:es要求索引都是小写,testAdd中有大写字母
正确结果:
{
"acknowledged": true,
"shards_acknowledged": true,
"index": "testadd"
}