https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html提到可以通过
禁用自动创建索引可以通过在所有节点的配置文件中将action.auto_create_index设置为false来禁用自动索引创建。
如何在Elasticsearch中使用Java AWSElasticsearchClient类或以任何其他方式将其作为服务来完成?
答案 0 :(得分:0)
目前无法通过控制台执行此操作。在“配置域”屏幕中没有任何选项(即使在“高级”选项下)
你能做的是
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
中的说明设置群集设置