From 9bfef645f52cd5768a928beb364b005c1d919bd4 Mon Sep 17 00:00:00 2001 From: Liz Snyder Date: Mon, 6 Dec 2021 13:02:47 -0800 Subject: [PATCH 1/3] Fix failing commands Signed-off-by: Liz Snyder --- _opensearch/rest-api/cluster-settings.md | 32 +++++++++++------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/_opensearch/rest-api/cluster-settings.md b/_opensearch/rest-api/cluster-settings.md index cc0f3a99..bfa5498b 100644 --- a/_opensearch/rest-api/cluster-settings.md +++ b/_opensearch/rest-api/cluster-settings.md @@ -21,11 +21,9 @@ GET _cluster/settings?include_defaults=true ```json PUT _cluster/settings { - "persistent": { - "action": { - "auto_create_index": false - } - } + "transient":{ + "action.auto_create_index": false + } } ``` @@ -59,11 +57,9 @@ For a PUT operation, the request body must contain `transient` or `persistent`, ```json PUT _cluster/settings { - "persistent": { - "cluster": { - "max_shards_per_node": 500 - } - } + "transient":{ + "cluster.max_shards_per_node": 500 + } } ``` @@ -74,12 +70,14 @@ For more information about transient settings, persistent settings, and preceden ```json { - "acknowledged": true, - "persistent": { - "cluster": { - "max_shards_per_node": "500" - } - }, - "transient": {} + "acknowledged":true, + "persistent":{ + + }, + "transient":{ + "cluster":{ + "max_shards_per_node":"500" + } + } } ``` From 2ac0b75b448723434674dd233260e94671920cd9 Mon Sep 17 00:00:00 2001 From: Liz Snyder Date: Mon, 6 Dec 2021 13:07:10 -0800 Subject: [PATCH 2/3] Change transient to persistent Signed-off-by: Liz Snyder --- _opensearch/rest-api/cluster-settings.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/_opensearch/rest-api/cluster-settings.md b/_opensearch/rest-api/cluster-settings.md index bfa5498b..060a9aa7 100644 --- a/_opensearch/rest-api/cluster-settings.md +++ b/_opensearch/rest-api/cluster-settings.md @@ -21,7 +21,7 @@ GET _cluster/settings?include_defaults=true ```json PUT _cluster/settings { - "transient":{ + "persistent":{ "action.auto_create_index": false } } @@ -57,7 +57,7 @@ For a PUT operation, the request body must contain `transient` or `persistent`, ```json PUT _cluster/settings { - "transient":{ + "persistent":{ "cluster.max_shards_per_node": 500 } } @@ -72,12 +72,12 @@ For more information about transient settings, persistent settings, and preceden { "acknowledged":true, "persistent":{ - - }, - "transient":{ "cluster":{ "max_shards_per_node":"500" } + }, + "transient":{ + } } ``` From 872dabe8f8dcd6e6e8e461fbf9b8dab7bc7965a8 Mon Sep 17 00:00:00 2001 From: Liz Snyder Date: Mon, 6 Dec 2021 13:11:36 -0800 Subject: [PATCH 3/3] Fix brackets Signed-off-by: Liz Snyder --- _opensearch/rest-api/cluster-settings.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/_opensearch/rest-api/cluster-settings.md b/_opensearch/rest-api/cluster-settings.md index 060a9aa7..e8780010 100644 --- a/_opensearch/rest-api/cluster-settings.md +++ b/_opensearch/rest-api/cluster-settings.md @@ -76,8 +76,6 @@ For more information about transient settings, persistent settings, and preceden "max_shards_per_node":"500" } }, - "transient":{ - - } + "transient":{} } ```