elasticsearch 8.16.0__py3-none-any.whl → 8.17.0__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 (85) hide show
  1. elasticsearch/_async/client/__init__.py +82 -46
  2. elasticsearch/_async/client/async_search.py +12 -22
  3. elasticsearch/_async/client/autoscaling.py +39 -4
  4. elasticsearch/_async/client/cat.py +26 -26
  5. elasticsearch/_async/client/ccr.py +85 -35
  6. elasticsearch/_async/client/cluster.py +141 -49
  7. elasticsearch/_async/client/connector.py +25 -25
  8. elasticsearch/_async/client/dangling_indices.py +3 -3
  9. elasticsearch/_async/client/enrich.py +6 -6
  10. elasticsearch/_async/client/eql.py +13 -11
  11. elasticsearch/_async/client/esql.py +3 -2
  12. elasticsearch/_async/client/features.py +27 -5
  13. elasticsearch/_async/client/fleet.py +1 -1
  14. elasticsearch/_async/client/graph.py +9 -3
  15. elasticsearch/_async/client/ilm.py +69 -34
  16. elasticsearch/_async/client/indices.py +307 -105
  17. elasticsearch/_async/client/inference.py +5 -15
  18. elasticsearch/_async/client/ingest.py +28 -23
  19. elasticsearch/_async/client/license.py +38 -22
  20. elasticsearch/_async/client/logstash.py +3 -3
  21. elasticsearch/_async/client/migration.py +3 -3
  22. elasticsearch/_async/client/ml.py +125 -73
  23. elasticsearch/_async/client/monitoring.py +1 -1
  24. elasticsearch/_async/client/nodes.py +34 -20
  25. elasticsearch/_async/client/query_rules.py +17 -16
  26. elasticsearch/_async/client/rollup.py +8 -8
  27. elasticsearch/_async/client/search_application.py +8 -8
  28. elasticsearch/_async/client/searchable_snapshots.py +4 -4
  29. elasticsearch/_async/client/security.py +64 -57
  30. elasticsearch/_async/client/slm.py +9 -9
  31. elasticsearch/_async/client/snapshot.py +12 -12
  32. elasticsearch/_async/client/sql.py +16 -15
  33. elasticsearch/_async/client/ssl.py +1 -1
  34. elasticsearch/_async/client/synonyms.py +17 -14
  35. elasticsearch/_async/client/tasks.py +3 -3
  36. elasticsearch/_async/client/text_structure.py +2 -2
  37. elasticsearch/_async/client/transform.py +11 -11
  38. elasticsearch/_async/client/watcher.py +11 -11
  39. elasticsearch/_async/client/xpack.py +2 -2
  40. elasticsearch/_sync/client/__init__.py +82 -46
  41. elasticsearch/_sync/client/async_search.py +12 -22
  42. elasticsearch/_sync/client/autoscaling.py +39 -4
  43. elasticsearch/_sync/client/cat.py +26 -26
  44. elasticsearch/_sync/client/ccr.py +85 -35
  45. elasticsearch/_sync/client/cluster.py +141 -49
  46. elasticsearch/_sync/client/connector.py +25 -25
  47. elasticsearch/_sync/client/dangling_indices.py +3 -3
  48. elasticsearch/_sync/client/enrich.py +6 -6
  49. elasticsearch/_sync/client/eql.py +13 -11
  50. elasticsearch/_sync/client/esql.py +3 -2
  51. elasticsearch/_sync/client/features.py +27 -5
  52. elasticsearch/_sync/client/fleet.py +1 -1
  53. elasticsearch/_sync/client/graph.py +9 -3
  54. elasticsearch/_sync/client/ilm.py +69 -34
  55. elasticsearch/_sync/client/indices.py +307 -105
  56. elasticsearch/_sync/client/inference.py +5 -15
  57. elasticsearch/_sync/client/ingest.py +28 -23
  58. elasticsearch/_sync/client/license.py +38 -22
  59. elasticsearch/_sync/client/logstash.py +3 -3
  60. elasticsearch/_sync/client/migration.py +3 -3
  61. elasticsearch/_sync/client/ml.py +125 -73
  62. elasticsearch/_sync/client/monitoring.py +1 -1
  63. elasticsearch/_sync/client/nodes.py +34 -20
  64. elasticsearch/_sync/client/query_rules.py +17 -16
  65. elasticsearch/_sync/client/rollup.py +8 -8
  66. elasticsearch/_sync/client/search_application.py +8 -8
  67. elasticsearch/_sync/client/searchable_snapshots.py +4 -4
  68. elasticsearch/_sync/client/security.py +64 -57
  69. elasticsearch/_sync/client/slm.py +9 -9
  70. elasticsearch/_sync/client/snapshot.py +12 -12
  71. elasticsearch/_sync/client/sql.py +16 -15
  72. elasticsearch/_sync/client/ssl.py +1 -1
  73. elasticsearch/_sync/client/synonyms.py +17 -14
  74. elasticsearch/_sync/client/tasks.py +3 -3
  75. elasticsearch/_sync/client/text_structure.py +2 -2
  76. elasticsearch/_sync/client/transform.py +11 -11
  77. elasticsearch/_sync/client/watcher.py +11 -11
  78. elasticsearch/_sync/client/xpack.py +2 -2
  79. elasticsearch/_version.py +1 -1
  80. {elasticsearch-8.16.0.dist-info → elasticsearch-8.17.0.dist-info}/METADATA +6 -4
  81. elasticsearch-8.17.0.dist-info/RECORD +117 -0
  82. {elasticsearch-8.16.0.dist-info → elasticsearch-8.17.0.dist-info}/WHEEL +1 -1
  83. elasticsearch-8.16.0.dist-info/RECORD +0 -117
  84. {elasticsearch-8.16.0.dist-info → elasticsearch-8.17.0.dist-info}/licenses/LICENSE +0 -0
  85. {elasticsearch-8.16.0.dist-info → elasticsearch-8.17.0.dist-info}/licenses/NOTICE +0 -0
@@ -58,7 +58,7 @@ class IndicesClient(NamespacedClient):
58
58
  Add an index block. Limits the operations allowed on an index by blocking specific
59
59
  operation types.
60
60
 
61
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/index-modules-blocks.html>`_
61
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/index-modules-blocks.html>`_
62
62
 
63
63
  :param index: A comma separated list of indices to add a block to
64
64
  :param block: The block to add (one of read, write, read_only or metadata)
@@ -146,7 +146,7 @@ class IndicesClient(NamespacedClient):
146
146
  Get tokens from text analysis. The analyze API performs [analysis](https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis.html)
147
147
  on a text string and returns the resulting tokens.
148
148
 
149
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-analyze.html>`_
149
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-analyze.html>`_
150
150
 
151
151
  :param index: Index used to derive the analyzer. If specified, the `analyzer`
152
152
  or field parameter overrides this value. If no index is specified or the
@@ -245,10 +245,10 @@ class IndicesClient(NamespacedClient):
245
245
  request: t.Optional[bool] = None,
246
246
  ) -> ObjectApiResponse[t.Any]:
247
247
  """
248
- Clears the caches of one or more indices. For data streams, the API clears the
249
- caches of the streams backing indices.
248
+ Clear the cache. Clear the cache of one or more indices. For data streams, the
249
+ API clears the caches of the stream's backing indices.
250
250
 
251
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-clearcache.html>`_
251
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-clearcache.html>`_
252
252
 
253
253
  :param index: Comma-separated list of data streams, indices, and aliases used
254
254
  to limit the request. Supports wildcards (`*`). To target all data streams
@@ -331,9 +331,28 @@ class IndicesClient(NamespacedClient):
331
331
  body: t.Optional[t.Dict[str, t.Any]] = None,
332
332
  ) -> ObjectApiResponse[t.Any]:
333
333
  """
334
- Clones an existing index.
335
-
336
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-clone-index.html>`_
334
+ Clone an index. Clone an existing index into a new index. Each original primary
335
+ shard is cloned into a new primary shard in the new index. IMPORTANT: Elasticsearch
336
+ does not apply index templates to the resulting index. The API also does not
337
+ copy index metadata from the original index. Index metadata includes aliases,
338
+ index lifecycle management phase definitions, and cross-cluster replication (CCR)
339
+ follower information. For example, if you clone a CCR follower index, the resulting
340
+ clone will not be a follower index. The clone API copies most index settings
341
+ from the source index to the resulting index, with the exception of `index.number_of_replicas`
342
+ and `index.auto_expand_replicas`. To set the number of replicas in the resulting
343
+ index, configure these settings in the clone request. Cloning works as follows:
344
+ * First, it creates a new target index with the same definition as the source
345
+ index. * Then it hard-links segments from the source index into the target index.
346
+ If the file system does not support hard-linking, all segments are copied into
347
+ the new index, which is a much more time consuming process. * Finally, it recovers
348
+ the target index as though it were a closed index which had just been re-opened.
349
+ IMPORTANT: Indices can only be cloned if they meet the following requirements:
350
+ * The target index must not exist. * The source index must have the same number
351
+ of primary shards as the target index. * The node handling the clone process
352
+ must have sufficient free disk space to accommodate a second copy of the existing
353
+ index.
354
+
355
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-clone-index.html>`_
337
356
 
338
357
  :param index: Name of the source index to clone.
339
358
  :param target: Name of the target index to create.
@@ -419,9 +438,26 @@ class IndicesClient(NamespacedClient):
419
438
  ] = None,
420
439
  ) -> ObjectApiResponse[t.Any]:
421
440
  """
422
- Closes an index.
423
-
424
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-close.html>`_
441
+ Close an index. A closed index is blocked for read or write operations and does
442
+ not allow all operations that opened indices allow. It is not possible to index
443
+ documents or to search for documents in a closed index. Closed indices do not
444
+ have to maintain internal data structures for indexing or searching documents,
445
+ which results in a smaller overhead on the cluster. When opening or closing an
446
+ index, the master node is responsible for restarting the index shards to reflect
447
+ the new state of the index. The shards will then go through the normal recovery
448
+ process. The data of opened and closed indices is automatically replicated by
449
+ the cluster to ensure that enough shard copies are safely kept around at all
450
+ times. You can open and close multiple indices. An error is thrown if the request
451
+ explicitly refers to a missing index. This behaviour can be turned off using
452
+ the `ignore_unavailable=true` parameter. By default, you must explicitly name
453
+ the indices you are opening or closing. To open or close indices with `_all`,
454
+ `*`, or other wildcard expressions, change the` action.destructive_requires_name`
455
+ setting to `false`. This setting can also be changed with the cluster update
456
+ settings API. Closed indices consume a significant amount of disk-space which
457
+ can cause problems in managed environments. Closing indices can be turned off
458
+ with the cluster settings API by setting `cluster.indices.close.enable` to `false`.
459
+
460
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-close.html>`_
425
461
 
426
462
  :param index: Comma-separated list or wildcard expression of index names used
427
463
  to limit the request.
@@ -502,7 +538,7 @@ class IndicesClient(NamespacedClient):
502
538
  """
503
539
  Create an index. Creates a new index.
504
540
 
505
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-create-index.html>`_
541
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-create-index.html>`_
506
542
 
507
543
  :param index: Name of the index you wish to create.
508
544
  :param aliases: Aliases for the index.
@@ -576,7 +612,7 @@ class IndicesClient(NamespacedClient):
576
612
  Create a data stream. Creates a data stream. You must have a matching index template
577
613
  with data stream enabled.
578
614
 
579
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/data-streams.html>`_
615
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/data-streams.html>`_
580
616
 
581
617
  :param name: Name of the data stream, which must meet the following criteria:
582
618
  Lowercase only; Cannot include `\\`, `/`, `*`, `?`, `"`, `<`, `>`, `|`, `,`,
@@ -637,7 +673,7 @@ class IndicesClient(NamespacedClient):
637
673
  """
638
674
  Get data stream stats. Retrieves statistics for one or more data streams.
639
675
 
640
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/data-streams.html>`_
676
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/data-streams.html>`_
641
677
 
642
678
  :param name: Comma-separated list of data streams used to limit the request.
643
679
  Wildcard expressions (`*`) are supported. To target all data streams in a
@@ -698,7 +734,7 @@ class IndicesClient(NamespacedClient):
698
734
  """
699
735
  Delete indices. Deletes one or more indices.
700
736
 
701
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-delete-index.html>`_
737
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-delete-index.html>`_
702
738
 
703
739
  :param index: Comma-separated list of indices to delete. You cannot specify index
704
740
  aliases. By default, this parameter does not support wildcards (`*`) or `_all`.
@@ -768,7 +804,7 @@ class IndicesClient(NamespacedClient):
768
804
  """
769
805
  Delete an alias. Removes a data stream or index from an alias.
770
806
 
771
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-aliases.html>`_
807
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-aliases.html>`_
772
808
 
773
809
  :param index: Comma-separated list of data streams or indices used to limit the
774
810
  request. Supports wildcards (`*`).
@@ -833,7 +869,7 @@ class IndicesClient(NamespacedClient):
833
869
  Delete data stream lifecycles. Removes the data stream lifecycle from a data
834
870
  stream, rendering it not managed by the data stream lifecycle.
835
871
 
836
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/data-streams-delete-lifecycle.html>`_
872
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/data-streams-delete-lifecycle.html>`_
837
873
 
838
874
  :param name: A comma-separated list of data streams of which the data stream
839
875
  lifecycle will be deleted; use `*` to get all data streams
@@ -893,7 +929,7 @@ class IndicesClient(NamespacedClient):
893
929
  """
894
930
  Delete data streams. Deletes one or more data streams and their backing indices.
895
931
 
896
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/data-streams.html>`_
932
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/data-streams.html>`_
897
933
 
898
934
  :param name: Comma-separated list of data streams to delete. Wildcard (`*`) expressions
899
935
  are supported.
@@ -948,7 +984,7 @@ class IndicesClient(NamespacedClient):
948
984
  then there is no wildcard support and the provided names should match completely
949
985
  with existing templates.
950
986
 
951
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-delete-template.html>`_
987
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-delete-template.html>`_
952
988
 
953
989
  :param name: Comma-separated list of index template names used to limit the request.
954
990
  Wildcard (*) expressions are supported.
@@ -1000,7 +1036,7 @@ class IndicesClient(NamespacedClient):
1000
1036
  """
1001
1037
  Deletes a legacy index template.
1002
1038
 
1003
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-delete-template-v1.html>`_
1039
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-delete-template-v1.html>`_
1004
1040
 
1005
1041
  :param name: The name of the legacy index template to delete. Wildcard (`*`)
1006
1042
  expressions are supported.
@@ -1061,9 +1097,12 @@ class IndicesClient(NamespacedClient):
1061
1097
  run_expensive_tasks: t.Optional[bool] = None,
1062
1098
  ) -> ObjectApiResponse[t.Any]:
1063
1099
  """
1064
- Analyzes the disk usage of each field of an index or data stream.
1100
+ Analyze the index disk usage. Analyze the disk usage of each field of an index
1101
+ or data stream. This API might not support indices created in previous Elasticsearch
1102
+ versions. The result of a small index can be inaccurate as some parts of an index
1103
+ might not be analyzed by the API.
1065
1104
 
1066
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-disk-usage.html>`_
1105
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-disk-usage.html>`_
1067
1106
 
1068
1107
  :param index: Comma-separated list of data streams, indices, and aliases used
1069
1108
  to limit the request. It’s recommended to execute this API with a single
@@ -1135,11 +1174,16 @@ class IndicesClient(NamespacedClient):
1135
1174
  pretty: t.Optional[bool] = None,
1136
1175
  ) -> ObjectApiResponse[t.Any]:
1137
1176
  """
1138
- Aggregates a time series (TSDS) index and stores pre-computed statistical summaries
1139
- (`min`, `max`, `sum`, `value_count` and `avg`) for each metric field grouped
1140
- by a configured time interval.
1177
+ Downsample an index. Aggregate a time series (TSDS) index and store pre-computed
1178
+ statistical summaries (`min`, `max`, `sum`, `value_count` and `avg`) for each
1179
+ metric field grouped by a configured time interval. For example, a TSDS index
1180
+ that contains metrics sampled every 10 seconds can be downsampled to an hourly
1181
+ index. All documents within an hour interval are summarized and stored as a single
1182
+ document in the downsample index. NOTE: Only indices in a time series data stream
1183
+ are supported. Neither field nor document level security can be defined on the
1184
+ source index. The source index must be read only (`index.blocks.write: true`).
1141
1185
 
1142
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-downsample-data-stream.html>`_
1186
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-downsample-data-stream.html>`_
1143
1187
 
1144
1188
  :param index: Name of the time series index to downsample.
1145
1189
  :param target_index: Name of the index to create.
@@ -1208,7 +1252,7 @@ class IndicesClient(NamespacedClient):
1208
1252
  Check indices. Checks if one or more indices, index aliases, or data streams
1209
1253
  exist.
1210
1254
 
1211
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-exists.html>`_
1255
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-exists.html>`_
1212
1256
 
1213
1257
  :param index: Comma-separated list of data streams, indices, and aliases. Supports
1214
1258
  wildcards (`*`).
@@ -1286,7 +1330,7 @@ class IndicesClient(NamespacedClient):
1286
1330
  """
1287
1331
  Check aliases. Checks if one or more data stream or index aliases exist.
1288
1332
 
1289
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-aliases.html>`_
1333
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-aliases.html>`_
1290
1334
 
1291
1335
  :param name: Comma-separated list of aliases to check. Supports wildcards (`*`).
1292
1336
  :param index: Comma-separated list of data streams or indices used to limit the
@@ -1354,9 +1398,9 @@ class IndicesClient(NamespacedClient):
1354
1398
  pretty: t.Optional[bool] = None,
1355
1399
  ) -> HeadApiResponse:
1356
1400
  """
1357
- Returns information about whether a particular index template exists.
1401
+ Check index templates. Check whether index templates exist.
1358
1402
 
1359
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/index-templates.html>`_
1403
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/index-templates.html>`_
1360
1404
 
1361
1405
  :param name: Comma-separated list of index template names used to limit the request.
1362
1406
  Wildcard (*) expressions are supported.
@@ -1406,7 +1450,7 @@ class IndicesClient(NamespacedClient):
1406
1450
  Check existence of index templates. Returns information about whether a particular
1407
1451
  index template exists.
1408
1452
 
1409
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-template-exists-v1.html>`_
1453
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-template-exists-v1.html>`_
1410
1454
 
1411
1455
  :param name: The comma separated names of the index templates
1412
1456
  :param flat_settings: Return settings in flat format (default: false)
@@ -1456,12 +1500,12 @@ class IndicesClient(NamespacedClient):
1456
1500
  pretty: t.Optional[bool] = None,
1457
1501
  ) -> ObjectApiResponse[t.Any]:
1458
1502
  """
1459
- Get the status for a data stream lifecycle. Retrieves information about an index
1460
- or data streams current data stream lifecycle status, such as time since index
1503
+ Get the status for a data stream lifecycle. Get information about an index or
1504
+ data stream's current data stream lifecycle status, such as time since index
1461
1505
  creation, time since rollover, the lifecycle configuration managing the index,
1462
1506
  or any errors encountered during lifecycle execution.
1463
1507
 
1464
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/data-streams-explain-lifecycle.html>`_
1508
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/data-streams-explain-lifecycle.html>`_
1465
1509
 
1466
1510
  :param index: The name of the index to explain
1467
1511
  :param include_defaults: indicates if the API should return the default values
@@ -1523,9 +1567,12 @@ class IndicesClient(NamespacedClient):
1523
1567
  ] = None,
1524
1568
  ) -> ObjectApiResponse[t.Any]:
1525
1569
  """
1526
- Returns field usage information for each shard and field of an index.
1570
+ Get field usage stats. Get field usage information for each shard and field of
1571
+ an index. Field usage statistics are automatically captured when queries are
1572
+ running on a cluster. A shard-level search request that accesses a given field,
1573
+ even if multiple times during that request, is counted as a single use.
1527
1574
 
1528
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/field-usage-stats.html>`_
1575
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/field-usage-stats.html>`_
1529
1576
 
1530
1577
  :param index: Comma-separated list or wildcard expression of index names used
1531
1578
  to limit the request.
@@ -1611,9 +1658,24 @@ class IndicesClient(NamespacedClient):
1611
1658
  wait_if_ongoing: t.Optional[bool] = None,
1612
1659
  ) -> ObjectApiResponse[t.Any]:
1613
1660
  """
1614
- Flushes one or more data streams or indices.
1615
-
1616
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-flush.html>`_
1661
+ Flush data streams or indices. Flushing a data stream or index is the process
1662
+ of making sure that any data that is currently only stored in the transaction
1663
+ log is also permanently stored in the Lucene index. When restarting, Elasticsearch
1664
+ replays any unflushed operations from the transaction log into the Lucene index
1665
+ to bring it back into the state that it was in before the restart. Elasticsearch
1666
+ automatically triggers flushes as needed, using heuristics that trade off the
1667
+ size of the unflushed transaction log against the cost of performing each flush.
1668
+ After each operation has been flushed it is permanently stored in the Lucene
1669
+ index. This may mean that there is no need to maintain an additional copy of
1670
+ it in the transaction log. The transaction log is made up of multiple files,
1671
+ called generations, and Elasticsearch will delete any generation files when they
1672
+ are no longer needed, freeing up disk space. It is also possible to trigger a
1673
+ flush on one or more indices using the flush API, although it is rare for users
1674
+ to need to call this API directly. If you call the flush API after indexing some
1675
+ documents then a successful response indicates that Elasticsearch has flushed
1676
+ all the documents that were indexed before the flush API was called.
1677
+
1678
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-flush.html>`_
1617
1679
 
1618
1680
  :param index: Comma-separated list of data streams, indices, and aliases to flush.
1619
1681
  Supports wildcards (`*`). To flush all data streams and indices, omit this
@@ -1694,9 +1756,23 @@ class IndicesClient(NamespacedClient):
1694
1756
  wait_for_completion: t.Optional[bool] = None,
1695
1757
  ) -> ObjectApiResponse[t.Any]:
1696
1758
  """
1697
- Performs the force merge operation on one or more indices.
1698
-
1699
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-forcemerge.html>`_
1759
+ Force a merge. Perform the force merge operation on the shards of one or more
1760
+ indices. For data streams, the API forces a merge on the shards of the stream's
1761
+ backing indices. Merging reduces the number of segments in each shard by merging
1762
+ some of them together and also frees up the space used by deleted documents.
1763
+ Merging normally happens automatically, but sometimes it is useful to trigger
1764
+ a merge manually. WARNING: We recommend force merging only a read-only index
1765
+ (meaning the index is no longer receiving writes). When documents are updated
1766
+ or deleted, the old version is not immediately removed but instead soft-deleted
1767
+ and marked with a "tombstone". These soft-deleted documents are automatically
1768
+ cleaned up during regular segment merges. But force merge can cause very large
1769
+ (greater than 5 GB) segments to be produced, which are not eligible for regular
1770
+ merges. So the number of soft-deleted documents can then grow rapidly, resulting
1771
+ in higher disk usage and worse search performance. If you regularly force merge
1772
+ an index receiving writes, this can also make snapshots more expensive, since
1773
+ the new documents can't be backed up incrementally.
1774
+
1775
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-forcemerge.html>`_
1700
1776
 
1701
1777
  :param index: A comma-separated list of index names; use `_all` or empty string
1702
1778
  to perform the operation on all indices
@@ -1790,7 +1866,7 @@ class IndicesClient(NamespacedClient):
1790
1866
  Get index information. Returns information about one or more indices. For data
1791
1867
  streams, the API returns information about the stream’s backing indices.
1792
1868
 
1793
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-get-index.html>`_
1869
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-get-index.html>`_
1794
1870
 
1795
1871
  :param index: Comma-separated list of data streams, indices, and index aliases
1796
1872
  used to limit the request. Wildcard expressions (*) are supported.
@@ -1879,7 +1955,7 @@ class IndicesClient(NamespacedClient):
1879
1955
  """
1880
1956
  Get aliases. Retrieves information for one or more data stream or index aliases.
1881
1957
 
1882
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-aliases.html>`_
1958
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-aliases.html>`_
1883
1959
 
1884
1960
  :param index: Comma-separated list of data streams or indices used to limit the
1885
1961
  request. Supports wildcards (`*`). To target all data streams and indices,
@@ -1962,7 +2038,7 @@ class IndicesClient(NamespacedClient):
1962
2038
  Get data stream lifecycles. Retrieves the data stream lifecycle configuration
1963
2039
  of one or more data streams.
1964
2040
 
1965
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/data-streams-get-lifecycle.html>`_
2041
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/data-streams-get-lifecycle.html>`_
1966
2042
 
1967
2043
  :param name: Comma-separated list of data streams to limit the request. Supports
1968
2044
  wildcards (`*`). To target all data streams, omit this parameter or use `*`
@@ -2028,7 +2104,7 @@ class IndicesClient(NamespacedClient):
2028
2104
  """
2029
2105
  Get data streams. Retrieves information about one or more data streams.
2030
2106
 
2031
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/data-streams.html>`_
2107
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/data-streams.html>`_
2032
2108
 
2033
2109
  :param name: Comma-separated list of data stream names used to limit the request.
2034
2110
  Wildcard (`*`) expressions are supported. If omitted, all data streams are
@@ -2104,7 +2180,7 @@ class IndicesClient(NamespacedClient):
2104
2180
  Get mapping definitions. Retrieves mapping definitions for one or more fields.
2105
2181
  For data streams, the API retrieves field mappings for the stream’s backing indices.
2106
2182
 
2107
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-get-field-mapping.html>`_
2183
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-get-field-mapping.html>`_
2108
2184
 
2109
2185
  :param fields: Comma-separated list or wildcard expression of fields used to
2110
2186
  limit returned information.
@@ -2181,7 +2257,7 @@ class IndicesClient(NamespacedClient):
2181
2257
  """
2182
2258
  Get index templates. Returns information about one or more index templates.
2183
2259
 
2184
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-get-template.html>`_
2260
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-get-template.html>`_
2185
2261
 
2186
2262
  :param name: Comma-separated list of index template names used to limit the request.
2187
2263
  Wildcard (*) expressions are supported.
@@ -2255,7 +2331,7 @@ class IndicesClient(NamespacedClient):
2255
2331
  Get mapping definitions. Retrieves mapping definitions for one or more indices.
2256
2332
  For data streams, the API retrieves mappings for the stream’s backing indices.
2257
2333
 
2258
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-get-mapping.html>`_
2334
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-get-mapping.html>`_
2259
2335
 
2260
2336
  :param index: Comma-separated list of data streams, indices, and aliases used
2261
2337
  to limit the request. Supports wildcards (`*`). To target all data streams
@@ -2340,7 +2416,7 @@ class IndicesClient(NamespacedClient):
2340
2416
  Get index settings. Returns setting information for one or more indices. For
2341
2417
  data streams, returns setting information for the stream’s backing indices.
2342
2418
 
2343
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-get-settings.html>`_
2419
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-get-settings.html>`_
2344
2420
 
2345
2421
  :param index: Comma-separated list of data streams, indices, and aliases used
2346
2422
  to limit the request. Supports wildcards (`*`). To target all data streams
@@ -2427,7 +2503,7 @@ class IndicesClient(NamespacedClient):
2427
2503
  """
2428
2504
  Get index templates. Retrieves information about one or more index templates.
2429
2505
 
2430
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-get-template-v1.html>`_
2506
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-get-template-v1.html>`_
2431
2507
 
2432
2508
  :param name: Comma-separated list of index template names used to limit the request.
2433
2509
  Wildcard (`*`) expressions are supported. To return all index templates,
@@ -2493,7 +2569,7 @@ class IndicesClient(NamespacedClient):
2493
2569
  with the same name. The indices for the alias become hidden backing indices for
2494
2570
  the stream. The write index for the alias becomes the write index for the stream.
2495
2571
 
2496
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/data-streams.html>`_
2572
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/data-streams.html>`_
2497
2573
 
2498
2574
  :param name: Name of the index alias to convert to a data stream.
2499
2575
  :param master_timeout: Period to wait for a connection to the master node. If
@@ -2546,7 +2622,7 @@ class IndicesClient(NamespacedClient):
2546
2622
  Update data streams. Performs one or more data stream modification actions in
2547
2623
  a single atomic operation.
2548
2624
 
2549
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/data-streams.html>`_
2625
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/data-streams.html>`_
2550
2626
 
2551
2627
  :param actions: Actions to perform.
2552
2628
  """
@@ -2606,7 +2682,7 @@ class IndicesClient(NamespacedClient):
2606
2682
  """
2607
2683
  Opens a closed index. For data streams, the API opens any closed backing indices.
2608
2684
 
2609
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-open-close.html>`_
2685
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-open-close.html>`_
2610
2686
 
2611
2687
  :param index: Comma-separated list of data streams, indices, and aliases used
2612
2688
  to limit the request. Supports wildcards (`*`). By default, you must explicitly
@@ -2679,10 +2755,20 @@ class IndicesClient(NamespacedClient):
2679
2755
  pretty: t.Optional[bool] = None,
2680
2756
  ) -> ObjectApiResponse[t.Any]:
2681
2757
  """
2682
- Promotes a data stream from a replicated data stream managed by CCR to a regular
2683
- data stream
2684
-
2685
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/data-streams.html>`_
2758
+ Promote a data stream. Promote a data stream from a replicated data stream managed
2759
+ by cross-cluster replication (CCR) to a regular data stream. With CCR auto following,
2760
+ a data stream from a remote cluster can be replicated to the local cluster. These
2761
+ data streams can't be rolled over in the local cluster. These replicated data
2762
+ streams roll over only if the upstream data stream rolls over. In the event that
2763
+ the remote cluster is no longer available, the data stream in the local cluster
2764
+ can be promoted to a regular data stream, which allows these data streams to
2765
+ be rolled over in the local cluster. NOTE: When promoting a data stream, ensure
2766
+ the local cluster has a data stream enabled index template that matches the data
2767
+ stream. If this is missing, the data stream will not be able to roll over until
2768
+ a matching index template is created. This will affect the lifecycle management
2769
+ of the data stream and interfere with the data stream size and retention.
2770
+
2771
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/data-streams.html>`_
2686
2772
 
2687
2773
  :param name: The name of the data stream
2688
2774
  :param master_timeout: Period to wait for a connection to the master node. If
@@ -2744,7 +2830,7 @@ class IndicesClient(NamespacedClient):
2744
2830
  """
2745
2831
  Create or update an alias. Adds a data stream or index to an alias.
2746
2832
 
2747
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-aliases.html>`_
2833
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-aliases.html>`_
2748
2834
 
2749
2835
  :param index: Comma-separated list of data streams or indices to add. Supports
2750
2836
  wildcards (`*`). Wildcard patterns that match both data streams and indices
@@ -2847,7 +2933,7 @@ class IndicesClient(NamespacedClient):
2847
2933
  Update data stream lifecycles. Update the data stream lifecycle of the specified
2848
2934
  data streams.
2849
2935
 
2850
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/data-streams-put-lifecycle.html>`_
2936
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/data-streams-put-lifecycle.html>`_
2851
2937
 
2852
2938
  :param name: Comma-separated list of data streams used to limit the request.
2853
2939
  Supports wildcards (`*`). To target all data streams use `*` or `_all`.
@@ -2949,7 +3035,7 @@ class IndicesClient(NamespacedClient):
2949
3035
  Create or update an index template. Index templates define settings, mappings,
2950
3036
  and aliases that can be applied automatically to new indices.
2951
3037
 
2952
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-put-template.html>`_
3038
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-put-template.html>`_
2953
3039
 
2954
3040
  :param name: Index or template name
2955
3041
  :param allow_auto_create: This setting overrides the value of the `action.auto_create_index`
@@ -3110,7 +3196,7 @@ class IndicesClient(NamespacedClient):
3110
3196
  can also use this API to change the search settings of existing fields. For data
3111
3197
  streams, these changes are applied to all backing indices by default.
3112
3198
 
3113
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-put-mapping.html>`_
3199
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-put-mapping.html>`_
3114
3200
 
3115
3201
  :param index: A comma-separated list of index names the mapping should be added
3116
3202
  to (supports wildcards); use `_all` or omit to add the mapping on all indices.
@@ -3240,7 +3326,7 @@ class IndicesClient(NamespacedClient):
3240
3326
  Update index settings. Changes dynamic index settings in real time. For data
3241
3327
  streams, index setting changes are applied to all backing indices by default.
3242
3328
 
3243
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-update-settings.html>`_
3329
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-update-settings.html>`_
3244
3330
 
3245
3331
  :param settings:
3246
3332
  :param index: Comma-separated list of data streams, indices, and aliases used
@@ -3343,9 +3429,18 @@ class IndicesClient(NamespacedClient):
3343
3429
  ) -> ObjectApiResponse[t.Any]:
3344
3430
  """
3345
3431
  Create or update an index template. Index templates define settings, mappings,
3346
- and aliases that can be applied automatically to new indices.
3347
-
3348
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-templates-v1.html>`_
3432
+ and aliases that can be applied automatically to new indices. Elasticsearch applies
3433
+ templates to new indices based on an index pattern that matches the index name.
3434
+ IMPORTANT: This documentation is about legacy index templates, which are deprecated
3435
+ and will be replaced by the composable templates introduced in Elasticsearch
3436
+ 7.8. Composable templates always take precedence over legacy templates. If no
3437
+ composable template matches a new index, matching legacy templates are applied
3438
+ according to their order. Index templates are only applied during index creation.
3439
+ Changes to index templates do not affect existing indices. Settings and mappings
3440
+ specified in create index API requests override any settings or mappings specified
3441
+ in an index template.
3442
+
3443
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-templates-v1.html>`_
3349
3444
 
3350
3445
  :param name: The name of the template
3351
3446
  :param aliases: Aliases for the index.
@@ -3423,11 +3518,27 @@ class IndicesClient(NamespacedClient):
3423
3518
  pretty: t.Optional[bool] = None,
3424
3519
  ) -> ObjectApiResponse[t.Any]:
3425
3520
  """
3426
- Returns information about ongoing and completed shard recoveries for one or more
3427
- indices. For data streams, the API returns information for the stream’s backing
3428
- indices.
3429
-
3430
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-recovery.html>`_
3521
+ Get index recovery information. Get information about ongoing and completed shard
3522
+ recoveries for one or more indices. For data streams, the API returns information
3523
+ for the stream's backing indices. Shard recovery is the process of initializing
3524
+ a shard copy, such as restoring a primary shard from a snapshot or creating a
3525
+ replica shard from a primary shard. When a shard recovery completes, the recovered
3526
+ shard is available for search and indexing. Recovery automatically occurs during
3527
+ the following processes: * When creating an index for the first time. * When
3528
+ a node rejoins the cluster and starts up any missing primary shard copies using
3529
+ the data that it holds in its data path. * Creation of new replica shard copies
3530
+ from the primary. * Relocation of a shard copy to a different node in the same
3531
+ cluster. * A snapshot restore operation. * A clone, shrink, or split operation.
3532
+ You can determine the cause of a shard recovery using the recovery or cat recovery
3533
+ APIs. The index recovery API reports information about completed recoveries only
3534
+ for shard copies that currently exist in the cluster. It only reports the last
3535
+ recovery for each shard copy and does not report historical information about
3536
+ earlier recoveries, nor does it report information about the recoveries of shard
3537
+ copies that no longer exist. This means that if a shard copy completes a recovery
3538
+ and then Elasticsearch relocates it onto a different node then the information
3539
+ about the original recovery will not be shown in the recovery API.
3540
+
3541
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-recovery.html>`_
3431
3542
 
3432
3543
  :param index: Comma-separated list of data streams, indices, and aliases used
3433
3544
  to limit the request. Supports wildcards (`*`). To target all data streams
@@ -3491,7 +3602,7 @@ class IndicesClient(NamespacedClient):
3491
3602
  indices available for search. For data streams, the API runs the refresh operation
3492
3603
  on the stream’s backing indices.
3493
3604
 
3494
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-refresh.html>`_
3605
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-refresh.html>`_
3495
3606
 
3496
3607
  :param index: Comma-separated list of data streams, indices, and aliases used
3497
3608
  to limit the request. Supports wildcards (`*`). To target all data streams
@@ -3559,9 +3670,23 @@ class IndicesClient(NamespacedClient):
3559
3670
  pretty: t.Optional[bool] = None,
3560
3671
  ) -> ObjectApiResponse[t.Any]:
3561
3672
  """
3562
- Reloads an index's search analyzers and their resources.
3563
-
3564
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-reload-analyzers.html>`_
3673
+ Reload search analyzers. Reload an index's search analyzers and their resources.
3674
+ For data streams, the API reloads search analyzers and resources for the stream's
3675
+ backing indices. IMPORTANT: After reloading the search analyzers you should clear
3676
+ the request cache to make sure it doesn't contain responses derived from the
3677
+ previous versions of the analyzer. You can use the reload search analyzers API
3678
+ to pick up changes to synonym files used in the `synonym_graph` or `synonym`
3679
+ token filter of a search analyzer. To be eligible, the token filter must have
3680
+ an `updateable` flag of `true` and only be used in search analyzers. NOTE: This
3681
+ API does not perform a reload for each shard of an index. Instead, it performs
3682
+ a reload for each node containing index shards. As a result, the total shard
3683
+ count returned by the API can differ from the number of index shards. Because
3684
+ reloading affects every node with an index shard, it is important to update the
3685
+ synonym file on every data node in the cluster--including nodes that don't contain
3686
+ a shard replica--before using this API. This ensures the synonym file is updated
3687
+ everywhere in the cluster in case shards are relocated in the future.
3688
+
3689
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-reload-analyzers.html>`_
3565
3690
 
3566
3691
  :param index: A comma-separated list of index names to reload analyzers for
3567
3692
  :param allow_no_indices: Whether to ignore if a wildcard indices expression resolves
@@ -3623,11 +3748,22 @@ class IndicesClient(NamespacedClient):
3623
3748
  pretty: t.Optional[bool] = None,
3624
3749
  ) -> ObjectApiResponse[t.Any]:
3625
3750
  """
3626
- Resolves the specified index expressions to return information about each cluster,
3627
- including the local cluster, if included. Multiple patterns and remote clusters
3628
- are supported.
3629
-
3630
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-resolve-cluster-api.html>`_
3751
+ Resolve the cluster. Resolve the specified index expressions to return information
3752
+ about each cluster, including the local cluster, if included. Multiple patterns
3753
+ and remote clusters are supported. This endpoint is useful before doing a cross-cluster
3754
+ search in order to determine which remote clusters should be included in a search.
3755
+ You use the same index expression with this endpoint as you would for cross-cluster
3756
+ search. Index and cluster exclusions are also supported with this endpoint. For
3757
+ each cluster in the index expression, information is returned about: * Whether
3758
+ the querying ("local") cluster is currently connected to each remote cluster
3759
+ in the index expression scope. * Whether each remote cluster is configured with
3760
+ `skip_unavailable` as `true` or `false`. * Whether there are any indices, aliases,
3761
+ or data streams on that cluster that match the index expression. * Whether the
3762
+ search is likely to have errors returned when you do the cross-cluster search
3763
+ (including any authorization errors if you do not have permission to query the
3764
+ index). * Cluster version information, including the Elasticsearch server version.
3765
+
3766
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-resolve-cluster-api.html>`_
3631
3767
 
3632
3768
  :param name: Comma-separated name(s) or index pattern(s) of the indices, aliases,
3633
3769
  and data streams to resolve. Resources on remote clusters can be specified
@@ -3698,10 +3834,10 @@ class IndicesClient(NamespacedClient):
3698
3834
  pretty: t.Optional[bool] = None,
3699
3835
  ) -> ObjectApiResponse[t.Any]:
3700
3836
  """
3701
- Resolves the specified name(s) and/or index patterns for indices, aliases, and
3702
- data streams. Multiple patterns and remote clusters are supported.
3837
+ Resolve indices. Resolve the names and/or index patterns for indices, aliases,
3838
+ and data streams. Multiple patterns and remote clusters are supported.
3703
3839
 
3704
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-resolve-index-api.html>`_
3840
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-resolve-index-api.html>`_
3705
3841
 
3706
3842
  :param name: Comma-separated name(s) or index pattern(s) of the indices, aliases,
3707
3843
  and data streams to resolve. Resources on remote clusters can be specified
@@ -3774,7 +3910,7 @@ class IndicesClient(NamespacedClient):
3774
3910
  """
3775
3911
  Roll over to a new index. Creates a new index for a data stream or index alias.
3776
3912
 
3777
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-rollover-index.html>`_
3913
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-rollover-index.html>`_
3778
3914
 
3779
3915
  :param alias: Name of the data stream or index alias to roll over.
3780
3916
  :param new_index: Name of the index to create. Supports date math. Data streams
@@ -3877,10 +4013,11 @@ class IndicesClient(NamespacedClient):
3877
4013
  verbose: t.Optional[bool] = None,
3878
4014
  ) -> ObjectApiResponse[t.Any]:
3879
4015
  """
3880
- Returns low-level information about the Lucene segments in index shards. For
3881
- data streams, the API returns information about the streams backing indices.
4016
+ Get index segments. Get low-level information about the Lucene segments in index
4017
+ shards. For data streams, the API returns information about the stream's backing
4018
+ indices.
3882
4019
 
3883
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-segments.html>`_
4020
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-segments.html>`_
3884
4021
 
3885
4022
  :param index: Comma-separated list of data streams, indices, and aliases used
3886
4023
  to limit the request. Supports wildcards (`*`). To target all data streams
@@ -3957,10 +4094,16 @@ class IndicesClient(NamespacedClient):
3957
4094
  ] = None,
3958
4095
  ) -> ObjectApiResponse[t.Any]:
3959
4096
  """
3960
- Retrieves store information about replica shards in one or more indices. For
3961
- data streams, the API retrieves store information for the streams backing indices.
4097
+ Get index shard stores. Get store information about replica shards in one or
4098
+ more indices. For data streams, the API retrieves store information for the stream's
4099
+ backing indices. The index shard stores API returns the following information:
4100
+ * The node on which each replica shard exists. * The allocation ID for each replica
4101
+ shard. * A unique ID for each replica shard. * Any errors encountered while opening
4102
+ the shard index or from an earlier failure. By default, the API returns store
4103
+ information only for primary shards that are unassigned or have one or more unassigned
4104
+ replica shards.
3962
4105
 
3963
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-shards-stores.html>`_
4106
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-shards-stores.html>`_
3964
4107
 
3965
4108
  :param index: List of data streams, indices, and aliases used to limit the request.
3966
4109
  :param allow_no_indices: If false, the request returns an error if any wildcard
@@ -4029,9 +4172,41 @@ class IndicesClient(NamespacedClient):
4029
4172
  body: t.Optional[t.Dict[str, t.Any]] = None,
4030
4173
  ) -> ObjectApiResponse[t.Any]:
4031
4174
  """
4032
- Shrinks an existing index into a new index with fewer primary shards.
4033
-
4034
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-shrink-index.html>`_
4175
+ Shrink an index. Shrink an index into a new index with fewer primary shards.
4176
+ Before you can shrink an index: * The index must be read-only. * A copy of every
4177
+ shard in the index must reside on the same node. * The index must have a green
4178
+ health status. To make shard allocation easier, we recommend you also remove
4179
+ the index's replica shards. You can later re-add replica shards as part of the
4180
+ shrink operation. The requested number of primary shards in the target index
4181
+ must be a factor of the number of shards in the source index. For example an
4182
+ index with 8 primary shards can be shrunk into 4, 2 or 1 primary shards or an
4183
+ index with 15 primary shards can be shrunk into 5, 3 or 1. If the number of shards
4184
+ in the index is a prime number it can only be shrunk into a single primary shard
4185
+ Before shrinking, a (primary or replica) copy of every shard in the index must
4186
+ be present on the same node. The current write index on a data stream cannot
4187
+ be shrunk. In order to shrink the current write index, the data stream must first
4188
+ be rolled over so that a new write index is created and then the previous write
4189
+ index can be shrunk. A shrink operation: * Creates a new target index with the
4190
+ same definition as the source index, but with a smaller number of primary shards.
4191
+ * Hard-links segments from the source index into the target index. If the file
4192
+ system does not support hard-linking, then all segments are copied into the new
4193
+ index, which is a much more time consuming process. Also if using multiple data
4194
+ paths, shards on different data paths require a full copy of segment files if
4195
+ they are not on the same disk since hardlinks do not work across disks. * Recovers
4196
+ the target index as though it were a closed index which had just been re-opened.
4197
+ Recovers shards to the `.routing.allocation.initial_recovery._id` index setting.
4198
+ IMPORTANT: Indices can only be shrunk if they satisfy the following requirements:
4199
+ * The target index must not exist. * The source index must have more primary
4200
+ shards than the target index. * The number of primary shards in the target index
4201
+ must be a factor of the number of primary shards in the source index. The source
4202
+ index must have more primary shards than the target index. * The index must not
4203
+ contain more than 2,147,483,519 documents in total across all shards that will
4204
+ be shrunk into a single shard on the target index as this is the maximum number
4205
+ of docs that can fit into a single shard. * The node handling the shrink process
4206
+ must have sufficient free disk space to accommodate a second copy of the existing
4207
+ index.
4208
+
4209
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-shrink-index.html>`_
4035
4210
 
4036
4211
  :param index: Name of the source index to shrink.
4037
4212
  :param target: Name of the target index to create.
@@ -4107,7 +4282,7 @@ class IndicesClient(NamespacedClient):
4107
4282
  Simulate an index. Returns the index configuration that would be applied to the
4108
4283
  specified index from an existing index template.
4109
4284
 
4110
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-simulate-index.html>`_
4285
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-simulate-index.html>`_
4111
4286
 
4112
4287
  :param name: Name of the index to simulate
4113
4288
  :param include_defaults: If true, returns all relevant default configurations
@@ -4185,7 +4360,7 @@ class IndicesClient(NamespacedClient):
4185
4360
  Simulate an index template. Returns the index configuration that would be applied
4186
4361
  by a particular index template.
4187
4362
 
4188
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-simulate-template.html>`_
4363
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-simulate-template.html>`_
4189
4364
 
4190
4365
  :param name: Name of the index template to simulate. To test a template configuration
4191
4366
  before you add it to the cluster, omit this parameter and specify the template
@@ -4314,9 +4489,29 @@ class IndicesClient(NamespacedClient):
4314
4489
  body: t.Optional[t.Dict[str, t.Any]] = None,
4315
4490
  ) -> ObjectApiResponse[t.Any]:
4316
4491
  """
4317
- Splits an existing index into a new index with more primary shards.
4318
-
4319
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-split-index.html>`_
4492
+ Split an index. Split an index into a new index with more primary shards. * Before
4493
+ you can split an index: * The index must be read-only. * The cluster health status
4494
+ must be green. The number of times the index can be split (and the number of
4495
+ shards that each original shard can be split into) is determined by the `index.number_of_routing_shards`
4496
+ setting. The number of routing shards specifies the hashing space that is used
4497
+ internally to distribute documents across shards with consistent hashing. For
4498
+ instance, a 5 shard index with `number_of_routing_shards` set to 30 (5 x 2 x
4499
+ 3) could be split by a factor of 2 or 3. A split operation: * Creates a new target
4500
+ index with the same definition as the source index, but with a larger number
4501
+ of primary shards. * Hard-links segments from the source index into the target
4502
+ index. If the file system doesn't support hard-linking, all segments are copied
4503
+ into the new index, which is a much more time consuming process. * Hashes all
4504
+ documents again, after low level files are created, to delete documents that
4505
+ belong to a different shard. * Recovers the target index as though it were a
4506
+ closed index which had just been re-opened. IMPORTANT: Indices can only be split
4507
+ if they satisfy the following requirements: * The target index must not exist.
4508
+ * The source index must have fewer primary shards than the target index. * The
4509
+ number of primary shards in the target index must be a multiple of the number
4510
+ of primary shards in the source index. * The node handling the split process
4511
+ must have sufficient free disk space to accommodate a second copy of the existing
4512
+ index.
4513
+
4514
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-split-index.html>`_
4320
4515
 
4321
4516
  :param index: Name of the source index to split.
4322
4517
  :param target: Name of the target index to create.
@@ -4406,10 +4601,16 @@ class IndicesClient(NamespacedClient):
4406
4601
  pretty: t.Optional[bool] = None,
4407
4602
  ) -> ObjectApiResponse[t.Any]:
4408
4603
  """
4409
- Returns statistics for one or more indices. For data streams, the API retrieves
4410
- statistics for the streams backing indices.
4604
+ Get index statistics. For data streams, the API retrieves statistics for the
4605
+ stream's backing indices. By default, the returned statistics are index-level
4606
+ with `primaries` and `total` aggregations. `primaries` are the values for only
4607
+ the primary shards. `total` are the accumulated values for both primary and replica
4608
+ shards. To get shard-level statistics, set the `level` parameter to `shards`.
4609
+ NOTE: When moving to another node, the shard-level statistics for a shard are
4610
+ cleared. Although the shard is no longer part of the node, that node retains
4611
+ any node-level statistics to which the shard contributed.
4411
4612
 
4412
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-stats.html>`_
4613
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-stats.html>`_
4413
4614
 
4414
4615
  :param index: A comma-separated list of index names; use `_all` or empty string
4415
4616
  to perform the operation on all indices
@@ -4510,9 +4711,10 @@ class IndicesClient(NamespacedClient):
4510
4711
  wait_for_active_shards: t.Optional[str] = None,
4511
4712
  ) -> ObjectApiResponse[t.Any]:
4512
4713
  """
4513
- Unfreezes an index.
4714
+ Unfreeze an index. When a frozen index is unfrozen, the index goes through the
4715
+ normal recovery process and becomes writeable again.
4514
4716
 
4515
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/unfreeze-index-api.html>`_
4717
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/unfreeze-index-api.html>`_
4516
4718
 
4517
4719
  :param index: Identifier for the index.
4518
4720
  :param allow_no_indices: If `false`, the request returns an error if any wildcard
@@ -4586,7 +4788,7 @@ class IndicesClient(NamespacedClient):
4586
4788
  """
4587
4789
  Create or update an alias. Adds a data stream or index to an alias.
4588
4790
 
4589
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-aliases.html>`_
4791
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-aliases.html>`_
4590
4792
 
4591
4793
  :param actions: Actions to perform.
4592
4794
  :param master_timeout: Period to wait for a connection to the master node. If
@@ -4661,7 +4863,7 @@ class IndicesClient(NamespacedClient):
4661
4863
  """
4662
4864
  Validate a query. Validates a query without running it.
4663
4865
 
4664
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/search-validate.html>`_
4866
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/search-validate.html>`_
4665
4867
 
4666
4868
  :param index: Comma-separated list of data streams, indices, and aliases to search.
4667
4869
  Supports wildcards (`*`). To search all data streams or indices, omit this