Skip to content

Commit e7af643

Browse files
committed
Docs: Add example of resetting index setting (#29048)
This commit adds an example using `null` to reset an index settings. closes #22870
1 parent 5565ecf commit e7af643

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/reference/indices/update-settings.asciidoc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,20 @@ PUT /twitter/_settings
1919
// CONSOLE
2020
// TEST[setup:twitter]
2121

22+
To reset a setting back to the default value, use `null`. For example:
23+
24+
[source,js]
25+
--------------------------------------------------
26+
PUT /twitter/_settings
27+
{
28+
"index" : {
29+
"refresh_interval" : null
30+
}
31+
}
32+
--------------------------------------------------
33+
// CONSOLE
34+
// TEST[setup:twitter]
35+
2236
The list of per-index settings which can be updated dynamically on live
2337
indices can be found in <<index-modules>>.
2438
To preserve existing settings from being updated, the `preserve_existing`

0 commit comments

Comments
 (0)