https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html提到可以通过
禁用自动创建索引Automatic index creation can be disabled by setting action.auto_create_index to false in the config file of all nodes.
如何使用 Java AWSElasticsearchClient 类或以任何其他方式在作为服务的 Elasticsearch 中完成此操作?
最佳答案
目前无法通过控制台执行此操作。配置域屏幕中没有选项(即使在高级选项下)
你能做的是
curl -X PUT "'https://<blah>.ca-central-1.es.amazonaws.com/_cluster/settings" -H 'Content-Type: application/json' -d'
{
"persistent": {
"action.auto_create_index": "false"
}
}
'
按照 https://www.elastic.co/guide/en/elasticsearch/reference/6.4/docs-index_.html#index-creation 中的说明设置集群设置
关于amazon-web-services - AWS Elasticsearch 服务 : Disable index auto creation (auto_create_index),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33491042/