amazon-web-services - AWS Elasticsearch 服务 : Disable index auto creation (auto_create_index)

标签 amazon-web-services elasticsearch amazon-elasticsearch

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/

相关文章:

python-2.7 - 带有标点符号的Elasticsearch查询数据会导致错误的查询结果

laravel - 在Laravel中为Elasticquent创建索引

amazon-web-services - 无法将 cloudfront 添加为 lambda 函数的触发器

amazon-web-services - Elasticsearch 仅匹配完整字段

groovy - 带有Groovy API的Elasticsearch Bool过滤器

javascript - 从 node.js 创建对 AWS ES 实例的有效签名请求

amazon-web-services - Elasticsearch 6.3(AWS)快照还原进度错误: “/_recovery is not allowed”

php - 有没有办法在通过 AWS Kinesis Firehose 插入时手动设置 ElasticSearch 文档 ID?

amazon-web-services - AWS SAM-部署打包的模板时出现 'Encountered unsupported property CodeUri'错误

swift - 如何在 Swift 中调用 AWS Lambda 函数