【发布时间】:2021-06-20 20:43:14
【问题描述】:
我在邮递员上使用 PUT http://localhost:9200/task_idx4 创建了这个索引:
{
"settings": {
"index": {
"sort.field": [ "created_at", "id.raw" ],
"sort.order": [ "desc", "desc" ]
}
},
"mappings": {
"properties": {
"id": { "type": "wildcard", "fields": { "raw": { "type": "keyword" }}},
"current_status": { "type": "keyword" },
"version_rev": { "type": "keyword" },
"tracking_id": { "type": "wildcard" },
"invoice_number": { "type": "keyword" },
"created_at": { "type": "date" }
}
}
}
我尝试使用以下方法将文档插入此索引: 输入 http://localhost:9200/task_idx4/_doc
{
"id": "xxxx",
"current_status": "unassigned",
"version_rev": "xxx",
"tracking_id": "xxx",
"invoice_number": "xxx",
"created_at": "2021-03-23 11:00:05.054595 +00:00"
}
返回的错误是:
{
"error": {
"root_cause": [
{
"type": "cluster_block_exception",
"reason": "index [task_idx4] blocked by: [TOO_MANY_REQUESTS/12/disk usage exceeded flood-stage watermark, index has read-only-allow-delete block];"
}
],
"type": "cluster_block_exception",
"reason": "index [task_idx4] blocked by: [TOO_MANY_REQUESTS/12/disk usage exceeded flood-stage watermark, index has read-only-allow-delete block];"
},
"status": 429
}
如何将文档插入到我的索引中?谢谢
【问题讨论】:
标签: elasticsearch indexing insert