es5.2.2使用postman創建索引時報如下錯誤 "type": "index_not_found_exception",,求教!
body如下:
{
"settings":{
"number_of_shards": 5,
"number_of_replicas": 1
},
"mappings":{
"man":{
"properties":{
"name":{
"type":"text"
},
"country":{
"type":"keyword"
},
"age":{
"type":"integer"
},
"date":{
"type":"date",
"format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis"
}
}
},
"woman":{
}
}
}
報錯如下:
{
? ? "error": {
? ? ? ? "root_cause": [
? ? ? ? ? ? {
? ? ? ? ? ? ? ? "type": "index_not_found_exception",
? ? ? ? ? ? ? ? "reason": "no such index",
? ? ? ? ? ? ? ? "index_uuid": "_na_",
? ? ? ? ? ? ? ? "resource.type": "index_or_alias",
? ? ? ? ? ? ? ? "resource.id": "people",
? ? ? ? ? ? ? ? "index": "people"
? ? ? ? ? ? }
? ? ? ? ],
? ? ? ? "type": "index_not_found_exception",
? ? ? ? "reason": "no such index",
? ? ? ? "index_uuid": "_na_",
? ? ? ? "resource.type": "index_or_alias",
? ? ? ? "resource.id": "people",
? ? ? ? "index": "people"
? ? },
? ? "status": 404
}
求教,多謝!!
2019-11-15
使用put
2019-07-12
先創建people索引