当使用开发工具将数据放入 OpenSearch 中新创建的索引时,响应为 404。
请求无法到达服务器
我正在按照 AWS 教程 使用时间序列数据进行操作。
// Works
PUT analytics-index
// Resolves to 404
PUT analytics-index/_doc/1
{
"foo": "bar",
}
也许我误解了,但我认为你根本不能传递文档ID:
PUT /simple_country_index/_doc/1
{
"country": "Philippines"
}
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "Document ID is not supported in create/index operation request"
}
],
"type": "illegal_argument_exception",
"reason": "Document ID is not supported in create/index operation request"
},
"status": 400
}