elasticsearch 8.17.0__py3-none-any.whl → 8.17.2__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.
- elasticsearch/__init__.py +2 -2
- elasticsearch/_async/client/__init__.py +2034 -740
- elasticsearch/_async/client/async_search.py +33 -22
- elasticsearch/_async/client/autoscaling.py +27 -21
- elasticsearch/_async/client/cat.py +280 -336
- elasticsearch/_async/client/ccr.py +96 -70
- elasticsearch/_async/client/cluster.py +152 -144
- elasticsearch/_async/client/connector.py +488 -55
- elasticsearch/_async/client/dangling_indices.py +22 -16
- elasticsearch/_async/client/enrich.py +25 -6
- elasticsearch/_async/client/eql.py +22 -9
- elasticsearch/_async/client/esql.py +295 -3
- elasticsearch/_async/client/features.py +25 -25
- elasticsearch/_async/client/fleet.py +15 -9
- elasticsearch/_async/client/graph.py +9 -8
- elasticsearch/_async/client/ilm.py +91 -61
- elasticsearch/_async/client/indices.py +746 -324
- elasticsearch/_async/client/inference.py +101 -4
- elasticsearch/_async/client/ingest.py +231 -19
- elasticsearch/_async/client/license.py +48 -31
- elasticsearch/_async/client/logstash.py +20 -6
- elasticsearch/_async/client/migration.py +25 -7
- elasticsearch/_async/client/ml.py +532 -278
- elasticsearch/_async/client/monitoring.py +5 -1
- elasticsearch/_async/client/nodes.py +46 -30
- elasticsearch/_async/client/query_rules.py +65 -18
- elasticsearch/_async/client/rollup.py +126 -13
- elasticsearch/_async/client/search_application.py +170 -13
- elasticsearch/_async/client/searchable_snapshots.py +45 -23
- elasticsearch/_async/client/security.py +1299 -340
- elasticsearch/_async/client/shutdown.py +43 -15
- elasticsearch/_async/client/simulate.py +145 -0
- elasticsearch/_async/client/slm.py +163 -19
- elasticsearch/_async/client/snapshot.py +288 -23
- elasticsearch/_async/client/sql.py +94 -53
- elasticsearch/_async/client/ssl.py +16 -17
- elasticsearch/_async/client/synonyms.py +67 -26
- elasticsearch/_async/client/tasks.py +103 -28
- elasticsearch/_async/client/text_structure.py +475 -46
- elasticsearch/_async/client/transform.py +108 -72
- elasticsearch/_async/client/watcher.py +245 -43
- elasticsearch/_async/client/xpack.py +20 -6
- elasticsearch/_async/helpers.py +1 -1
- elasticsearch/_sync/client/__init__.py +2034 -740
- elasticsearch/_sync/client/async_search.py +33 -22
- elasticsearch/_sync/client/autoscaling.py +27 -21
- elasticsearch/_sync/client/cat.py +280 -336
- elasticsearch/_sync/client/ccr.py +96 -70
- elasticsearch/_sync/client/cluster.py +152 -144
- elasticsearch/_sync/client/connector.py +488 -55
- elasticsearch/_sync/client/dangling_indices.py +22 -16
- elasticsearch/_sync/client/enrich.py +25 -6
- elasticsearch/_sync/client/eql.py +22 -9
- elasticsearch/_sync/client/esql.py +295 -3
- elasticsearch/_sync/client/features.py +25 -25
- elasticsearch/_sync/client/fleet.py +15 -9
- elasticsearch/_sync/client/graph.py +9 -8
- elasticsearch/_sync/client/ilm.py +91 -61
- elasticsearch/_sync/client/indices.py +746 -324
- elasticsearch/_sync/client/inference.py +101 -4
- elasticsearch/_sync/client/ingest.py +231 -19
- elasticsearch/_sync/client/license.py +48 -31
- elasticsearch/_sync/client/logstash.py +20 -6
- elasticsearch/_sync/client/migration.py +25 -7
- elasticsearch/_sync/client/ml.py +532 -278
- elasticsearch/_sync/client/monitoring.py +5 -1
- elasticsearch/_sync/client/nodes.py +46 -30
- elasticsearch/_sync/client/query_rules.py +65 -18
- elasticsearch/_sync/client/rollup.py +126 -13
- elasticsearch/_sync/client/search_application.py +170 -13
- elasticsearch/_sync/client/searchable_snapshots.py +45 -23
- elasticsearch/_sync/client/security.py +1299 -340
- elasticsearch/_sync/client/shutdown.py +43 -15
- elasticsearch/_sync/client/simulate.py +145 -0
- elasticsearch/_sync/client/slm.py +163 -19
- elasticsearch/_sync/client/snapshot.py +288 -23
- elasticsearch/_sync/client/sql.py +94 -53
- elasticsearch/_sync/client/ssl.py +16 -17
- elasticsearch/_sync/client/synonyms.py +67 -26
- elasticsearch/_sync/client/tasks.py +103 -28
- elasticsearch/_sync/client/text_structure.py +475 -46
- elasticsearch/_sync/client/transform.py +108 -72
- elasticsearch/_sync/client/utils.py +1 -1
- elasticsearch/_sync/client/watcher.py +245 -43
- elasticsearch/_sync/client/xpack.py +20 -6
- elasticsearch/_version.py +1 -1
- elasticsearch/client.py +4 -0
- elasticsearch/helpers/actions.py +1 -1
- elasticsearch/helpers/vectorstore/_sync/vectorstore.py +4 -1
- {elasticsearch-8.17.0.dist-info → elasticsearch-8.17.2.dist-info}/METADATA +1 -1
- elasticsearch-8.17.2.dist-info/RECORD +119 -0
- elasticsearch-8.17.0.dist-info/RECORD +0 -117
- {elasticsearch-8.17.0.dist-info → elasticsearch-8.17.2.dist-info}/WHEEL +0 -0
- {elasticsearch-8.17.0.dist-info → elasticsearch-8.17.2.dist-info}/licenses/LICENSE +0 -0
- {elasticsearch-8.17.0.dist-info → elasticsearch-8.17.2.dist-info}/licenses/NOTICE +0 -0
|
@@ -36,11 +36,13 @@ class AsyncSearchClient(NamespacedClient):
|
|
|
36
36
|
pretty: t.Optional[bool] = None,
|
|
37
37
|
) -> ObjectApiResponse[t.Any]:
|
|
38
38
|
"""
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
.. raw:: html
|
|
40
|
+
|
|
41
|
+
<p>Delete an async search.</p>
|
|
42
|
+
<p>If the asynchronous search is still running, it is cancelled.
|
|
43
|
+
Otherwise, the saved search results are deleted.
|
|
44
|
+
If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the <code>cancel_task</code> cluster privilege.</p>
|
|
45
|
+
|
|
44
46
|
|
|
45
47
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html>`_
|
|
46
48
|
|
|
@@ -85,10 +87,12 @@ class AsyncSearchClient(NamespacedClient):
|
|
|
85
87
|
] = None,
|
|
86
88
|
) -> ObjectApiResponse[t.Any]:
|
|
87
89
|
"""
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
.. raw:: html
|
|
91
|
+
|
|
92
|
+
<p>Get async search results.</p>
|
|
93
|
+
<p>Retrieve the results of a previously submitted asynchronous search request.
|
|
94
|
+
If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it.</p>
|
|
95
|
+
|
|
92
96
|
|
|
93
97
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html>`_
|
|
94
98
|
|
|
@@ -149,10 +153,12 @@ class AsyncSearchClient(NamespacedClient):
|
|
|
149
153
|
pretty: t.Optional[bool] = None,
|
|
150
154
|
) -> ObjectApiResponse[t.Any]:
|
|
151
155
|
"""
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
+
.. raw:: html
|
|
157
|
+
|
|
158
|
+
<p>Get the async search status.</p>
|
|
159
|
+
<p>Get the status of a previously submitted async search request given its identifier, without retrieving search results.
|
|
160
|
+
If the Elasticsearch security features are enabled, use of this API is restricted to the <code>monitoring_user</code> role.</p>
|
|
161
|
+
|
|
156
162
|
|
|
157
163
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html>`_
|
|
158
164
|
|
|
@@ -264,6 +270,7 @@ class AsyncSearchClient(NamespacedClient):
|
|
|
264
270
|
ignore_throttled: t.Optional[bool] = None,
|
|
265
271
|
ignore_unavailable: t.Optional[bool] = None,
|
|
266
272
|
indices_boost: t.Optional[t.Sequence[t.Mapping[str, float]]] = None,
|
|
273
|
+
keep_alive: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
267
274
|
keep_on_completion: t.Optional[bool] = None,
|
|
268
275
|
knn: t.Optional[
|
|
269
276
|
t.Union[t.Mapping[str, t.Any], t.Sequence[t.Mapping[str, t.Any]]]
|
|
@@ -326,15 +333,14 @@ class AsyncSearchClient(NamespacedClient):
|
|
|
326
333
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
327
334
|
) -> ObjectApiResponse[t.Any]:
|
|
328
335
|
"""
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
setting.
|
|
336
|
+
.. raw:: html
|
|
337
|
+
|
|
338
|
+
<p>Run an async search.</p>
|
|
339
|
+
<p>When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested.</p>
|
|
340
|
+
<p>Warning: Asynchronous search does not support scroll or search requests that include only the suggest section.</p>
|
|
341
|
+
<p>By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error.
|
|
342
|
+
The maximum allowed size for a stored async search response can be set by changing the <code>search.max_async_search_response_size</code> cluster level setting.</p>
|
|
343
|
+
|
|
338
344
|
|
|
339
345
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html>`_
|
|
340
346
|
|
|
@@ -379,6 +385,9 @@ class AsyncSearchClient(NamespacedClient):
|
|
|
379
385
|
:param ignore_unavailable: Whether specified concrete indices should be ignored
|
|
380
386
|
when unavailable (missing or closed)
|
|
381
387
|
:param indices_boost: Boosts the _score of documents from specified indices.
|
|
388
|
+
:param keep_alive: Specifies how long the async search needs to be available.
|
|
389
|
+
Ongoing async searches and any saved search results are deleted after this
|
|
390
|
+
period.
|
|
382
391
|
:param keep_on_completion: If `true`, results are stored for later retrieval
|
|
383
392
|
when the search completes within the `wait_for_completion_timeout`.
|
|
384
393
|
:param knn: Defines the approximate kNN search to run.
|
|
@@ -505,6 +514,8 @@ class AsyncSearchClient(NamespacedClient):
|
|
|
505
514
|
__query["ignore_throttled"] = ignore_throttled
|
|
506
515
|
if ignore_unavailable is not None:
|
|
507
516
|
__query["ignore_unavailable"] = ignore_unavailable
|
|
517
|
+
if keep_alive is not None:
|
|
518
|
+
__query["keep_alive"] = keep_alive
|
|
508
519
|
if keep_on_completion is not None:
|
|
509
520
|
__query["keep_on_completion"] = keep_on_completion
|
|
510
521
|
if lenient is not None:
|
|
@@ -38,9 +38,11 @@ class AutoscalingClient(NamespacedClient):
|
|
|
38
38
|
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
39
39
|
) -> ObjectApiResponse[t.Any]:
|
|
40
40
|
"""
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
.. raw:: html
|
|
42
|
+
|
|
43
|
+
<p>Delete an autoscaling policy.</p>
|
|
44
|
+
<p>NOTE: This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.</p>
|
|
45
|
+
|
|
44
46
|
|
|
45
47
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/autoscaling-delete-autoscaling-policy.html>`_
|
|
46
48
|
|
|
@@ -89,18 +91,18 @@ class AutoscalingClient(NamespacedClient):
|
|
|
89
91
|
pretty: t.Optional[bool] = None,
|
|
90
92
|
) -> ObjectApiResponse[t.Any]:
|
|
91
93
|
"""
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
94
|
+
.. raw:: html
|
|
95
|
+
|
|
96
|
+
<p>Get the autoscaling capacity.</p>
|
|
97
|
+
<p>NOTE: This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.</p>
|
|
98
|
+
<p>This API gets the current autoscaling capacity based on the configured autoscaling policy.
|
|
99
|
+
It will return information to size the cluster appropriately to the current workload.</p>
|
|
100
|
+
<p>The <code>required_capacity</code> is calculated as the maximum of the <code>required_capacity</code> result of all individual deciders that are enabled for the policy.</p>
|
|
101
|
+
<p>The operator should verify that the <code>current_nodes</code> match the operator’s knowledge of the cluster to avoid making autoscaling decisions based on stale or incomplete information.</p>
|
|
102
|
+
<p>The response contains decider-specific information you can use to diagnose how and why autoscaling determined a certain capacity was required.
|
|
103
|
+
This information is provided for diagnosis only.
|
|
104
|
+
Do not use this information to make autoscaling decisions.</p>
|
|
105
|
+
|
|
104
106
|
|
|
105
107
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/autoscaling-get-autoscaling-capacity.html>`_
|
|
106
108
|
|
|
@@ -143,9 +145,11 @@ class AutoscalingClient(NamespacedClient):
|
|
|
143
145
|
pretty: t.Optional[bool] = None,
|
|
144
146
|
) -> ObjectApiResponse[t.Any]:
|
|
145
147
|
"""
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
148
|
+
.. raw:: html
|
|
149
|
+
|
|
150
|
+
<p>Get an autoscaling policy.</p>
|
|
151
|
+
<p>NOTE: This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.</p>
|
|
152
|
+
|
|
149
153
|
|
|
150
154
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/autoscaling-get-autoscaling-capacity.html>`_
|
|
151
155
|
|
|
@@ -196,9 +200,11 @@ class AutoscalingClient(NamespacedClient):
|
|
|
196
200
|
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
197
201
|
) -> ObjectApiResponse[t.Any]:
|
|
198
202
|
"""
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
203
|
+
.. raw:: html
|
|
204
|
+
|
|
205
|
+
<p>Create or update an autoscaling policy.</p>
|
|
206
|
+
<p>NOTE: This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.</p>
|
|
207
|
+
|
|
202
208
|
|
|
203
209
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/autoscaling-put-autoscaling-policy.html>`_
|
|
204
210
|
|