elasticsearch 8.14.0__py3-none-any.whl → 8.15.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.
- elasticsearch/_async/client/__init__.py +196 -168
- elasticsearch/_async/client/async_search.py +35 -20
- elasticsearch/_async/client/autoscaling.py +4 -4
- elasticsearch/_async/client/cat.py +785 -180
- elasticsearch/_async/client/ccr.py +20 -32
- elasticsearch/_async/client/cluster.py +87 -79
- elasticsearch/_async/client/connector.py +1470 -0
- elasticsearch/_async/client/dangling_indices.py +7 -11
- elasticsearch/_async/client/enrich.py +8 -8
- elasticsearch/_async/client/eql.py +17 -16
- elasticsearch/_async/client/esql.py +2 -2
- elasticsearch/_async/client/features.py +2 -2
- elasticsearch/_async/client/fleet.py +18 -17
- elasticsearch/_async/client/graph.py +4 -4
- elasticsearch/_async/client/ilm.py +36 -44
- elasticsearch/_async/client/indices.py +282 -317
- elasticsearch/_async/client/inference.py +42 -33
- elasticsearch/_async/client/ingest.py +22 -23
- elasticsearch/_async/client/license.py +18 -10
- elasticsearch/_async/client/logstash.py +6 -6
- elasticsearch/_async/client/migration.py +3 -3
- elasticsearch/_async/client/ml.py +383 -176
- elasticsearch/_async/client/monitoring.py +2 -2
- elasticsearch/_async/client/nodes.py +32 -32
- elasticsearch/_async/client/query_rules.py +384 -0
- elasticsearch/_async/client/rollup.py +13 -13
- elasticsearch/_async/client/search_application.py +10 -10
- elasticsearch/_async/client/searchable_snapshots.py +9 -13
- elasticsearch/_async/client/security.py +577 -104
- elasticsearch/_async/client/shutdown.py +7 -7
- elasticsearch/_async/client/slm.py +11 -13
- elasticsearch/_async/client/snapshot.py +39 -52
- elasticsearch/_async/client/sql.py +12 -14
- elasticsearch/_async/client/ssl.py +1 -1
- elasticsearch/_async/client/synonyms.py +8 -8
- elasticsearch/_async/client/tasks.py +9 -10
- elasticsearch/_async/client/text_structure.py +3 -3
- elasticsearch/_async/client/transform.py +89 -34
- elasticsearch/_async/client/watcher.py +30 -15
- elasticsearch/_async/client/xpack.py +6 -7
- elasticsearch/_otel.py +2 -6
- elasticsearch/_sync/client/__init__.py +196 -168
- elasticsearch/_sync/client/async_search.py +35 -20
- elasticsearch/_sync/client/autoscaling.py +4 -4
- elasticsearch/_sync/client/cat.py +785 -180
- elasticsearch/_sync/client/ccr.py +20 -32
- elasticsearch/_sync/client/cluster.py +87 -79
- elasticsearch/_sync/client/connector.py +1470 -0
- elasticsearch/_sync/client/dangling_indices.py +7 -11
- elasticsearch/_sync/client/enrich.py +8 -8
- elasticsearch/_sync/client/eql.py +17 -16
- elasticsearch/_sync/client/esql.py +2 -2
- elasticsearch/_sync/client/features.py +2 -2
- elasticsearch/_sync/client/fleet.py +18 -17
- elasticsearch/_sync/client/graph.py +4 -4
- elasticsearch/_sync/client/ilm.py +36 -44
- elasticsearch/_sync/client/indices.py +282 -317
- elasticsearch/_sync/client/inference.py +42 -33
- elasticsearch/_sync/client/ingest.py +22 -23
- elasticsearch/_sync/client/license.py +18 -10
- elasticsearch/_sync/client/logstash.py +6 -6
- elasticsearch/_sync/client/migration.py +3 -3
- elasticsearch/_sync/client/ml.py +383 -176
- elasticsearch/_sync/client/monitoring.py +2 -2
- elasticsearch/_sync/client/nodes.py +32 -32
- elasticsearch/_sync/client/query_rules.py +384 -0
- elasticsearch/_sync/client/rollup.py +13 -13
- elasticsearch/_sync/client/search_application.py +10 -10
- elasticsearch/_sync/client/searchable_snapshots.py +9 -13
- elasticsearch/_sync/client/security.py +577 -104
- elasticsearch/_sync/client/shutdown.py +7 -7
- elasticsearch/_sync/client/slm.py +11 -13
- elasticsearch/_sync/client/snapshot.py +39 -52
- elasticsearch/_sync/client/sql.py +12 -14
- elasticsearch/_sync/client/ssl.py +1 -1
- elasticsearch/_sync/client/synonyms.py +8 -8
- elasticsearch/_sync/client/tasks.py +9 -10
- elasticsearch/_sync/client/text_structure.py +3 -3
- elasticsearch/_sync/client/transform.py +89 -34
- elasticsearch/_sync/client/watcher.py +30 -15
- elasticsearch/_sync/client/xpack.py +6 -7
- elasticsearch/_version.py +1 -1
- elasticsearch/client.py +3 -3
- elasticsearch/helpers/vectorstore/_async/vectorstore.py +36 -6
- elasticsearch/helpers/vectorstore/_sync/vectorstore.py +36 -6
- elasticsearch/serializer.py +34 -0
- elasticsearch-8.15.0.dist-info/METADATA +177 -0
- elasticsearch-8.15.0.dist-info/RECORD +117 -0
- {elasticsearch-8.14.0.dist-info → elasticsearch-8.15.0.dist-info}/WHEEL +1 -2
- elasticsearch/_async/client/query_ruleset.py +0 -205
- elasticsearch/_sync/client/query_ruleset.py +0 -205
- elasticsearch-8.14.0.dist-info/METADATA +0 -161
- elasticsearch-8.14.0.dist-info/RECORD +0 -116
- elasticsearch-8.14.0.dist-info/top_level.txt +0 -1
- {elasticsearch-8.14.0.dist-info → elasticsearch-8.15.0.dist-info/licenses}/LICENSE +0 -0
- {elasticsearch-8.14.0.dist-info → elasticsearch-8.15.0.dist-info/licenses}/NOTICE +0 -0
|
@@ -36,10 +36,13 @@ class AsyncSearchClient(NamespacedClient):
|
|
|
36
36
|
pretty: t.Optional[bool] = None,
|
|
37
37
|
) -> ObjectApiResponse[t.Any]:
|
|
38
38
|
"""
|
|
39
|
-
Deletes an async search by
|
|
40
|
-
will be cancelled. Otherwise, the saved search results are deleted.
|
|
39
|
+
Deletes an async search by identifier. If the search is still running, the search
|
|
40
|
+
request will be cancelled. Otherwise, the saved search results are deleted. If
|
|
41
|
+
the Elasticsearch security features are enabled, the deletion of a specific async
|
|
42
|
+
search is restricted to: the authenticated user that submitted the original search
|
|
43
|
+
request; users that have the `cancel_task` cluster privilege.
|
|
41
44
|
|
|
42
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
45
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/async-search.html>`_
|
|
43
46
|
|
|
44
47
|
:param id: A unique identifier for the async search.
|
|
45
48
|
"""
|
|
@@ -74,18 +77,20 @@ class AsyncSearchClient(NamespacedClient):
|
|
|
74
77
|
error_trace: t.Optional[bool] = None,
|
|
75
78
|
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
|
|
76
79
|
human: t.Optional[bool] = None,
|
|
77
|
-
keep_alive: t.Optional[t.Union[
|
|
80
|
+
keep_alive: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
78
81
|
pretty: t.Optional[bool] = None,
|
|
79
82
|
typed_keys: t.Optional[bool] = None,
|
|
80
83
|
wait_for_completion_timeout: t.Optional[
|
|
81
|
-
t.Union[
|
|
84
|
+
t.Union[str, t.Literal[-1], t.Literal[0]]
|
|
82
85
|
] = None,
|
|
83
86
|
) -> ObjectApiResponse[t.Any]:
|
|
84
87
|
"""
|
|
85
88
|
Retrieves the results of a previously submitted async search request given its
|
|
86
|
-
|
|
89
|
+
identifier. If the Elasticsearch security features are enabled, access to the
|
|
90
|
+
results of a specific async search is restricted to the user or API key that
|
|
91
|
+
submitted it.
|
|
87
92
|
|
|
88
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
93
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/async-search.html>`_
|
|
89
94
|
|
|
90
95
|
:param id: A unique identifier for the async search.
|
|
91
96
|
:param keep_alive: Specifies how long the async search should be available in
|
|
@@ -143,10 +148,12 @@ class AsyncSearchClient(NamespacedClient):
|
|
|
143
148
|
pretty: t.Optional[bool] = None,
|
|
144
149
|
) -> ObjectApiResponse[t.Any]:
|
|
145
150
|
"""
|
|
146
|
-
Retrieves the status of a previously submitted async
|
|
147
|
-
|
|
151
|
+
Get async search status Retrieves the status of a previously submitted async
|
|
152
|
+
search request given its identifier, without retrieving search results. If the
|
|
153
|
+
Elasticsearch security features are enabled, use of this API is restricted to
|
|
154
|
+
the `monitoring_user` role.
|
|
148
155
|
|
|
149
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
156
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/async-search.html>`_
|
|
150
157
|
|
|
151
158
|
:param id: A unique identifier for the async search.
|
|
152
159
|
"""
|
|
@@ -229,16 +236,16 @@ class AsyncSearchClient(NamespacedClient):
|
|
|
229
236
|
batched_reduce_size: t.Optional[int] = None,
|
|
230
237
|
ccs_minimize_roundtrips: t.Optional[bool] = None,
|
|
231
238
|
collapse: t.Optional[t.Mapping[str, t.Any]] = None,
|
|
232
|
-
default_operator: t.Optional[t.Union[
|
|
239
|
+
default_operator: t.Optional[t.Union[str, t.Literal["and", "or"]]] = None,
|
|
233
240
|
df: t.Optional[str] = None,
|
|
234
241
|
docvalue_fields: t.Optional[t.Sequence[t.Mapping[str, t.Any]]] = None,
|
|
235
242
|
error_trace: t.Optional[bool] = None,
|
|
236
243
|
expand_wildcards: t.Optional[
|
|
237
244
|
t.Union[
|
|
238
245
|
t.Sequence[
|
|
239
|
-
t.Union[
|
|
246
|
+
t.Union[str, t.Literal["all", "closed", "hidden", "none", "open"]]
|
|
240
247
|
],
|
|
241
|
-
t.Union[
|
|
248
|
+
t.Union[str, t.Literal["all", "closed", "hidden", "none", "open"]],
|
|
242
249
|
]
|
|
243
250
|
] = None,
|
|
244
251
|
explain: t.Optional[bool] = None,
|
|
@@ -251,7 +258,7 @@ class AsyncSearchClient(NamespacedClient):
|
|
|
251
258
|
ignore_throttled: t.Optional[bool] = None,
|
|
252
259
|
ignore_unavailable: t.Optional[bool] = None,
|
|
253
260
|
indices_boost: t.Optional[t.Sequence[t.Mapping[str, float]]] = None,
|
|
254
|
-
keep_alive: t.Optional[t.Union[
|
|
261
|
+
keep_alive: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
255
262
|
keep_on_completion: t.Optional[bool] = None,
|
|
256
263
|
knn: t.Optional[
|
|
257
264
|
t.Union[t.Mapping[str, t.Any], t.Sequence[t.Mapping[str, t.Any]]]
|
|
@@ -276,12 +283,12 @@ class AsyncSearchClient(NamespacedClient):
|
|
|
276
283
|
routing: t.Optional[str] = None,
|
|
277
284
|
runtime_mappings: t.Optional[t.Mapping[str, t.Mapping[str, t.Any]]] = None,
|
|
278
285
|
script_fields: t.Optional[t.Mapping[str, t.Mapping[str, t.Any]]] = None,
|
|
279
|
-
scroll: t.Optional[t.Union[
|
|
286
|
+
scroll: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
280
287
|
search_after: t.Optional[
|
|
281
288
|
t.Sequence[t.Union[None, bool, float, int, str, t.Any]]
|
|
282
289
|
] = None,
|
|
283
290
|
search_type: t.Optional[
|
|
284
|
-
t.Union[
|
|
291
|
+
t.Union[str, t.Literal["dfs_query_then_fetch", "query_then_fetch"]]
|
|
285
292
|
] = None,
|
|
286
293
|
seq_no_primary_term: t.Optional[bool] = None,
|
|
287
294
|
size: t.Optional[int] = None,
|
|
@@ -300,7 +307,7 @@ class AsyncSearchClient(NamespacedClient):
|
|
|
300
307
|
suggest: t.Optional[t.Mapping[str, t.Any]] = None,
|
|
301
308
|
suggest_field: t.Optional[str] = None,
|
|
302
309
|
suggest_mode: t.Optional[
|
|
303
|
-
t.Union[
|
|
310
|
+
t.Union[str, t.Literal["always", "missing", "popular"]]
|
|
304
311
|
] = None,
|
|
305
312
|
suggest_size: t.Optional[int] = None,
|
|
306
313
|
suggest_text: t.Optional[str] = None,
|
|
@@ -311,14 +318,22 @@ class AsyncSearchClient(NamespacedClient):
|
|
|
311
318
|
typed_keys: t.Optional[bool] = None,
|
|
312
319
|
version: t.Optional[bool] = None,
|
|
313
320
|
wait_for_completion_timeout: t.Optional[
|
|
314
|
-
t.Union[
|
|
321
|
+
t.Union[str, t.Literal[-1], t.Literal[0]]
|
|
315
322
|
] = None,
|
|
316
323
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
317
324
|
) -> ObjectApiResponse[t.Any]:
|
|
318
325
|
"""
|
|
319
|
-
|
|
326
|
+
Runs a search request asynchronously. When the primary sort of the results is
|
|
327
|
+
an indexed field, shards get sorted based on minimum and maximum value that they
|
|
328
|
+
hold for that field, hence partial results become available following the sort
|
|
329
|
+
criteria that was requested. Warning: Async search does not support scroll nor
|
|
330
|
+
search requests that only include the suggest section. By default, Elasticsearch
|
|
331
|
+
doesn’t allow you to store an async search response larger than 10Mb and an attempt
|
|
332
|
+
to do this results in an error. The maximum allowed size for a stored async search
|
|
333
|
+
response can be set by changing the `search.max_async_search_response_size` cluster
|
|
334
|
+
level setting.
|
|
320
335
|
|
|
321
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
336
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/async-search.html>`_
|
|
322
337
|
|
|
323
338
|
:param index: A comma-separated list of index names to search; use `_all` or
|
|
324
339
|
empty string to perform the operation on all indices
|
|
@@ -39,7 +39,7 @@ class AutoscalingClient(NamespacedClient):
|
|
|
39
39
|
Deletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK.
|
|
40
40
|
Direct use is not supported.
|
|
41
41
|
|
|
42
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
42
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/autoscaling-delete-autoscaling-policy.html>`_
|
|
43
43
|
|
|
44
44
|
:param name: the name of the autoscaling policy
|
|
45
45
|
"""
|
|
@@ -79,7 +79,7 @@ class AutoscalingClient(NamespacedClient):
|
|
|
79
79
|
Gets the current autoscaling capacity based on the configured autoscaling policy.
|
|
80
80
|
Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.
|
|
81
81
|
|
|
82
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
82
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/autoscaling-get-autoscaling-capacity.html>`_
|
|
83
83
|
"""
|
|
84
84
|
__path_parts: t.Dict[str, str] = {}
|
|
85
85
|
__path = "/_autoscaling/capacity"
|
|
@@ -116,7 +116,7 @@ class AutoscalingClient(NamespacedClient):
|
|
|
116
116
|
Retrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK.
|
|
117
117
|
Direct use is not supported.
|
|
118
118
|
|
|
119
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
119
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/autoscaling-get-autoscaling-capacity.html>`_
|
|
120
120
|
|
|
121
121
|
:param name: the name of the autoscaling policy
|
|
122
122
|
"""
|
|
@@ -161,7 +161,7 @@ class AutoscalingClient(NamespacedClient):
|
|
|
161
161
|
Creates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK.
|
|
162
162
|
Direct use is not supported.
|
|
163
163
|
|
|
164
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
164
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/autoscaling-put-autoscaling-policy.html>`_
|
|
165
165
|
|
|
166
166
|
:param name: the name of the autoscaling policy
|
|
167
167
|
:param policy:
|