elasticsearch 9.0.2__py3-none-any.whl → 9.0.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. elasticsearch/_async/client/__init__.py +42 -198
  2. elasticsearch/_async/client/cat.py +393 -25
  3. elasticsearch/_async/client/cluster.py +14 -4
  4. elasticsearch/_async/client/eql.py +10 -2
  5. elasticsearch/_async/client/esql.py +17 -4
  6. elasticsearch/_async/client/indices.py +87 -43
  7. elasticsearch/_async/client/inference.py +108 -3
  8. elasticsearch/_async/client/ingest.py +0 -7
  9. elasticsearch/_async/client/license.py +4 -4
  10. elasticsearch/_async/client/ml.py +6 -17
  11. elasticsearch/_async/client/monitoring.py +1 -1
  12. elasticsearch/_async/client/rollup.py +1 -22
  13. elasticsearch/_async/client/security.py +11 -17
  14. elasticsearch/_async/client/snapshot.py +6 -0
  15. elasticsearch/_async/client/synonyms.py +1 -0
  16. elasticsearch/_async/client/watcher.py +4 -2
  17. elasticsearch/_sync/client/__init__.py +42 -198
  18. elasticsearch/_sync/client/cat.py +393 -25
  19. elasticsearch/_sync/client/cluster.py +14 -4
  20. elasticsearch/_sync/client/eql.py +10 -2
  21. elasticsearch/_sync/client/esql.py +17 -4
  22. elasticsearch/_sync/client/indices.py +87 -43
  23. elasticsearch/_sync/client/inference.py +108 -3
  24. elasticsearch/_sync/client/ingest.py +0 -7
  25. elasticsearch/_sync/client/license.py +4 -4
  26. elasticsearch/_sync/client/ml.py +6 -17
  27. elasticsearch/_sync/client/monitoring.py +1 -1
  28. elasticsearch/_sync/client/rollup.py +1 -22
  29. elasticsearch/_sync/client/security.py +11 -17
  30. elasticsearch/_sync/client/snapshot.py +6 -0
  31. elasticsearch/_sync/client/synonyms.py +1 -0
  32. elasticsearch/_sync/client/watcher.py +4 -2
  33. elasticsearch/_version.py +1 -1
  34. elasticsearch/compat.py +5 -0
  35. elasticsearch/dsl/__init__.py +2 -1
  36. elasticsearch/dsl/document_base.py +176 -16
  37. elasticsearch/dsl/field.py +222 -47
  38. elasticsearch/dsl/query.py +7 -4
  39. elasticsearch/dsl/types.py +105 -80
  40. elasticsearch/dsl/utils.py +1 -1
  41. elasticsearch/{dsl/_sync/_sync_check → esql}/__init__.py +2 -0
  42. elasticsearch/esql/esql.py +1105 -0
  43. elasticsearch/esql/functions.py +1738 -0
  44. {elasticsearch-9.0.2.dist-info → elasticsearch-9.0.3.dist-info}/METADATA +1 -1
  45. {elasticsearch-9.0.2.dist-info → elasticsearch-9.0.3.dist-info}/RECORD +48 -52
  46. elasticsearch/dsl/_sync/_sync_check/document.py +0 -514
  47. elasticsearch/dsl/_sync/_sync_check/faceted_search.py +0 -50
  48. elasticsearch/dsl/_sync/_sync_check/index.py +0 -597
  49. elasticsearch/dsl/_sync/_sync_check/mapping.py +0 -49
  50. elasticsearch/dsl/_sync/_sync_check/search.py +0 -230
  51. elasticsearch/dsl/_sync/_sync_check/update_by_query.py +0 -45
  52. {elasticsearch-9.0.2.dist-info → elasticsearch-9.0.3.dist-info}/WHEEL +0 -0
  53. {elasticsearch-9.0.2.dist-info → elasticsearch-9.0.3.dist-info}/licenses/LICENSE +0 -0
  54. {elasticsearch-9.0.2.dist-info → elasticsearch-9.0.3.dist-info}/licenses/NOTICE +0 -0
@@ -31,6 +31,8 @@ class EsqlClient(NamespacedClient):
31
31
  "columnar",
32
32
  "filter",
33
33
  "include_ccs_metadata",
34
+ "keep_alive",
35
+ "keep_on_completion",
34
36
  "locale",
35
37
  "params",
36
38
  "profile",
@@ -145,10 +147,6 @@ class EsqlClient(NamespacedClient):
145
147
  __query["format"] = format
146
148
  if human is not None:
147
149
  __query["human"] = human
148
- if keep_alive is not None:
149
- __query["keep_alive"] = keep_alive
150
- if keep_on_completion is not None:
151
- __query["keep_on_completion"] = keep_on_completion
152
150
  if pretty is not None:
153
151
  __query["pretty"] = pretty
154
152
  if not __body:
@@ -160,6 +158,10 @@ class EsqlClient(NamespacedClient):
160
158
  __body["filter"] = filter
161
159
  if include_ccs_metadata is not None:
162
160
  __body["include_ccs_metadata"] = include_ccs_metadata
161
+ if keep_alive is not None:
162
+ __body["keep_alive"] = keep_alive
163
+ if keep_on_completion is not None:
164
+ __body["keep_on_completion"] = keep_on_completion
163
165
  if locale is not None:
164
166
  __body["locale"] = locale
165
167
  if params is not None:
@@ -242,6 +244,14 @@ class EsqlClient(NamespacedClient):
242
244
  drop_null_columns: t.Optional[bool] = None,
243
245
  error_trace: t.Optional[bool] = None,
244
246
  filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
247
+ format: t.Optional[
248
+ t.Union[
249
+ str,
250
+ t.Literal[
251
+ "arrow", "cbor", "csv", "json", "smile", "tsv", "txt", "yaml"
252
+ ],
253
+ ]
254
+ ] = None,
245
255
  human: t.Optional[bool] = None,
246
256
  keep_alive: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
247
257
  pretty: t.Optional[bool] = None,
@@ -267,6 +277,7 @@ class EsqlClient(NamespacedClient):
267
277
  will be removed from the `columns` and `values` portion of the results. If
268
278
  `true`, the response will include an extra section under the name `all_columns`
269
279
  which has the name of all the columns.
280
+ :param format: A short version of the Accept header, for example `json` or `yaml`.
270
281
  :param keep_alive: The period for which the query and its results are stored
271
282
  in the cluster. When this period expires, the query and its results are deleted,
272
283
  even if the query is still ongoing.
@@ -287,6 +298,8 @@ class EsqlClient(NamespacedClient):
287
298
  __query["error_trace"] = error_trace
288
299
  if filter_path is not None:
289
300
  __query["filter_path"] = filter_path
301
+ if format is not None:
302
+ __query["format"] = format
290
303
  if human is not None:
291
304
  __query["human"] = human
292
305
  if keep_alive is not None:
@@ -338,7 +338,7 @@ class IndicesClient(NamespacedClient):
338
338
  :param expand_wildcards: Type of index that wildcard patterns can match. If the
339
339
  request can target data streams, this argument determines whether wildcard
340
340
  expressions match hidden data streams. Supports comma-separated values, such
341
- as `open,hidden`. Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
341
+ as `open,hidden`.
342
342
  :param fielddata: If `true`, clears the fields cache. Use the `fields` parameter
343
343
  to clear the cache of specific fields only.
344
344
  :param fields: Comma-separated list of field names used to limit the `fielddata`
@@ -563,7 +563,7 @@ class IndicesClient(NamespacedClient):
563
563
  :param expand_wildcards: Type of index that wildcard patterns can match. If the
564
564
  request can target data streams, this argument determines whether wildcard
565
565
  expressions match hidden data streams. Supports comma-separated values, such
566
- as `open,hidden`. Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
566
+ as `open,hidden`.
567
567
  :param ignore_unavailable: If `false`, the request returns an error if it targets
568
568
  a missing or closed index.
569
569
  :param master_timeout: Period to wait for a connection to the master node. If
@@ -950,7 +950,7 @@ class IndicesClient(NamespacedClient):
950
950
  :param expand_wildcards: Type of index that wildcard patterns can match. If the
951
951
  request can target data streams, this argument determines whether wildcard
952
952
  expressions match hidden data streams. Supports comma-separated values, such
953
- as `open,hidden`. Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
953
+ as `open,hidden`.
954
954
  :param ignore_unavailable: If `false`, the request returns an error if it targets
955
955
  a missing or closed index.
956
956
  :param master_timeout: Period to wait for a connection to the master node. If
@@ -1495,7 +1495,7 @@ class IndicesClient(NamespacedClient):
1495
1495
  :param expand_wildcards: Type of index that wildcard patterns can match. If the
1496
1496
  request can target data streams, this argument determines whether wildcard
1497
1497
  expressions match hidden data streams. Supports comma-separated values, such
1498
- as `open,hidden`. Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
1498
+ as `open,hidden`.
1499
1499
  :param flat_settings: If `true`, returns settings in flat format.
1500
1500
  :param ignore_unavailable: If `false`, the request returns an error if it targets
1501
1501
  a missing or closed index.
@@ -1579,7 +1579,7 @@ class IndicesClient(NamespacedClient):
1579
1579
  :param expand_wildcards: Type of index that wildcard patterns can match. If the
1580
1580
  request can target data streams, this argument determines whether wildcard
1581
1581
  expressions match hidden data streams. Supports comma-separated values, such
1582
- as `open,hidden`. Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
1582
+ as `open,hidden`.
1583
1583
  :param ignore_unavailable: If `false`, requests that include a missing data stream
1584
1584
  or index in the target indices or data streams return an error.
1585
1585
  :param master_timeout: Period to wait for a connection to the master node. If
@@ -1928,7 +1928,7 @@ class IndicesClient(NamespacedClient):
1928
1928
  :param expand_wildcards: Type of index that wildcard patterns can match. If the
1929
1929
  request can target data streams, this argument determines whether wildcard
1930
1930
  expressions match hidden data streams. Supports comma-separated values, such
1931
- as `open,hidden`. Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
1931
+ as `open,hidden`.
1932
1932
  :param force: If `true`, the request forces a flush even if there are no changes
1933
1933
  to commit to the index.
1934
1934
  :param ignore_unavailable: If `false`, the request returns an error if it targets
@@ -2246,7 +2246,7 @@ class IndicesClient(NamespacedClient):
2246
2246
  :param expand_wildcards: Type of index that wildcard patterns can match. If the
2247
2247
  request can target data streams, this argument determines whether wildcard
2248
2248
  expressions match hidden data streams. Supports comma-separated values, such
2249
- as `open,hidden`. Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
2249
+ as `open,hidden`.
2250
2250
  :param ignore_unavailable: If `false`, the request returns an error if it targets
2251
2251
  a missing or closed index.
2252
2252
  :param master_timeout: Period to wait for a connection to the master node. If
@@ -2326,8 +2326,7 @@ class IndicesClient(NamespacedClient):
2326
2326
  wildcards (`*`). To target all data streams, omit this parameter or use `*`
2327
2327
  or `_all`.
2328
2328
  :param expand_wildcards: Type of data stream that wildcard patterns can match.
2329
- Supports comma-separated values, such as `open,hidden`. Valid values are:
2330
- `all`, `open`, `closed`, `hidden`, `none`.
2329
+ Supports comma-separated values, such as `open,hidden`.
2331
2330
  :param include_defaults: If `true`, return all default settings in the response.
2332
2331
  :param master_timeout: Period to wait for a connection to the master node. If
2333
2332
  no response is received before the timeout expires, the request fails and
@@ -2523,7 +2522,7 @@ class IndicesClient(NamespacedClient):
2523
2522
  :param expand_wildcards: Type of index that wildcard patterns can match. If the
2524
2523
  request can target data streams, this argument determines whether wildcard
2525
2524
  expressions match hidden data streams. Supports comma-separated values, such
2526
- as `open,hidden`. Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
2525
+ as `open,hidden`.
2527
2526
  :param ignore_unavailable: If `false`, the request returns an error if it targets
2528
2527
  a missing or closed index.
2529
2528
  :param include_defaults: If `true`, return all default settings in the response.
@@ -2679,7 +2678,7 @@ class IndicesClient(NamespacedClient):
2679
2678
  :param expand_wildcards: Type of index that wildcard patterns can match. If the
2680
2679
  request can target data streams, this argument determines whether wildcard
2681
2680
  expressions match hidden data streams. Supports comma-separated values, such
2682
- as `open,hidden`. Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
2681
+ as `open,hidden`.
2683
2682
  :param ignore_unavailable: If `false`, the request returns an error if it targets
2684
2683
  a missing or closed index.
2685
2684
  :param local: If `true`, the request retrieves information from the local node
@@ -3171,7 +3170,7 @@ class IndicesClient(NamespacedClient):
3171
3170
  :param expand_wildcards: Type of index that wildcard patterns can match. If the
3172
3171
  request can target data streams, this argument determines whether wildcard
3173
3172
  expressions match hidden data streams. Supports comma-separated values, such
3174
- as `open,hidden`. Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
3173
+ as `open,hidden`.
3175
3174
  :param ignore_unavailable: If `false`, the request returns an error if it targets
3176
3175
  a missing or closed index.
3177
3176
  :param master_timeout: Period to wait for a connection to the master node. If
@@ -3430,8 +3429,7 @@ class IndicesClient(NamespacedClient):
3430
3429
  for this data stream. A data stream lifecycle that's disabled (enabled: `false`)
3431
3430
  will have no effect on the data stream.
3432
3431
  :param expand_wildcards: Type of data stream that wildcard patterns can match.
3433
- Supports comma-separated values, such as `open,hidden`. Valid values are:
3434
- `all`, `hidden`, `open`, `closed`, `none`.
3432
+ Supports comma-separated values, such as `open,hidden`.
3435
3433
  :param master_timeout: Period to wait for a connection to the master node. If
3436
3434
  no response is received before the timeout expires, the request fails and
3437
3435
  returns an error.
@@ -3707,24 +3705,17 @@ class IndicesClient(NamespacedClient):
3707
3705
 
3708
3706
  <p>Update field mappings.
3709
3707
  Add new fields to an existing data stream or index.
3710
- You can also use this API to change the search settings of existing fields and add new properties to existing object fields.
3711
- For data streams, these changes are applied to all backing indices by default.</p>
3712
- <p><strong>Add multi-fields to an existing field</strong></p>
3713
- <p>Multi-fields let you index the same field in different ways.
3714
- You can use this API to update the fields mapping parameter and enable multi-fields for an existing field.
3715
- WARNING: If an index (or data stream) contains documents when you add a multi-field, those documents will not have values for the new multi-field.
3716
- You can populate the new multi-field with the update by query API.</p>
3717
- <p><strong>Change supported mapping parameters for an existing field</strong></p>
3718
- <p>The documentation for each mapping parameter indicates whether you can update it for an existing field using this API.
3719
- For example, you can use the update mapping API to update the <code>ignore_above</code> parameter.</p>
3720
- <p><strong>Change the mapping of an existing field</strong></p>
3721
- <p>Except for supported mapping parameters, you can't change the mapping or field type of an existing field.
3722
- Changing an existing field could invalidate data that's already indexed.</p>
3723
- <p>If you need to change the mapping of a field in a data stream's backing indices, refer to documentation about modifying data streams.
3724
- If you need to change the mapping of a field in other indices, create a new index with the correct mapping and reindex your data into that index.</p>
3725
- <p><strong>Rename a field</strong></p>
3726
- <p>Renaming a field would invalidate data already indexed under the old field name.
3727
- Instead, add an alias field to create an alternate field name.</p>
3708
+ You can use the update mapping API to:</p>
3709
+ <ul>
3710
+ <li>Add a new field to an existing index</li>
3711
+ <li>Update mappings for multiple indices in a single request</li>
3712
+ <li>Add new properties to an object field</li>
3713
+ <li>Enable multi-fields for an existing field</li>
3714
+ <li>Update supported mapping parameters</li>
3715
+ <li>Change a field's mapping using reindexing</li>
3716
+ <li>Rename a field using a field alias</li>
3717
+ </ul>
3718
+ <p>Learn how to use the update mapping API with practical examples in the <a href="https://www.elastic.co/docs//manage-data/data-store/mapping/update-mappings-examples">Update mapping API examples</a> guide.</p>
3728
3719
 
3729
3720
 
3730
3721
  `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-put-mapping>`_
@@ -3743,7 +3734,7 @@ class IndicesClient(NamespacedClient):
3743
3734
  :param expand_wildcards: Type of index that wildcard patterns can match. If the
3744
3735
  request can target data streams, this argument determines whether wildcard
3745
3736
  expressions match hidden data streams. Supports comma-separated values, such
3746
- as `open,hidden`. Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
3737
+ as `open,hidden`.
3747
3738
  :param field_names: Control whether field names are enabled for the index.
3748
3739
  :param ignore_unavailable: If `false`, the request returns an error if it targets
3749
3740
  a missing or closed index.
@@ -3861,8 +3852,36 @@ class IndicesClient(NamespacedClient):
3861
3852
  Changes dynamic index settings in real time.
3862
3853
  For data streams, index setting changes are applied to all backing indices by default.</p>
3863
3854
  <p>To revert a setting to the default value, use a null value.
3864
- The list of per-index settings that can be updated dynamically on live indices can be found in index module documentation.
3855
+ The list of per-index settings that can be updated dynamically on live indices can be found in index settings documentation.
3865
3856
  To preserve existing settings from being updated, set the <code>preserve_existing</code> parameter to <code>true</code>.</p>
3857
+ <p>For performance optimization during bulk indexing, you can disable the refresh interval.
3858
+ Refer to <a href="https://www.elastic.co/docs/deploy-manage/production-guidance/optimize-performance/indexing-speed#disable-refresh-interval">disable refresh interval</a> for an example.
3859
+ There are multiple valid ways to represent index settings in the request body. You can specify only the setting, for example:</p>
3860
+ <pre><code>{
3861
+ &quot;number_of_replicas&quot;: 1
3862
+ }
3863
+ </code></pre>
3864
+ <p>Or you can use an <code>index</code> setting object:</p>
3865
+ <pre><code>{
3866
+ &quot;index&quot;: {
3867
+ &quot;number_of_replicas&quot;: 1
3868
+ }
3869
+ }
3870
+ </code></pre>
3871
+ <p>Or you can use dot annotation:</p>
3872
+ <pre><code>{
3873
+ &quot;index.number_of_replicas&quot;: 1
3874
+ }
3875
+ </code></pre>
3876
+ <p>Or you can embed any of the aforementioned options in a <code>settings</code> object. For example:</p>
3877
+ <pre><code>{
3878
+ &quot;settings&quot;: {
3879
+ &quot;index&quot;: {
3880
+ &quot;number_of_replicas&quot;: 1
3881
+ }
3882
+ }
3883
+ }
3884
+ </code></pre>
3866
3885
  <p>NOTE: You can only define new analyzers on closed indices.
3867
3886
  To add an analyzer, you must close the index, define the analyzer, and reopen the index.
3868
3887
  You cannot close the write index of a data stream.
@@ -3870,7 +3889,8 @@ class IndicesClient(NamespacedClient):
3870
3889
  Then roll over the data stream to apply the new analyzer to the stream's write index and future backing indices.
3871
3890
  This affects searches and any new data added to the stream after the rollover.
3872
3891
  However, it does not affect the data stream's backing indices or their existing data.
3873
- To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it.</p>
3892
+ To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it.
3893
+ Refer to <a href="https://www.elastic.co/docs/manage-data/data-store/text-analysis/specify-an-analyzer#update-analyzers-on-existing-indices">updating analyzers on existing indices</a> for step-by-step examples.</p>
3874
3894
 
3875
3895
 
3876
3896
  `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-put-settings>`_
@@ -4071,10 +4091,20 @@ class IndicesClient(NamespacedClient):
4071
4091
  *,
4072
4092
  index: t.Optional[t.Union[str, t.Sequence[str]]] = None,
4073
4093
  active_only: t.Optional[bool] = None,
4094
+ allow_no_indices: t.Optional[bool] = None,
4074
4095
  detailed: t.Optional[bool] = None,
4075
4096
  error_trace: t.Optional[bool] = None,
4097
+ expand_wildcards: t.Optional[
4098
+ t.Union[
4099
+ t.Sequence[
4100
+ t.Union[str, t.Literal["all", "closed", "hidden", "none", "open"]]
4101
+ ],
4102
+ t.Union[str, t.Literal["all", "closed", "hidden", "none", "open"]],
4103
+ ]
4104
+ ] = None,
4076
4105
  filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
4077
4106
  human: t.Optional[bool] = None,
4107
+ ignore_unavailable: t.Optional[bool] = None,
4078
4108
  pretty: t.Optional[bool] = None,
4079
4109
  ) -> ObjectApiResponse[t.Any]:
4080
4110
  """
@@ -4107,8 +4137,17 @@ class IndicesClient(NamespacedClient):
4107
4137
  to limit the request. Supports wildcards (`*`). To target all data streams
4108
4138
  and indices, omit this parameter or use `*` or `_all`.
4109
4139
  :param active_only: If `true`, the response only includes ongoing shard recoveries.
4140
+ :param allow_no_indices: If `false`, the request returns an error if any wildcard
4141
+ expression, index alias, or `_all` value targets only missing or closed indices.
4142
+ This behavior applies even if the request targets other open indices.
4110
4143
  :param detailed: If `true`, the response includes detailed information about
4111
4144
  shard recoveries.
4145
+ :param expand_wildcards: Type of index that wildcard patterns can match. If the
4146
+ request can target data streams, this argument determines whether wildcard
4147
+ expressions match hidden data streams. Supports comma-separated values, such
4148
+ as `open,hidden`.
4149
+ :param ignore_unavailable: If `false`, the request returns an error if it targets
4150
+ a missing or closed index.
4112
4151
  """
4113
4152
  __path_parts: t.Dict[str, str]
4114
4153
  if index not in SKIP_IN_PATH:
@@ -4120,14 +4159,20 @@ class IndicesClient(NamespacedClient):
4120
4159
  __query: t.Dict[str, t.Any] = {}
4121
4160
  if active_only is not None:
4122
4161
  __query["active_only"] = active_only
4162
+ if allow_no_indices is not None:
4163
+ __query["allow_no_indices"] = allow_no_indices
4123
4164
  if detailed is not None:
4124
4165
  __query["detailed"] = detailed
4125
4166
  if error_trace is not None:
4126
4167
  __query["error_trace"] = error_trace
4168
+ if expand_wildcards is not None:
4169
+ __query["expand_wildcards"] = expand_wildcards
4127
4170
  if filter_path is not None:
4128
4171
  __query["filter_path"] = filter_path
4129
4172
  if human is not None:
4130
4173
  __query["human"] = human
4174
+ if ignore_unavailable is not None:
4175
+ __query["ignore_unavailable"] = ignore_unavailable
4131
4176
  if pretty is not None:
4132
4177
  __query["pretty"] = pretty
4133
4178
  __headers = {"accept": "application/json"}
@@ -4186,7 +4231,7 @@ class IndicesClient(NamespacedClient):
4186
4231
  :param expand_wildcards: Type of index that wildcard patterns can match. If the
4187
4232
  request can target data streams, this argument determines whether wildcard
4188
4233
  expressions match hidden data streams. Supports comma-separated values, such
4189
- as `open,hidden`. Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
4234
+ as `open,hidden`.
4190
4235
  :param ignore_unavailable: If `false`, the request returns an error if it targets
4191
4236
  a missing or closed index.
4192
4237
  """
@@ -4385,10 +4430,9 @@ class IndicesClient(NamespacedClient):
4385
4430
  :param expand_wildcards: Type of index that wildcard patterns can match. If the
4386
4431
  request can target data streams, this argument determines whether wildcard
4387
4432
  expressions match hidden data streams. Supports comma-separated values, such
4388
- as `open,hidden`. Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
4389
- NOTE: This option is only supported when specifying an index expression.
4390
- You will get an error if you specify index options to the `_resolve/cluster`
4391
- API endpoint that takes no index expression.
4433
+ as `open,hidden`. NOTE: This option is only supported when specifying an
4434
+ index expression. You will get an error if you specify index options to the
4435
+ `_resolve/cluster` API endpoint that takes no index expression.
4392
4436
  :param ignore_throttled: If true, concrete, expanded, or aliased indices are
4393
4437
  ignored when frozen. NOTE: This option is only supported when specifying
4394
4438
  an index expression. You will get an error if you specify index options to
@@ -4481,7 +4525,7 @@ class IndicesClient(NamespacedClient):
4481
4525
  :param expand_wildcards: Type of index that wildcard patterns can match. If the
4482
4526
  request can target data streams, this argument determines whether wildcard
4483
4527
  expressions match hidden data streams. Supports comma-separated values, such
4484
- as `open,hidden`. Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
4528
+ as `open,hidden`.
4485
4529
  :param ignore_unavailable: If `false`, the request returns an error if it targets
4486
4530
  a missing or closed index.
4487
4531
  """
@@ -4695,7 +4739,7 @@ class IndicesClient(NamespacedClient):
4695
4739
  :param expand_wildcards: Type of index that wildcard patterns can match. If the
4696
4740
  request can target data streams, this argument determines whether wildcard
4697
4741
  expressions match hidden data streams. Supports comma-separated values, such
4698
- as `open,hidden`. Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
4742
+ as `open,hidden`.
4699
4743
  :param ignore_unavailable: If `false`, the request returns an error if it targets
4700
4744
  a missing or closed index.
4701
4745
  """
@@ -5519,7 +5563,7 @@ class IndicesClient(NamespacedClient):
5519
5563
  :param expand_wildcards: Type of index that wildcard patterns can match. If the
5520
5564
  request can target data streams, this argument determines whether wildcard
5521
5565
  expressions match hidden data streams. Supports comma-separated values, such
5522
- as `open,hidden`. Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
5566
+ as `open,hidden`.
5523
5567
  :param explain: If `true`, the response returns detailed information if an error
5524
5568
  has occurred.
5525
5569
  :param ignore_unavailable: If `false`, the request returns an error if it targets