-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Labels
:Core/Infra/SettingsSettings infrastructure and APIsSettings infrastructure and APIs:Data Management/Indices APIsAPIs to create and manage indices and templatesAPIs to create and manage indices and templates>buggood first issuelow hanging fruitlow hanging fruit
Description
Elasticsearch version (bin/elasticsearch --version):
7.0.0-beta1
OS version (uname -a if on a Unix-like system):
docker
Description of the problem including expected versus actual behavior:
Cannot apply settings to all indices
Steps to reproduce:
curl -X PUT \
http://localhost:9200/_settings \
-H 'Content-Type: application/json' \
-d '{
"index.blocks.read_only_allow_delete": null
}'Returns the error below :
Provide logs (if relevant):
{
"error": {
"root_cause": [
{
"type": "index_not_found_exception",
"reason": "no such index [null]",
"resource.type": "index_expression",
"resource.id": "_all"
}
],
"type": "index_not_found_exception",
"reason": "no such index [null]",
"resource.type": "index_expression",
"resource.id": "_all"
},
"status": 404
}Refer to doc : https://www.elastic.co/guide/en/elasticsearch/reference/7.0/indices-update-settings.html
The REST endpoint is /_settings (to update all indices) or {index}/_settings to update one (or more) indices settings. The body of the request includes the updated settings, for example:
Metadata
Metadata
Assignees
Labels
:Core/Infra/SettingsSettings infrastructure and APIsSettings infrastructure and APIs:Data Management/Indices APIsAPIs to create and manage indices and templatesAPIs to create and manage indices and templates>buggood first issuelow hanging fruitlow hanging fruit