【发布时间】:2019-09-28 16:48:34
【问题描述】:
curl -H "Content-Type: application/json" -XPOST 'https://mydomain/' -d @cps_index.json
这个 JSON 文件中的内容
{
"settings": {
"mappings": {
"_source": {
"enabled": false
},
"cps": {
"properties": {
"firstName": {
"type": "text"
},
"lastname": {
"type": "text"
},
"email": {
"type": "text"
},
"mobileNumber": {
"type": "keyword"
},
"employeeId": {
"type": "keyword"
}
}
}
}
}
}
响应消息失败 {"error":"URI [/] 和方法 [POST] 的 HTTP 方法不正确,允许:[GET, HEAD, DELETE]","status":405 }
【问题讨论】:
标签: elasticsearch curl