Skip to content

Commit

Permalink
Docs: Add example of resetting index setting (#29048)
Browse files Browse the repository at this point in the history
This commit adds an example using `null` to reset an index settings.

closes #22870
  • Loading branch information
rjernst authored Mar 20, 2018
1 parent 7112d43 commit 52a517e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/reference/indices/update-settings.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,20 @@ PUT /twitter/_settings
// CONSOLE
// TEST[setup:twitter]

To reset a setting back to the default value, use `null`. For example:

[source,js]
--------------------------------------------------
PUT /twitter/_settings
{
"index" : {
"refresh_interval" : null
}
}
--------------------------------------------------
// CONSOLE
// TEST[setup:twitter]

The list of per-index settings which can be updated dynamically on live
indices can be found in <<index-modules>>.
To preserve existing settings from being updated, the `preserve_existing`
Expand Down

0 comments on commit 52a517e

Please sign in to comment.