database - Elasticsearch 索引:/fulltext_2/doc/xxxxx 导致阻塞:[FORBIDDEN/12/index 只读/允许删除
问题描述
有人可以告诉我这个错误是什么意思吗?Elasticsearch 索引:/fulltext_2/doc/xxxxx 导致阻塞:[FORBIDDEN/12/index 只读/允许删除我有一个本地 Elasticsearch 服务器。我创建了一个索引 fulltext_2,我想插入一些文档。有一个 PHP 脚本可以做到这一点。如果我有权创建索引,为什么我不能将任何项目插入数据库?到底是怎么回事?感谢您的任何帮助。
解决方案
您可以通过以下方式修复此错误:
curl -XPUT 'localhost:9200/_settings' -H 'Content-Type:application/json' -d '{"index":{"blocks":{"read_only_allow_delete":"false"}}}'
curl -XPUT 'localhost:9200/fulltext_2/_settings' -H 'Content-Type:application/json' -d '{"index":{"blocks":{"read_only_allow_delete":"false"}}}'
推荐阅读
- python - 为什么硒代码在前几个步骤后没有响应?
- sql - SQL 只显示一个订单行的订单。如果更多行不显示任何内容
- javascript - 提交新任务后刷新图表
- kubernetes - 使用 Strimzi 对 Kafka 的外部访问
- openssl - 签名时更改 x509 证书属性(即组织)
- c# - vscode如何启动我的dotnet core项目?
- image - 在颤动中使用交互式查看器时缩放到图像上的特定像素
- select - 如何在 Livewire/Jetstream 中填充选择多个
- javascript - 反应:隐藏和显示使用 map() 显示的数组中的特定元素
- python - 如何去噪并使波形图规则化,(如果您能参考鲁棒峰值检测算法给出答案,我将不胜感激?