错误信息提示:索引只有只读和删除权限
打开终端,运行如下命令:
curl -X PUT -H 'Content-Type:application/json' http://127.0.0.1:9200/_all/_settings -d '
{
"index":{
"blocks": {
"read_only_allow_delete": "false"
}
}
}'
curl -X PUT -H 'Content-Type:application/json' http://127.0.0.1:9200/_all/_settings -d '
{
"index":{
"blocks": {
"read_only_allow_delete": "false"
}
}
}'