Docs: Add example of resetting index setting (#29048)

This commit adds an example using `null` to reset an index settings.

closes #22870
This commit is contained in:
Ryan Ernst 2018-03-19 20:04:58 -07:00 committed by GitHub
parent 7112d4368f
commit 52a517e216
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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`