-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Labels
:Core/Infra/SettingsSettings infrastructure and APIsSettings infrastructure and APIs
Description
Here is example about retriving filtered settings for index:
GET /log_2013_-*/_settings/index.number_*
With include_defaults it can return also default settings:
GET /log_2013_-*/_settings/index.number_*?include_defaults=true
But when it comes to filter default values, for exmaple index.blocks.write it returns empty responce:
GET /log_2013_-*/_settings/index.blocks.write*?include_defaults=true
Because index.blocks.write is placed in to "defaults" sectionm like that:
{
"settings": {
"index": {
"creation_date": "1527152951908",
"number_of_shards": "5",
"number_of_replicas": "1",
"uuid": "_hzrBivpTZqYcZOwi-7P3g",
"version": {
"created": "6020099"
},
"provided_name": "some-7d0b0bce-de81-439a-a5de-bcdb8aaef3eb"
}
},
"defaults": {
"index": {
...
"blocks": {
"metadata": "false",
"read": "false",
"read_only_allow_delete": "false",
"read_only": "false",
"write": "false"
},
"max_script_fields": "32",
...
}
}
}
Metadata
Metadata
Assignees
Labels
:Core/Infra/SettingsSettings infrastructure and APIsSettings infrastructure and APIs