elasticsearch 9.0.4__py3-none-any.whl → 9.1.1__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 (95) hide show
  1. elasticsearch/__init__.py +3 -3
  2. elasticsearch/_async/client/__init__.py +42 -42
  3. elasticsearch/_async/client/async_search.py +4 -4
  4. elasticsearch/_async/client/autoscaling.py +4 -4
  5. elasticsearch/_async/client/cat.py +26 -26
  6. elasticsearch/_async/client/ccr.py +13 -13
  7. elasticsearch/_async/client/cluster.py +25 -20
  8. elasticsearch/_async/client/connector.py +30 -30
  9. elasticsearch/_async/client/dangling_indices.py +3 -3
  10. elasticsearch/_async/client/enrich.py +5 -5
  11. elasticsearch/_async/client/eql.py +4 -4
  12. elasticsearch/_async/client/esql.py +112 -5
  13. elasticsearch/_async/client/features.py +2 -2
  14. elasticsearch/_async/client/fleet.py +3 -3
  15. elasticsearch/_async/client/graph.py +1 -1
  16. elasticsearch/_async/client/ilm.py +11 -11
  17. elasticsearch/_async/client/indices.py +504 -69
  18. elasticsearch/_async/client/inference.py +419 -46
  19. elasticsearch/_async/client/ingest.py +9 -9
  20. elasticsearch/_async/client/license.py +7 -7
  21. elasticsearch/_async/client/logstash.py +3 -3
  22. elasticsearch/_async/client/migration.py +3 -3
  23. elasticsearch/_async/client/ml.py +72 -73
  24. elasticsearch/_async/client/nodes.py +7 -7
  25. elasticsearch/_async/client/query_rules.py +8 -8
  26. elasticsearch/_async/client/rollup.py +8 -8
  27. elasticsearch/_async/client/search_application.py +10 -10
  28. elasticsearch/_async/client/searchable_snapshots.py +4 -4
  29. elasticsearch/_async/client/security.py +68 -64
  30. elasticsearch/_async/client/shutdown.py +3 -3
  31. elasticsearch/_async/client/simulate.py +1 -1
  32. elasticsearch/_async/client/slm.py +9 -9
  33. elasticsearch/_async/client/snapshot.py +58 -21
  34. elasticsearch/_async/client/sql.py +6 -6
  35. elasticsearch/_async/client/ssl.py +1 -1
  36. elasticsearch/_async/client/synonyms.py +25 -7
  37. elasticsearch/_async/client/tasks.py +4 -4
  38. elasticsearch/_async/client/text_structure.py +4 -4
  39. elasticsearch/_async/client/transform.py +11 -11
  40. elasticsearch/_async/client/watcher.py +13 -13
  41. elasticsearch/_async/client/xpack.py +2 -2
  42. elasticsearch/_otel.py +8 -8
  43. elasticsearch/_sync/client/__init__.py +42 -42
  44. elasticsearch/_sync/client/async_search.py +4 -4
  45. elasticsearch/_sync/client/autoscaling.py +4 -4
  46. elasticsearch/_sync/client/cat.py +26 -26
  47. elasticsearch/_sync/client/ccr.py +13 -13
  48. elasticsearch/_sync/client/cluster.py +25 -20
  49. elasticsearch/_sync/client/connector.py +30 -30
  50. elasticsearch/_sync/client/dangling_indices.py +3 -3
  51. elasticsearch/_sync/client/enrich.py +5 -5
  52. elasticsearch/_sync/client/eql.py +4 -4
  53. elasticsearch/_sync/client/esql.py +112 -5
  54. elasticsearch/_sync/client/features.py +2 -2
  55. elasticsearch/_sync/client/fleet.py +3 -3
  56. elasticsearch/_sync/client/graph.py +1 -1
  57. elasticsearch/_sync/client/ilm.py +11 -11
  58. elasticsearch/_sync/client/indices.py +504 -69
  59. elasticsearch/_sync/client/inference.py +419 -46
  60. elasticsearch/_sync/client/ingest.py +9 -9
  61. elasticsearch/_sync/client/license.py +7 -7
  62. elasticsearch/_sync/client/logstash.py +3 -3
  63. elasticsearch/_sync/client/migration.py +3 -3
  64. elasticsearch/_sync/client/ml.py +72 -73
  65. elasticsearch/_sync/client/nodes.py +7 -7
  66. elasticsearch/_sync/client/query_rules.py +8 -8
  67. elasticsearch/_sync/client/rollup.py +8 -8
  68. elasticsearch/_sync/client/search_application.py +10 -10
  69. elasticsearch/_sync/client/searchable_snapshots.py +4 -4
  70. elasticsearch/_sync/client/security.py +68 -64
  71. elasticsearch/_sync/client/shutdown.py +3 -3
  72. elasticsearch/_sync/client/simulate.py +1 -1
  73. elasticsearch/_sync/client/slm.py +9 -9
  74. elasticsearch/_sync/client/snapshot.py +58 -21
  75. elasticsearch/_sync/client/sql.py +6 -6
  76. elasticsearch/_sync/client/ssl.py +1 -1
  77. elasticsearch/_sync/client/synonyms.py +25 -7
  78. elasticsearch/_sync/client/tasks.py +4 -4
  79. elasticsearch/_sync/client/text_structure.py +4 -4
  80. elasticsearch/_sync/client/transform.py +11 -11
  81. elasticsearch/_sync/client/watcher.py +13 -13
  82. elasticsearch/_sync/client/xpack.py +2 -2
  83. elasticsearch/_version.py +1 -1
  84. elasticsearch/dsl/aggs.py +20 -0
  85. elasticsearch/dsl/document_base.py +2 -3
  86. elasticsearch/dsl/field.py +18 -0
  87. elasticsearch/dsl/query.py +1 -1
  88. elasticsearch/dsl/response/__init__.py +1 -1
  89. elasticsearch/dsl/types.py +163 -5
  90. {elasticsearch-9.0.4.dist-info → elasticsearch-9.1.1.dist-info}/METADATA +3 -4
  91. elasticsearch-9.1.1.dist-info/RECORD +163 -0
  92. elasticsearch-9.0.4.dist-info/RECORD +0 -163
  93. {elasticsearch-9.0.4.dist-info → elasticsearch-9.1.1.dist-info}/WHEEL +0 -0
  94. {elasticsearch-9.0.4.dist-info → elasticsearch-9.1.1.dist-info}/licenses/LICENSE +0 -0
  95. {elasticsearch-9.0.4.dist-info → elasticsearch-9.1.1.dist-info}/licenses/NOTICE +0 -0
@@ -44,7 +44,7 @@ class TransformClient(NamespacedClient):
44
44
  <p>Delete a transform.</p>
45
45
 
46
46
 
47
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-delete-transform>`_
47
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-delete-transform>`_
48
48
 
49
49
  :param transform_id: Identifier for the transform.
50
50
  :param delete_dest_index: If this value is true, the destination index is deleted
@@ -108,7 +108,7 @@ class TransformClient(NamespacedClient):
108
108
  Get configuration information for transforms.</p>
109
109
 
110
110
 
111
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-get-transform>`_
111
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-get-transform>`_
112
112
 
113
113
  :param transform_id: Identifier for the transform. It can be a transform identifier
114
114
  or a wildcard expression. You can get information for all transforms by using
@@ -181,7 +181,7 @@ class TransformClient(NamespacedClient):
181
181
  <p>Get usage information for transforms.</p>
182
182
 
183
183
 
184
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-get-transform-stats>`_
184
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-get-transform-stats>`_
185
185
 
186
186
  :param transform_id: Identifier for the transform. It can be a transform identifier
187
187
  or a wildcard expression. You can get information for all transforms by using
@@ -269,7 +269,7 @@ class TransformClient(NamespacedClient):
269
269
  types of the source index and the transform aggregations.</p>
270
270
 
271
271
 
272
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-preview-transform>`_
272
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-preview-transform>`_
273
273
 
274
274
  :param transform_id: Identifier for the transform to preview. If you specify
275
275
  this path parameter, you cannot provide transform configuration details in
@@ -406,7 +406,7 @@ class TransformClient(NamespacedClient):
406
406
  give users any privileges on <code>.data-frame-internal*</code> indices.</p>
407
407
 
408
408
 
409
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-put-transform>`_
409
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-put-transform>`_
410
410
 
411
411
  :param transform_id: Identifier for the transform. This identifier can contain
412
412
  lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores.
@@ -512,7 +512,7 @@ class TransformClient(NamespacedClient):
512
512
  If the destination index was created by the transform, it is deleted.</p>
513
513
 
514
514
 
515
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-reset-transform>`_
515
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-reset-transform>`_
516
516
 
517
517
  :param transform_id: Identifier for the transform. This identifier can contain
518
518
  lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores.
@@ -572,7 +572,7 @@ class TransformClient(NamespacedClient):
572
572
  is called again in the meantime.</p>
573
573
 
574
574
 
575
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-schedule-now-transform>`_
575
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-schedule-now-transform>`_
576
576
 
577
577
  :param transform_id: Identifier for the transform.
578
578
  :param timeout: Controls the time to wait for the scheduling to take place
@@ -695,7 +695,7 @@ class TransformClient(NamespacedClient):
695
695
  destination indices, the transform fails when it attempts unauthorized operations.</p>
696
696
 
697
697
 
698
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-start-transform>`_
698
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-start-transform>`_
699
699
 
700
700
  :param transform_id: Identifier for the transform.
701
701
  :param from_: Restricts the set of transformed entities to those changed after
@@ -753,7 +753,7 @@ class TransformClient(NamespacedClient):
753
753
  Stops one or more transforms.</p>
754
754
 
755
755
 
756
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-stop-transform>`_
756
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-stop-transform>`_
757
757
 
758
758
  :param transform_id: Identifier for the transform. To stop multiple transforms,
759
759
  use a comma-separated list or a wildcard expression. To stop all transforms,
@@ -855,7 +855,7 @@ class TransformClient(NamespacedClient):
855
855
  time of update and runs with those privileges.</p>
856
856
 
857
857
 
858
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-update-transform>`_
858
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-update-transform>`_
859
859
 
860
860
  :param transform_id: Identifier for the transform.
861
861
  :param defer_validation: When true, deferrable validations are not run. This
@@ -950,7 +950,7 @@ class TransformClient(NamespacedClient):
950
950
  You may want to perform a recent cluster backup prior to the upgrade.</p>
951
951
 
952
952
 
953
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-upgrade-transforms>`_
953
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-upgrade-transforms>`_
954
954
 
955
955
  :param dry_run: When true, the request checks for updates but does not run them.
956
956
  :param timeout: Period to wait for a response. If no response is received before
@@ -49,7 +49,7 @@ class WatcherClient(NamespacedClient):
49
49
  To demonstrate how throttling works in practice and how it can be configured for individual actions within a watch, refer to External documentation.</p>
50
50
 
51
51
 
52
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-watcher-ack-watch>`_
52
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-ack-watch>`_
53
53
 
54
54
  :param watch_id: The watch identifier.
55
55
  :param action_id: A comma-separated list of the action identifiers to acknowledge.
@@ -105,7 +105,7 @@ class WatcherClient(NamespacedClient):
105
105
  A watch can be either active or inactive.</p>
106
106
 
107
107
 
108
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-watcher-activate-watch>`_
108
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-activate-watch>`_
109
109
 
110
110
  :param watch_id: The watch identifier.
111
111
  """
@@ -149,7 +149,7 @@ class WatcherClient(NamespacedClient):
149
149
  A watch can be either active or inactive.</p>
150
150
 
151
151
 
152
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-watcher-deactivate-watch>`_
152
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-deactivate-watch>`_
153
153
 
154
154
  :param watch_id: The watch identifier.
155
155
  """
@@ -197,7 +197,7 @@ class WatcherClient(NamespacedClient):
197
197
  When Elasticsearch security features are enabled, make sure no write privileges are granted to anyone for the <code>.watches</code> index.</p>
198
198
 
199
199
 
200
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-watcher-delete-watch>`_
200
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-delete-watch>`_
201
201
 
202
202
  :param id: The watch identifier.
203
203
  """
@@ -279,7 +279,7 @@ class WatcherClient(NamespacedClient):
279
279
  Refer to the external documentation for examples of watch execution requests, including existing, customized, and inline watches.</p>
280
280
 
281
281
 
282
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-watcher-execute-watch>`_
282
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-execute-watch>`_
283
283
 
284
284
  :param id: The watch identifier.
285
285
  :param action_modes: Determines how to handle the watch actions as part of the
@@ -367,7 +367,7 @@ class WatcherClient(NamespacedClient):
367
367
  Only a subset of settings are shown, for example <code>index.auto_expand_replicas</code> and <code>index.number_of_replicas</code>.</p>
368
368
 
369
369
 
370
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-watcher-get-settings>`_
370
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-get-settings>`_
371
371
 
372
372
  :param master_timeout: The period to wait for a connection to the master node.
373
373
  If no response is received before the timeout expires, the request fails
@@ -412,7 +412,7 @@ class WatcherClient(NamespacedClient):
412
412
  <p>Get a watch.</p>
413
413
 
414
414
 
415
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-watcher-get-watch>`_
415
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-get-watch>`_
416
416
 
417
417
  :param id: The watch identifier.
418
418
  """
@@ -487,7 +487,7 @@ class WatcherClient(NamespacedClient):
487
487
  If the user is able to read index <code>a</code>, but not index <code>b</code>, the same will apply when the watch runs.</p>
488
488
 
489
489
 
490
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-watcher-put-watch>`_
490
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-put-watch>`_
491
491
 
492
492
  :param id: The identifier for the watch.
493
493
  :param actions: The list of actions that will be run if the condition matches.
@@ -600,7 +600,7 @@ class WatcherClient(NamespacedClient):
600
600
  <p>Note that only the <code>_id</code> and <code>metadata.*</code> fields are queryable or sortable.</p>
601
601
 
602
602
 
603
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-watcher-query-watches>`_
603
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-query-watches>`_
604
604
 
605
605
  :param from_: The offset from the first result to fetch. It must be non-negative.
606
606
  :param query: A query that filters the watches to be returned.
@@ -675,7 +675,7 @@ class WatcherClient(NamespacedClient):
675
675
  Start the Watcher service if it is not already running.</p>
676
676
 
677
677
 
678
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-watcher-start>`_
678
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-start>`_
679
679
 
680
680
  :param master_timeout: Period to wait for a connection to the master node.
681
681
  """
@@ -741,7 +741,7 @@ class WatcherClient(NamespacedClient):
741
741
  You retrieve more metrics by using the metric parameter.</p>
742
742
 
743
743
 
744
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-watcher-stats>`_
744
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-stats>`_
745
745
 
746
746
  :param metric: Defines which additional metrics are included in the response.
747
747
  :param emit_stacktraces: Defines whether stack traces are generated for each
@@ -792,7 +792,7 @@ class WatcherClient(NamespacedClient):
792
792
  Stop the Watcher service if it is running.</p>
793
793
 
794
794
 
795
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-watcher-stop>`_
795
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-stop>`_
796
796
 
797
797
  :param master_timeout: The period to wait for the master node. If the master
798
798
  node is not available before the timeout expires, the request fails and returns
@@ -853,7 +853,7 @@ class WatcherClient(NamespacedClient):
853
853
  Watcher shards must always be in the <code>data_content</code> tier.</p>
854
854
 
855
855
 
856
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-watcher-update-settings>`_
856
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-update-settings>`_
857
857
 
858
858
  :param index_auto_expand_replicas:
859
859
  :param index_number_of_replicas:
@@ -54,7 +54,7 @@ class XPackClient(NamespacedClient):
54
54
  </ul>
55
55
 
56
56
 
57
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-info>`_
57
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-info>`_
58
58
 
59
59
  :param accept_enterprise: If this param is used it must be set to true
60
60
  :param categories: A comma-separated list of the information categories to include
@@ -103,7 +103,7 @@ class XPackClient(NamespacedClient):
103
103
  The API also provides some usage statistics.</p>
104
104
 
105
105
 
106
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-xpack>`_
106
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-xpack>`_
107
107
 
108
108
  :param master_timeout: The period to wait for a connection to the master node.
109
109
  If no response is received before the timeout expires, the request fails
elasticsearch/_otel.py CHANGED
@@ -67,7 +67,7 @@ class OpenTelemetry:
67
67
  *,
68
68
  endpoint_id: str | None,
69
69
  path_parts: Mapping[str, str],
70
- ) -> Generator[OpenTelemetrySpan, None, None]:
70
+ ) -> Generator[OpenTelemetrySpan]:
71
71
  if not self.enabled or self.tracer is None:
72
72
  yield OpenTelemetrySpan(None)
73
73
  return
@@ -75,11 +75,11 @@ class OpenTelemetry:
75
75
  span_name = endpoint_id or method
76
76
  with self.tracer.start_as_current_span(span_name) as otel_span:
77
77
  otel_span.set_attribute("http.request.method", method)
78
- otel_span.set_attribute("db.system", "elasticsearch")
78
+ otel_span.set_attribute("db.system.name", "elasticsearch")
79
79
  if endpoint_id is not None:
80
- otel_span.set_attribute("db.operation", endpoint_id)
80
+ otel_span.set_attribute("db.operation.name", endpoint_id)
81
81
  for key, value in path_parts.items():
82
- otel_span.set_attribute(f"db.elasticsearch.path_parts.{key}", value)
82
+ otel_span.set_attribute(f"db.operation.parameter.{key}", value)
83
83
 
84
84
  yield OpenTelemetrySpan(
85
85
  otel_span,
@@ -88,20 +88,20 @@ class OpenTelemetry:
88
88
  )
89
89
 
90
90
  @contextlib.contextmanager
91
- def helpers_span(self, span_name: str) -> Generator[OpenTelemetrySpan, None, None]:
91
+ def helpers_span(self, span_name: str) -> Generator[OpenTelemetrySpan]:
92
92
  if not self.enabled or self.tracer is None:
93
93
  yield OpenTelemetrySpan(None)
94
94
  return
95
95
 
96
96
  with self.tracer.start_as_current_span(span_name) as otel_span:
97
- otel_span.set_attribute("db.system", "elasticsearch")
98
- otel_span.set_attribute("db.operation", span_name)
97
+ otel_span.set_attribute("db.system.name", "elasticsearch")
98
+ otel_span.set_attribute("db.operation.name", span_name)
99
99
  # Without a request method, Elastic APM does not display the traces
100
100
  otel_span.set_attribute("http.request.method", "null")
101
101
  yield OpenTelemetrySpan(otel_span)
102
102
 
103
103
  @contextlib.contextmanager
104
- def use_span(self, span: OpenTelemetrySpan) -> Generator[None, None, None]:
104
+ def use_span(self, span: OpenTelemetrySpan) -> Generator[None]:
105
105
  if not self.enabled or self.tracer is None or span.otel_span is None:
106
106
  yield
107
107
  return
@@ -640,7 +640,7 @@ class Elasticsearch(BaseClient):
640
640
  Refer to the linked documentation for step-by-step instructions using the index settings API.</p>
641
641
 
642
642
 
643
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-bulk>`_
643
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-bulk>`_
644
644
 
645
645
  :param operations:
646
646
  :param index: The name of the data stream, index, or index alias to perform bulk
@@ -765,7 +765,7 @@ class Elasticsearch(BaseClient):
765
765
  Clear the search context and results for a scrolling search.</p>
766
766
 
767
767
 
768
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-clear-scroll>`_
768
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-clear-scroll>`_
769
769
 
770
770
  :param scroll_id: The scroll IDs to clear. To clear all scroll IDs, use `_all`.
771
771
  """
@@ -822,7 +822,7 @@ class Elasticsearch(BaseClient):
822
822
  However, keeping points in time has a cost; close them as soon as they are no longer required for search requests.</p>
823
823
 
824
824
 
825
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-open-point-in-time>`_
825
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-open-point-in-time>`_
826
826
 
827
827
  :param id: The ID of the point-in-time.
828
828
  """
@@ -906,7 +906,7 @@ class Elasticsearch(BaseClient):
906
906
  This means that replicas increase the scalability of the count.</p>
907
907
 
908
908
 
909
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-count>`_
909
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-count>`_
910
910
 
911
911
  :param index: A comma-separated list of data streams, indices, and aliases to
912
912
  search. It supports wildcards (`*`). To search all data streams and indices,
@@ -1105,7 +1105,7 @@ class Elasticsearch(BaseClient):
1105
1105
  The <code>_shards</code> section of the API response reveals the number of shard copies on which replication succeeded and failed.</p>
1106
1106
 
1107
1107
 
1108
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-create>`_
1108
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-create>`_
1109
1109
 
1110
1110
  :param index: The name of the data stream or index to target. If the target doesn't
1111
1111
  exist and matches the name or wildcard (`*`) pattern of an index template
@@ -1256,7 +1256,7 @@ class Elasticsearch(BaseClient):
1256
1256
  It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group.</p>
1257
1257
 
1258
1258
 
1259
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-delete>`_
1259
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-delete>`_
1260
1260
 
1261
1261
  :param index: The name of the target index.
1262
1262
  :param id: A unique identifier for the document.
@@ -1450,7 +1450,7 @@ class Elasticsearch(BaseClient):
1450
1450
  The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself.</p>
1451
1451
 
1452
1452
 
1453
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-delete-by-query>`_
1453
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-delete-by-query>`_
1454
1454
 
1455
1455
  :param index: A comma-separated list of data streams, indices, and aliases to
1456
1456
  search. It supports wildcards (`*`). To search all data streams or indices,
@@ -1632,7 +1632,7 @@ class Elasticsearch(BaseClient):
1632
1632
  def delete_by_query_rethrottle(
1633
1633
  self,
1634
1634
  *,
1635
- task_id: t.Union[int, str],
1635
+ task_id: str,
1636
1636
  error_trace: t.Optional[bool] = None,
1637
1637
  filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
1638
1638
  human: t.Optional[bool] = None,
@@ -1647,7 +1647,7 @@ class Elasticsearch(BaseClient):
1647
1647
  Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts.</p>
1648
1648
 
1649
1649
 
1650
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-delete-by-query-rethrottle>`_
1650
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-delete-by-query-rethrottle>`_
1651
1651
 
1652
1652
  :param task_id: The ID for the task.
1653
1653
  :param requests_per_second: The throttle for this request in sub-requests per
@@ -1697,7 +1697,7 @@ class Elasticsearch(BaseClient):
1697
1697
  Deletes a stored script or search template.</p>
1698
1698
 
1699
1699
 
1700
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-delete-script>`_
1700
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-delete-script>`_
1701
1701
 
1702
1702
  :param id: The identifier for the stored script or search template.
1703
1703
  :param master_timeout: The period to wait for a connection to the master node.
@@ -1781,7 +1781,7 @@ class Elasticsearch(BaseClient):
1781
1781
  Elasticsearch cleans up deleted documents in the background as you continue to index more data.</p>
1782
1782
 
1783
1783
 
1784
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-get>`_
1784
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get>`_
1785
1785
 
1786
1786
  :param index: A comma-separated list of data streams, indices, and aliases. It
1787
1787
  supports wildcards (`*`).
@@ -1904,7 +1904,7 @@ class Elasticsearch(BaseClient):
1904
1904
  <p>A document's source is not available if it is disabled in the mapping.</p>
1905
1905
 
1906
1906
 
1907
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-get>`_
1907
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get>`_
1908
1908
 
1909
1909
  :param index: A comma-separated list of data streams, indices, and aliases. It
1910
1910
  supports wildcards (`*`).
@@ -2010,7 +2010,7 @@ class Elasticsearch(BaseClient):
2010
2010
  It computes a score explanation for a query and a specific document.</p>
2011
2011
 
2012
2012
 
2013
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-explain>`_
2013
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-explain>`_
2014
2014
 
2015
2015
  :param index: Index names that are used to limit the request. Only a single index
2016
2016
  name can be provided to this parameter.
@@ -2145,7 +2145,7 @@ class Elasticsearch(BaseClient):
2145
2145
  For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the <code>keyword</code> family.</p>
2146
2146
 
2147
2147
 
2148
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-field-caps>`_
2148
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-field-caps>`_
2149
2149
 
2150
2150
  :param index: A comma-separated list of data streams, indices, and aliases used
2151
2151
  to limit the request. Supports wildcards (*). To target all data streams
@@ -2306,7 +2306,7 @@ class Elasticsearch(BaseClient):
2306
2306
  Elasticsearch cleans up deleted documents in the background as you continue to index more data.</p>
2307
2307
 
2308
2308
 
2309
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-get>`_
2309
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get>`_
2310
2310
 
2311
2311
  :param index: The name of the index that contains the document.
2312
2312
  :param id: A unique document identifier.
@@ -2413,7 +2413,7 @@ class Elasticsearch(BaseClient):
2413
2413
  Retrieves a stored script or search template.</p>
2414
2414
 
2415
2415
 
2416
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-get-script>`_
2416
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get-script>`_
2417
2417
 
2418
2418
  :param id: The identifier for the stored script or search template.
2419
2419
  :param master_timeout: The period to wait for the master node. If the master
@@ -2462,7 +2462,7 @@ class Elasticsearch(BaseClient):
2462
2462
  <p>Get a list of supported script contexts and their methods.</p>
2463
2463
 
2464
2464
 
2465
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-get-script-context>`_
2465
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get-script-context>`_
2466
2466
  """
2467
2467
  __path_parts: t.Dict[str, str] = {}
2468
2468
  __path = "/_script_context"
@@ -2501,7 +2501,7 @@ class Elasticsearch(BaseClient):
2501
2501
  <p>Get a list of available script types, languages, and contexts.</p>
2502
2502
 
2503
2503
 
2504
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-get-script-languages>`_
2504
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get-script-languages>`_
2505
2505
  """
2506
2506
  __path_parts: t.Dict[str, str] = {}
2507
2507
  __path = "/_script_language"
@@ -2565,7 +2565,7 @@ class Elasticsearch(BaseClient):
2565
2565
  </code></pre>
2566
2566
 
2567
2567
 
2568
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-get>`_
2568
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get>`_
2569
2569
 
2570
2570
  :param index: The name of the index that contains the document.
2571
2571
  :param id: A unique document identifier.
@@ -2661,7 +2661,7 @@ class Elasticsearch(BaseClient):
2661
2661
  When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic.</p>
2662
2662
 
2663
2663
 
2664
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-health-report>`_
2664
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-health-report>`_
2665
2665
 
2666
2666
  :param feature: A feature of the cluster, as returned by the top-level health
2667
2667
  report API.
@@ -2827,7 +2827,7 @@ class Elasticsearch(BaseClient):
2827
2827
  </code></pre>
2828
2828
 
2829
2829
 
2830
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-create>`_
2830
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-create>`_
2831
2831
 
2832
2832
  :param index: The name of the data stream or index to target. If the target doesn't
2833
2833
  exist and matches the name or wildcard (`*`) pattern of an index template
@@ -2964,7 +2964,7 @@ class Elasticsearch(BaseClient):
2964
2964
  ::: In Serverless, this API is retained for backward compatibility only. Some response fields, such as the version number, should be ignored.</p>
2965
2965
 
2966
2966
 
2967
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-info>`_
2967
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-info>`_
2968
2968
  """
2969
2969
  __path_parts: t.Dict[str, str] = {}
2970
2970
  __path = "/"
@@ -3033,7 +3033,7 @@ class Elasticsearch(BaseClient):
3033
3033
  You can include the <code>stored_fields</code> query parameter in the request URI to specify the defaults to use when there are no per-document instructions.</p>
3034
3034
 
3035
3035
 
3036
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-mget>`_
3036
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-mget>`_
3037
3037
 
3038
3038
  :param index: Name of the index to retrieve documents from when `ids` are specified,
3039
3039
  or when a document in the `docs` array does not specify an index.
@@ -3168,7 +3168,7 @@ class Elasticsearch(BaseClient):
3168
3168
  When sending requests to this endpoint the <code>Content-Type</code> header should be set to <code>application/x-ndjson</code>.</p>
3169
3169
 
3170
3170
 
3171
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-msearch>`_
3171
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-msearch>`_
3172
3172
 
3173
3173
  :param searches:
3174
3174
  :param index: Comma-separated list of data streams, indices, and index aliases
@@ -3315,7 +3315,7 @@ class Elasticsearch(BaseClient):
3315
3315
  </code></pre>
3316
3316
 
3317
3317
 
3318
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-msearch-template>`_
3318
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-msearch-template>`_
3319
3319
 
3320
3320
  :param search_templates:
3321
3321
  :param index: A comma-separated list of data streams, indices, and aliases to
@@ -3420,7 +3420,7 @@ class Elasticsearch(BaseClient):
3420
3420
  The mapping used is determined by the specified <code>_index</code>.</p>
3421
3421
 
3422
3422
 
3423
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-mtermvectors>`_
3423
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-mtermvectors>`_
3424
3424
 
3425
3425
  :param index: The name of the index that contains the documents.
3426
3426
  :param docs: An array of existing or artificial documents.
@@ -3561,7 +3561,7 @@ class Elasticsearch(BaseClient):
3561
3561
  You can check how many point-in-times (that is, search contexts) are open with the nodes stats API.</p>
3562
3562
 
3563
3563
 
3564
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-open-point-in-time>`_
3564
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-open-point-in-time>`_
3565
3565
 
3566
3566
  :param index: A comma-separated list of index names to open point in time; use
3567
3567
  `_all` or empty string to perform the operation on all indices
@@ -3658,7 +3658,7 @@ class Elasticsearch(BaseClient):
3658
3658
  Creates or updates a stored script or search template.</p>
3659
3659
 
3660
3660
 
3661
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-put-script>`_
3661
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-put-script>`_
3662
3662
 
3663
3663
  :param id: The identifier for the stored script or search template. It must be
3664
3664
  unique within the cluster.
@@ -3748,7 +3748,7 @@ class Elasticsearch(BaseClient):
3748
3748
  <p>Evaluate the quality of ranked search results over a set of typical search queries.</p>
3749
3749
 
3750
3750
 
3751
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-rank-eval>`_
3751
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-rank-eval>`_
3752
3752
 
3753
3753
  :param requests: A set of typical search requests, together with their provided
3754
3754
  ratings.
@@ -3884,7 +3884,7 @@ class Elasticsearch(BaseClient):
3884
3884
  <p>Refer to the linked documentation for examples of how to reindex documents.</p>
3885
3885
 
3886
3886
 
3887
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-reindex>`_
3887
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-reindex>`_
3888
3888
 
3889
3889
  :param dest: The destination you are copying to.
3890
3890
  :param source: The source you are copying from.
@@ -4008,7 +4008,7 @@ class Elasticsearch(BaseClient):
4008
4008
  This behavior prevents scroll timeouts.</p>
4009
4009
 
4010
4010
 
4011
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-reindex>`_
4011
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-reindex>`_
4012
4012
 
4013
4013
  :param task_id: The task identifier, which can be found by using the tasks API.
4014
4014
  :param requests_per_second: The throttle for this request in sub-requests per
@@ -4064,7 +4064,7 @@ class Elasticsearch(BaseClient):
4064
4064
  <p>Render a search template as a search request body.</p>
4065
4065
 
4066
4066
 
4067
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-render-search-template>`_
4067
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-render-search-template>`_
4068
4068
 
4069
4069
  :param id: The ID of the search template to render. If no `source` is specified,
4070
4070
  this or the `id` request body parameter is required.
@@ -4231,7 +4231,7 @@ class Elasticsearch(BaseClient):
4231
4231
  <p>IMPORTANT: Results from a scrolling search reflect the state of the index at the time of the initial search request. Subsequent indexing or document changes only affect later search and scroll requests.</p>
4232
4232
 
4233
4233
 
4234
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-scroll>`_
4234
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-scroll>`_
4235
4235
 
4236
4236
  :param scroll_id: The scroll ID of the search.
4237
4237
  :param rest_total_hits_as_int: If true, the API response’s hit.total property
@@ -4436,7 +4436,7 @@ class Elasticsearch(BaseClient):
4436
4436
  This situation can occur because the splitting criterion is based on Lucene document IDs, which are not stable across changes to the index.</p>
4437
4437
 
4438
4438
 
4439
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search>`_
4439
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search>`_
4440
4440
 
4441
4441
  :param index: A comma-separated list of data streams, indices, and aliases to
4442
4442
  search. It supports wildcards (`*`). To search all data streams and indices,
@@ -5140,7 +5140,7 @@ class Elasticsearch(BaseClient):
5140
5140
  <p>Learn how to use the vector tile search API with practical examples in the <a href="https://www.elastic.co/docs/reference/elasticsearch/rest-apis/vector-tile-search">Vector tile search examples</a> guide.</p>
5141
5141
 
5142
5142
 
5143
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-mvt>`_
5143
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-mvt>`_
5144
5144
 
5145
5145
  :param index: Comma-separated list of data streams, indices, or aliases to search
5146
5146
  :param field: Field containing geospatial data to return
@@ -5314,7 +5314,7 @@ class Elasticsearch(BaseClient):
5314
5314
  <p>If the Elasticsearch security features are enabled, you must have the <code>view_index_metadata</code> or <code>manage</code> index privilege for the target data stream, index, or alias.</p>
5315
5315
 
5316
5316
 
5317
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-shards>`_
5317
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-shards>`_
5318
5318
 
5319
5319
  :param index: A comma-separated list of data streams, indices, and aliases to
5320
5320
  search. It supports wildcards (`*`). To search all data streams and indices,
@@ -5425,7 +5425,7 @@ class Elasticsearch(BaseClient):
5425
5425
  <p>Run a search with a search template.</p>
5426
5426
 
5427
5427
 
5428
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-template>`_
5428
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-template>`_
5429
5429
 
5430
5430
  :param index: A comma-separated list of data streams, indices, and aliases to
5431
5431
  search. It supports wildcards (`*`).
@@ -5567,7 +5567,7 @@ class Elasticsearch(BaseClient):
5567
5567
  </blockquote>
5568
5568
 
5569
5569
 
5570
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-terms-enum>`_
5570
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-terms-enum>`_
5571
5571
 
5572
5572
  :param index: A comma-separated list of data streams, indices, and index aliases
5573
5573
  to search. Wildcard (`*`) expressions are supported. To search all data streams
@@ -5717,7 +5717,7 @@ class Elasticsearch(BaseClient):
5717
5717
  Refer to the linked documentation for detailed examples of how to use this API.</p>
5718
5718
 
5719
5719
 
5720
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-termvectors>`_
5720
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-termvectors>`_
5721
5721
 
5722
5722
  :param index: The name of the index that contains the document.
5723
5723
  :param id: A unique identifier for the document.
@@ -5889,7 +5889,7 @@ class Elasticsearch(BaseClient):
5889
5889
  For usage examples such as partial updates, upserts, and scripted updates, see the External documentation.</p>
5890
5890
 
5891
5891
 
5892
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-update>`_
5892
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-update>`_
5893
5893
 
5894
5894
  :param index: The name of the target index. By default, the index is created
5895
5895
  automatically if it doesn't exist.
@@ -6135,7 +6135,7 @@ class Elasticsearch(BaseClient):
6135
6135
  Refer to the linked documentation for examples of how to update documents using the <code>_update_by_query</code> API:</p>
6136
6136
 
6137
6137
 
6138
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-update-by-query>`_
6138
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-update-by-query>`_
6139
6139
 
6140
6140
  :param index: A comma-separated list of data streams, indices, and aliases to
6141
6141
  search. It supports wildcards (`*`). To search all data streams or indices,
@@ -6354,7 +6354,7 @@ class Elasticsearch(BaseClient):
6354
6354
  Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts.</p>
6355
6355
 
6356
6356
 
6357
- `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-update-by-query-rethrottle>`_
6357
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-update-by-query-rethrottle>`_
6358
6358
 
6359
6359
  :param task_id: The ID for the task.
6360
6360
  :param requests_per_second: The throttle for this request in sub-requests per