mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-25 01:19:02 +00:00
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:
parent
7112d4368f
commit
52a517e216
@ -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`
|
||||
|
Loading…
x
Reference in New Issue
Block a user