You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: elasticsearch/_async/client/indices.py
+31-4Lines changed: 31 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1246,7 +1246,8 @@ async def delete_template(
1246
1246
"""
1247
1247
.. raw:: html
1248
1248
1249
-
<p>Delete a legacy index template.</p>
1249
+
<p>Delete a legacy index template.
1250
+
IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8.</p>
Get information about one or more index templates.</p>
2883
2884
<p>IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8.</p>
2884
2885
@@ -3850,8 +3851,34 @@ async def put_settings(
3850
3851
Changes dynamic index settings in real time.
3851
3852
For data streams, index setting changes are applied to all backing indices by default.</p>
3852
3853
<p>To revert a setting to the default value, use a null value.
3853
-
The list of per-index settings that can be updated dynamically on live indices can be found in index module documentation.
3854
+
The list of per-index settings that can be updated dynamically on live indices can be found in index settings documentation.
3854
3855
To preserve existing settings from being updated, set the <code>preserve_existing</code> parameter to <code>true</code>.</p>
3856
+
<p>There are multiple valid ways to represent index settings in the request body. You can specify only the setting, for example:</p>
3857
+
<pre><code>{
3858
+
"number_of_replicas": 1
3859
+
}
3860
+
</code></pre>
3861
+
<p>Or you can use an <code>index</code> setting object:</p>
3862
+
<pre><code>{
3863
+
"index": {
3864
+
"number_of_replicas": 1
3865
+
}
3866
+
}
3867
+
</code></pre>
3868
+
<p>Or you can use dot annotation:</p>
3869
+
<pre><code>{
3870
+
"index.number_of_replicas": 1
3871
+
}
3872
+
</code></pre>
3873
+
<p>Or you can embed any of the aforementioned options in a <code>settings</code> object. For example:</p>
3874
+
<pre><code>{
3875
+
"settings": {
3876
+
"index": {
3877
+
"number_of_replicas": 1
3878
+
}
3879
+
}
3880
+
}
3881
+
</code></pre>
3855
3882
<p>NOTE: You can only define new analyzers on closed indices.
3856
3883
To add an analyzer, you must close the index, define the analyzer, and reopen the index.
3857
3884
You cannot close the write index of a data stream.
@@ -3971,7 +3998,7 @@ async def put_template(
3971
3998
"""
3972
3999
.. raw:: html
3973
4000
3974
-
<p>Create or update an index template.
4001
+
<p>Create or update a legacy index template.
3975
4002
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
3976
4003
Elasticsearch applies templates to new indices based on an index pattern that matches the index name.</p>
3977
4004
<p>IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8.</p>
0 commit comments