解决elasticsearch索引只读

插入或更新数据时经常碰到以下问题:

FORBIDDEN/12/index read-only / allow delete (api)

解决elasticsearch索引只读

curl -XPUT -H "Content-Type: application/json" http://localhost:9200/_all/_settings -d '{"index.blocks.read_only_allow_delete": null}'

你可能感兴趣的:(解决elasticsearch索引只读)