diff --git a/README.md b/README.md index f789cf157e1ef2a5d3096154f345cc295133b063..958c74da7baaacfec684e45556079c2ce471d598 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,16 @@ # Trouble-Shooting +Get a list of indides: + +``` +curl "http://127.0.0.1:9200/_cat/indices?v" +``` + If an index went read-only: ``` curl -X PUT http://127.0.0.1:9200/[INDEX]/_settings -H 'Content-Type: application/json' -d '{"index.blocks.read_only_allow_delete":null}' ``` + +Or use the prepared script `elasticsearch-remove-readonly` for this.