Skip to content

Commit ee26b2f

Browse files
committed
[API] Updates spec commit, indices.put_settings docs
1 parent d8f3571 commit ee26b2f

File tree

2 files changed

+40
-2
lines changed

2 files changed

+40
-2
lines changed

elasticsearch-api/lib/elasticsearch/api/actions/indices/put_settings.rb

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,46 @@ module Actions
2626
# Changes dynamic index settings in real time.
2727
# For data streams, index setting changes are applied to all backing indices by default.
2828
# To revert a setting to the default value, use a null value.
29-
# The list of per-index settings that can be updated dynamically on live indices can be found in index module documentation.
29+
# The list of per-index settings that can be updated dynamically on live indices can be found in index settings documentation.
3030
# To preserve existing settings from being updated, set the `preserve_existing` parameter to `true`.
31+
# There are multiple valid ways to represent index settings in the request body. You can specify only the setting, for example:
32+
#
33+
# ```
34+
# {
35+
# "number_of_replicas": 1
36+
# }
37+
# ```
38+
#
39+
# Or you can use an `index` setting object:
40+
#
41+
# ```
42+
# {
43+
# "index": {
44+
# "number_of_replicas": 1
45+
# }
46+
# }
47+
# ```
48+
#
49+
# Or you can use dot annotation:
50+
#
51+
# ```
52+
# {
53+
# "index.number_of_replicas": 1
54+
# }
55+
# ```
56+
#
57+
# Or you can embed any of the aforementioned options in a `settings` object. For example:
58+
#
59+
# ```
60+
# {
61+
# "settings": {
62+
# "index": {
63+
# "number_of_replicas": 1
64+
# }
65+
# }
66+
# }
67+
# ```
68+
#
3169
# NOTE: You can only define new analyzers on closed indices.
3270
# To add an analyzer, you must close the index, define the analyzer, and reopen the index.
3371
# You cannot close the write index of a data stream.

elasticsearch-api/lib/elasticsearch/api/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
module Elasticsearch
1919
module API
2020
VERSION = '9.0.0'.freeze
21-
ES_SPECIFICATION_COMMIT = 'f15ccea832ee9dba2b1a31f6d7430940c2a53984'.freeze
21+
ES_SPECIFICATION_COMMIT = '00be10ac5ace4211ff41c0c640eb9b6ecaf10f07'.freeze
2222
end
2323
end

0 commit comments

Comments
 (0)