![](/img/trans.png)
[英]index json data into elasticsearch using PostMan client as attachment
[英]elasticsearch blocks inserting data using PostMan
我創建了一個新索引,並進行了以下設置:
"settings": {
"index": {
"number_of_shards": "5",
"blocks": {
"read_only_allow_delete": "false" // null was tested also
},
"analysis": {
"filter": {
"autocomplete_filter": {
"type": "edge_ngram",
"min_gram": "1",
"max_gram": "20"
}
},
"analyzer": {
"autocomplete": {
"filter": [
"lowercase",
"autocomplete_filter"
],
"type": "custom",
"tokenizer": "standard"
}
}
},
"number_of_replicas": "2"
}
}
現在,當我首次使用郵遞員為新文檔建立索引時,它已正確建立了索引,但是下一個文檔發出了錯誤,在出現錯誤后,我發送了GET請求,並注意到設置變為:
"settings": {
"index": {
"number_of_shards": "5",
"blocks": {
"read_only_allow_delete": "true"
},
"analysis": {
"filter": {
"autocomplete_filter": {
"type": "edge_ngram",
"min_gram": "1",
"max_gram": "20"
}
},
"analyzer": {
"autocomplete": {
"filter": [
"lowercase",
"autocomplete_filter"
],
"type": "custom",
"tokenizer": "standard"
}
}
},
"number_of_replicas": "2"
}
}
因此,在對第一個文檔建立索引后,如何將"read_only_allow_delete"
設置為true
。 創建索引后,我驗證了設置,它不是false
錯誤:
403 - {"error":{"root_cause":[{"type":"cluster_block_exception","reason":"blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"}],"type":"cluster_block_exception","reason":"blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"},"status":403}
檢查您的Elasticsearch集群磁盤空間是否不足。 查看洪水階段水印設置此頁
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.