Skip to content

Cannot apply settings to all indices #38964

@ferronrsmith

Description

@ferronrsmith

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

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions