elasticsearch 8.17.1__py3-none-any.whl → 9.0.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/__init__.py +2 -2
- elasticsearch/_async/client/__init__.py +2125 -1053
- elasticsearch/_async/client/_base.py +1 -2
- elasticsearch/_async/client/async_search.py +46 -35
- elasticsearch/_async/client/autoscaling.py +32 -26
- elasticsearch/_async/client/cat.py +244 -176
- elasticsearch/_async/client/ccr.py +268 -128
- elasticsearch/_async/client/cluster.py +191 -164
- elasticsearch/_async/client/connector.py +226 -116
- elasticsearch/_async/client/dangling_indices.py +22 -16
- elasticsearch/_async/client/enrich.py +51 -11
- elasticsearch/_async/client/eql.py +54 -13
- elasticsearch/_async/client/esql.py +351 -7
- elasticsearch/_async/client/features.py +37 -27
- elasticsearch/_async/client/fleet.py +32 -22
- elasticsearch/_async/client/graph.py +10 -9
- elasticsearch/_async/client/ilm.py +115 -77
- elasticsearch/_async/client/indices.py +1119 -772
- elasticsearch/_async/client/inference.py +1933 -84
- elasticsearch/_async/client/ingest.py +83 -50
- elasticsearch/_async/client/license.py +90 -38
- elasticsearch/_async/client/logstash.py +20 -9
- elasticsearch/_async/client/migration.py +26 -17
- elasticsearch/_async/client/ml.py +646 -374
- elasticsearch/_async/client/monitoring.py +6 -3
- elasticsearch/_async/client/nodes.py +52 -54
- elasticsearch/_async/client/query_rules.py +59 -33
- elasticsearch/_async/client/rollup.py +124 -86
- elasticsearch/_async/client/search_application.py +60 -32
- elasticsearch/_async/client/searchable_snapshots.py +25 -12
- elasticsearch/_async/client/security.py +903 -562
- elasticsearch/_async/client/shutdown.py +34 -36
- elasticsearch/_async/client/simulate.py +22 -28
- elasticsearch/_async/client/slm.py +65 -40
- elasticsearch/_async/client/snapshot.py +454 -327
- elasticsearch/_async/client/sql.py +43 -22
- elasticsearch/_async/client/ssl.py +17 -18
- elasticsearch/_async/client/synonyms.py +58 -37
- elasticsearch/_async/client/tasks.py +77 -48
- elasticsearch/_async/client/text_structure.py +65 -56
- elasticsearch/_async/client/transform.py +124 -93
- elasticsearch/_async/client/watcher.py +117 -73
- elasticsearch/_async/client/xpack.py +18 -9
- elasticsearch/_async/helpers.py +1 -2
- elasticsearch/_sync/client/__init__.py +2125 -1053
- elasticsearch/_sync/client/_base.py +1 -2
- elasticsearch/_sync/client/async_search.py +46 -35
- elasticsearch/_sync/client/autoscaling.py +32 -26
- elasticsearch/_sync/client/cat.py +244 -176
- elasticsearch/_sync/client/ccr.py +268 -128
- elasticsearch/_sync/client/cluster.py +191 -164
- elasticsearch/_sync/client/connector.py +226 -116
- elasticsearch/_sync/client/dangling_indices.py +22 -16
- elasticsearch/_sync/client/enrich.py +51 -11
- elasticsearch/_sync/client/eql.py +54 -13
- elasticsearch/_sync/client/esql.py +351 -7
- elasticsearch/_sync/client/features.py +37 -27
- elasticsearch/_sync/client/fleet.py +32 -22
- elasticsearch/_sync/client/graph.py +10 -9
- elasticsearch/_sync/client/ilm.py +115 -77
- elasticsearch/_sync/client/indices.py +1119 -772
- elasticsearch/_sync/client/inference.py +1933 -84
- elasticsearch/_sync/client/ingest.py +83 -50
- elasticsearch/_sync/client/license.py +90 -38
- elasticsearch/_sync/client/logstash.py +20 -9
- elasticsearch/_sync/client/migration.py +26 -17
- elasticsearch/_sync/client/ml.py +646 -374
- elasticsearch/_sync/client/monitoring.py +6 -3
- elasticsearch/_sync/client/nodes.py +52 -54
- elasticsearch/_sync/client/query_rules.py +59 -33
- elasticsearch/_sync/client/rollup.py +124 -86
- elasticsearch/_sync/client/search_application.py +60 -32
- elasticsearch/_sync/client/searchable_snapshots.py +25 -12
- elasticsearch/_sync/client/security.py +903 -562
- elasticsearch/_sync/client/shutdown.py +34 -36
- elasticsearch/_sync/client/simulate.py +22 -28
- elasticsearch/_sync/client/slm.py +65 -40
- elasticsearch/_sync/client/snapshot.py +454 -327
- elasticsearch/_sync/client/sql.py +43 -22
- elasticsearch/_sync/client/ssl.py +17 -18
- elasticsearch/_sync/client/synonyms.py +58 -37
- elasticsearch/_sync/client/tasks.py +77 -48
- elasticsearch/_sync/client/text_structure.py +65 -56
- elasticsearch/_sync/client/transform.py +124 -93
- elasticsearch/_sync/client/utils.py +1 -41
- elasticsearch/_sync/client/watcher.py +117 -73
- elasticsearch/_sync/client/xpack.py +18 -9
- elasticsearch/_version.py +1 -1
- elasticsearch/client.py +2 -0
- elasticsearch/dsl/__init__.py +203 -0
- elasticsearch/dsl/_async/__init__.py +16 -0
- elasticsearch/dsl/_async/document.py +522 -0
- elasticsearch/dsl/_async/faceted_search.py +50 -0
- elasticsearch/dsl/_async/index.py +639 -0
- elasticsearch/dsl/_async/mapping.py +49 -0
- elasticsearch/dsl/_async/search.py +237 -0
- elasticsearch/dsl/_async/update_by_query.py +47 -0
- elasticsearch/dsl/_sync/__init__.py +16 -0
- elasticsearch/dsl/_sync/document.py +514 -0
- elasticsearch/dsl/_sync/faceted_search.py +50 -0
- elasticsearch/dsl/_sync/index.py +597 -0
- elasticsearch/dsl/_sync/mapping.py +49 -0
- elasticsearch/dsl/_sync/search.py +230 -0
- elasticsearch/dsl/_sync/update_by_query.py +45 -0
- elasticsearch/dsl/aggs.py +3734 -0
- elasticsearch/dsl/analysis.py +341 -0
- elasticsearch/dsl/async_connections.py +37 -0
- elasticsearch/dsl/connections.py +142 -0
- elasticsearch/dsl/document.py +20 -0
- elasticsearch/dsl/document_base.py +444 -0
- elasticsearch/dsl/exceptions.py +32 -0
- elasticsearch/dsl/faceted_search.py +28 -0
- elasticsearch/dsl/faceted_search_base.py +489 -0
- elasticsearch/dsl/field.py +4392 -0
- elasticsearch/dsl/function.py +180 -0
- elasticsearch/dsl/index.py +23 -0
- elasticsearch/dsl/index_base.py +178 -0
- elasticsearch/dsl/mapping.py +19 -0
- elasticsearch/dsl/mapping_base.py +219 -0
- elasticsearch/dsl/query.py +2822 -0
- elasticsearch/dsl/response/__init__.py +388 -0
- elasticsearch/dsl/response/aggs.py +100 -0
- elasticsearch/dsl/response/hit.py +53 -0
- elasticsearch/dsl/search.py +20 -0
- elasticsearch/dsl/search_base.py +1053 -0
- elasticsearch/dsl/serializer.py +34 -0
- elasticsearch/dsl/types.py +6453 -0
- elasticsearch/dsl/update_by_query.py +19 -0
- elasticsearch/dsl/update_by_query_base.py +149 -0
- elasticsearch/dsl/utils.py +687 -0
- elasticsearch/dsl/wrappers.py +144 -0
- elasticsearch/helpers/actions.py +1 -1
- elasticsearch/helpers/vectorstore/_async/strategies.py +12 -12
- elasticsearch/helpers/vectorstore/_sync/strategies.py +12 -12
- elasticsearch/helpers/vectorstore/_sync/vectorstore.py +4 -1
- {elasticsearch-8.17.1.dist-info → elasticsearch-9.0.0.dist-info}/METADATA +12 -15
- elasticsearch-9.0.0.dist-info/RECORD +160 -0
- elasticsearch/transport.py +0 -57
- elasticsearch-8.17.1.dist-info/RECORD +0 -119
- {elasticsearch-8.17.1.dist-info → elasticsearch-9.0.0.dist-info}/WHEEL +0 -0
- {elasticsearch-8.17.1.dist-info → elasticsearch-9.0.0.dist-info}/licenses/LICENSE +0 -0
- {elasticsearch-8.17.1.dist-info → elasticsearch-9.0.0.dist-info}/licenses/NOTICE +0 -0
|
@@ -42,10 +42,13 @@ class MonitoringClient(NamespacedClient):
|
|
|
42
42
|
pretty: t.Optional[bool] = None,
|
|
43
43
|
) -> ObjectApiResponse[t.Any]:
|
|
44
44
|
"""
|
|
45
|
-
|
|
46
|
-
data.
|
|
45
|
+
.. raw:: html
|
|
47
46
|
|
|
48
|
-
|
|
47
|
+
<p>Send monitoring data.
|
|
48
|
+
This API is used by the monitoring features to send monitoring data.</p>
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/v9/>`_
|
|
49
52
|
|
|
50
53
|
:param interval: Collection interval (e.g., '10s' or '10000ms') of the payload
|
|
51
54
|
:param operations:
|
|
@@ -44,10 +44,13 @@ class NodesClient(NamespacedClient):
|
|
|
44
44
|
pretty: t.Optional[bool] = None,
|
|
45
45
|
) -> ObjectApiResponse[t.Any]:
|
|
46
46
|
"""
|
|
47
|
-
|
|
48
|
-
information in the cluster.
|
|
47
|
+
.. raw:: html
|
|
49
48
|
|
|
50
|
-
|
|
49
|
+
<p>Clear the archived repositories metering.
|
|
50
|
+
Clear the archived repositories metering information in the cluster.</p>
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-nodes-clear-repositories-metering-archive>`_
|
|
51
54
|
|
|
52
55
|
:param node_id: Comma-separated list of node IDs or names used to limit returned
|
|
53
56
|
information.
|
|
@@ -94,16 +97,18 @@ class NodesClient(NamespacedClient):
|
|
|
94
97
|
pretty: t.Optional[bool] = None,
|
|
95
98
|
) -> ObjectApiResponse[t.Any]:
|
|
96
99
|
"""
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
.. raw:: html
|
|
101
|
+
|
|
102
|
+
<p>Get cluster repositories metering.
|
|
103
|
+
Get repositories metering information for a cluster.
|
|
104
|
+
This API exposes monotonically non-decreasing counters and it is expected that clients would durably store the information needed to compute aggregations over a period of time.
|
|
105
|
+
Additionally, the information exposed by this API is volatile, meaning that it will not be present after node restarts.</p>
|
|
106
|
+
|
|
102
107
|
|
|
103
|
-
`<https://www.elastic.co/
|
|
108
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-nodes-get-repositories-metering-info>`_
|
|
104
109
|
|
|
105
110
|
:param node_id: Comma-separated list of node IDs or names used to limit returned
|
|
106
|
-
information.
|
|
111
|
+
information.
|
|
107
112
|
"""
|
|
108
113
|
if node_id in SKIP_IN_PATH:
|
|
109
114
|
raise ValueError("Empty value passed for parameter 'node_id'")
|
|
@@ -138,7 +143,6 @@ class NodesClient(NamespacedClient):
|
|
|
138
143
|
human: t.Optional[bool] = None,
|
|
139
144
|
ignore_idle_threads: t.Optional[bool] = None,
|
|
140
145
|
interval: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
141
|
-
master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
142
146
|
pretty: t.Optional[bool] = None,
|
|
143
147
|
snapshots: t.Optional[int] = None,
|
|
144
148
|
sort: t.Optional[
|
|
@@ -151,19 +155,19 @@ class NodesClient(NamespacedClient):
|
|
|
151
155
|
] = None,
|
|
152
156
|
) -> TextApiResponse:
|
|
153
157
|
"""
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
158
|
+
.. raw:: html
|
|
159
|
+
|
|
160
|
+
<p>Get the hot threads for nodes.
|
|
161
|
+
Get a breakdown of the hot threads on each selected node in the cluster.
|
|
162
|
+
The output is plain text with a breakdown of the top hot threads for each node.</p>
|
|
157
163
|
|
|
158
|
-
|
|
164
|
+
|
|
165
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-nodes-hot-threads>`_
|
|
159
166
|
|
|
160
167
|
:param node_id: List of node IDs or names used to limit returned information.
|
|
161
168
|
:param ignore_idle_threads: If true, known idle threads (e.g. waiting in a socket
|
|
162
169
|
select, or to get a task from an empty queue) are filtered out.
|
|
163
170
|
:param interval: The interval to do the second sampling of threads.
|
|
164
|
-
:param master_timeout: Period to wait for a connection to the master node. If
|
|
165
|
-
no response is received before the timeout expires, the request fails and
|
|
166
|
-
returns an error.
|
|
167
171
|
:param snapshots: Number of samples of thread stacktrace.
|
|
168
172
|
:param sort: The sort order for 'cpu' type (default: total)
|
|
169
173
|
:param threads: Specifies the number of hot threads to provide information for.
|
|
@@ -189,8 +193,6 @@ class NodesClient(NamespacedClient):
|
|
|
189
193
|
__query["ignore_idle_threads"] = ignore_idle_threads
|
|
190
194
|
if interval is not None:
|
|
191
195
|
__query["interval"] = interval
|
|
192
|
-
if master_timeout is not None:
|
|
193
|
-
__query["master_timeout"] = master_timeout
|
|
194
196
|
if pretty is not None:
|
|
195
197
|
__query["pretty"] = pretty
|
|
196
198
|
if snapshots is not None:
|
|
@@ -223,24 +225,23 @@ class NodesClient(NamespacedClient):
|
|
|
223
225
|
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
|
|
224
226
|
flat_settings: t.Optional[bool] = None,
|
|
225
227
|
human: t.Optional[bool] = None,
|
|
226
|
-
master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
227
228
|
pretty: t.Optional[bool] = None,
|
|
228
229
|
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
229
230
|
) -> ObjectApiResponse[t.Any]:
|
|
230
231
|
"""
|
|
231
|
-
|
|
232
|
-
|
|
232
|
+
.. raw:: html
|
|
233
|
+
|
|
234
|
+
<p>Get node information.</p>
|
|
235
|
+
<p>By default, the API returns all attributes and core settings for cluster nodes.</p>
|
|
233
236
|
|
|
234
|
-
|
|
237
|
+
|
|
238
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-nodes-info>`_
|
|
235
239
|
|
|
236
240
|
:param node_id: Comma-separated list of node IDs or names used to limit returned
|
|
237
241
|
information.
|
|
238
242
|
:param metric: Limits the information returned to the specific metrics. Supports
|
|
239
243
|
a comma-separated list, such as http,ingest.
|
|
240
244
|
:param flat_settings: If true, returns settings in flat format.
|
|
241
|
-
:param master_timeout: Period to wait for a connection to the master node. If
|
|
242
|
-
no response is received before the timeout expires, the request fails and
|
|
243
|
-
returns an error.
|
|
244
245
|
:param timeout: Period to wait for a response. If no response is received before
|
|
245
246
|
the timeout expires, the request fails and returns an error.
|
|
246
247
|
"""
|
|
@@ -266,8 +267,6 @@ class NodesClient(NamespacedClient):
|
|
|
266
267
|
__query["flat_settings"] = flat_settings
|
|
267
268
|
if human is not None:
|
|
268
269
|
__query["human"] = human
|
|
269
|
-
if master_timeout is not None:
|
|
270
|
-
__query["master_timeout"] = master_timeout
|
|
271
270
|
if pretty is not None:
|
|
272
271
|
__query["pretty"] = pretty
|
|
273
272
|
if timeout is not None:
|
|
@@ -298,20 +297,18 @@ class NodesClient(NamespacedClient):
|
|
|
298
297
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
299
298
|
) -> ObjectApiResponse[t.Any]:
|
|
300
299
|
"""
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/secure-settings.html#reloadable-secure-settings>`_
|
|
300
|
+
.. raw:: html
|
|
301
|
+
|
|
302
|
+
<p>Reload the keystore on nodes in the cluster.</p>
|
|
303
|
+
<p>Secure settings are stored in an on-disk keystore. Certain of these settings are reloadable.
|
|
304
|
+
That is, you can change them on disk and reload them without restarting any nodes in the cluster.
|
|
305
|
+
When you have updated reloadable secure settings in your keystore, you can use this API to reload those settings on each node.</p>
|
|
306
|
+
<p>When the Elasticsearch keystore is password protected and not simply obfuscated, you must provide the password for the keystore when you reload the secure settings.
|
|
307
|
+
Reloading the settings for the whole cluster assumes that the keystores for all nodes are protected with the same password; this method is allowed only when inter-node communications are encrypted.
|
|
308
|
+
Alternatively, you can reload the secure settings on each node by locally accessing the API and passing the node-specific Elasticsearch keystore password.</p>
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-nodes-reload-secure-settings>`_
|
|
315
312
|
|
|
316
313
|
:param node_id: The names of particular nodes in the cluster to target.
|
|
317
314
|
:param secure_settings_password: The password for the Elasticsearch keystore.
|
|
@@ -374,16 +371,19 @@ class NodesClient(NamespacedClient):
|
|
|
374
371
|
level: t.Optional[
|
|
375
372
|
t.Union[str, t.Literal["cluster", "indices", "shards"]]
|
|
376
373
|
] = None,
|
|
377
|
-
master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
378
374
|
pretty: t.Optional[bool] = None,
|
|
379
375
|
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
380
376
|
types: t.Optional[t.Sequence[str]] = None,
|
|
381
377
|
) -> ObjectApiResponse[t.Any]:
|
|
382
378
|
"""
|
|
383
|
-
|
|
384
|
-
are returned. You can limit the returned information by using metrics.
|
|
379
|
+
.. raw:: html
|
|
385
380
|
|
|
386
|
-
|
|
381
|
+
<p>Get node statistics.
|
|
382
|
+
Get statistics for nodes in a cluster.
|
|
383
|
+
By default, all stats are returned. You can limit the returned information by using metrics.</p>
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-nodes-stats>`_
|
|
387
387
|
|
|
388
388
|
:param node_id: Comma-separated list of node IDs or names used to limit returned
|
|
389
389
|
information.
|
|
@@ -406,9 +406,6 @@ class NodesClient(NamespacedClient):
|
|
|
406
406
|
from segments that are not loaded into memory.
|
|
407
407
|
:param level: Indicates whether statistics are aggregated at the cluster, index,
|
|
408
408
|
or shard level.
|
|
409
|
-
:param master_timeout: Period to wait for a connection to the master node. If
|
|
410
|
-
no response is received before the timeout expires, the request fails and
|
|
411
|
-
returns an error.
|
|
412
409
|
:param timeout: Period to wait for a response. If no response is received before
|
|
413
410
|
the timeout expires, the request fails and returns an error.
|
|
414
411
|
:param types: A comma-separated list of document types for the indexing index
|
|
@@ -467,8 +464,6 @@ class NodesClient(NamespacedClient):
|
|
|
467
464
|
__query["include_unloaded_segments"] = include_unloaded_segments
|
|
468
465
|
if level is not None:
|
|
469
466
|
__query["level"] = level
|
|
470
|
-
if master_timeout is not None:
|
|
471
|
-
__query["master_timeout"] = master_timeout
|
|
472
467
|
if pretty is not None:
|
|
473
468
|
__query["pretty"] = pretty
|
|
474
469
|
if timeout is not None:
|
|
@@ -498,9 +493,12 @@ class NodesClient(NamespacedClient):
|
|
|
498
493
|
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
499
494
|
) -> ObjectApiResponse[t.Any]:
|
|
500
495
|
"""
|
|
501
|
-
|
|
496
|
+
.. raw:: html
|
|
497
|
+
|
|
498
|
+
<p>Get feature usage information.</p>
|
|
499
|
+
|
|
502
500
|
|
|
503
|
-
`<https://www.elastic.co/
|
|
501
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-nodes-usage>`_
|
|
504
502
|
|
|
505
503
|
:param node_id: A comma-separated list of node IDs or names to limit the returned
|
|
506
504
|
information; use `_local` to return information from the node you're connecting
|
|
@@ -37,11 +37,14 @@ class QueryRulesClient(NamespacedClient):
|
|
|
37
37
|
pretty: t.Optional[bool] = None,
|
|
38
38
|
) -> ObjectApiResponse[t.Any]:
|
|
39
39
|
"""
|
|
40
|
-
|
|
41
|
-
action that is only recoverable by re-adding the same rule with the create or
|
|
42
|
-
update query rule API.
|
|
40
|
+
.. raw:: html
|
|
43
41
|
|
|
44
|
-
|
|
42
|
+
<p>Delete a query rule.
|
|
43
|
+
Delete a query rule within a query ruleset.
|
|
44
|
+
This is a destructive action that is only recoverable by re-adding the same rule with the create or update query rule API.</p>
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-query-rules-delete-rule>`_
|
|
45
48
|
|
|
46
49
|
:param ruleset_id: The unique identifier of the query ruleset containing the
|
|
47
50
|
rule to delete
|
|
@@ -87,10 +90,14 @@ class QueryRulesClient(NamespacedClient):
|
|
|
87
90
|
pretty: t.Optional[bool] = None,
|
|
88
91
|
) -> ObjectApiResponse[t.Any]:
|
|
89
92
|
"""
|
|
90
|
-
|
|
91
|
-
|
|
93
|
+
.. raw:: html
|
|
94
|
+
|
|
95
|
+
<p>Delete a query ruleset.
|
|
96
|
+
Remove a query ruleset and its associated data.
|
|
97
|
+
This is a destructive action that is not recoverable.</p>
|
|
98
|
+
|
|
92
99
|
|
|
93
|
-
`<https://www.elastic.co/
|
|
100
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-query-rules-delete-ruleset>`_
|
|
94
101
|
|
|
95
102
|
:param ruleset_id: The unique identifier of the query ruleset to delete
|
|
96
103
|
"""
|
|
@@ -129,9 +136,13 @@ class QueryRulesClient(NamespacedClient):
|
|
|
129
136
|
pretty: t.Optional[bool] = None,
|
|
130
137
|
) -> ObjectApiResponse[t.Any]:
|
|
131
138
|
"""
|
|
132
|
-
|
|
139
|
+
.. raw:: html
|
|
133
140
|
|
|
134
|
-
|
|
141
|
+
<p>Get a query rule.
|
|
142
|
+
Get details about a query rule within a query ruleset.</p>
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-query-rules-get-rule>`_
|
|
135
146
|
|
|
136
147
|
:param ruleset_id: The unique identifier of the query ruleset containing the
|
|
137
148
|
rule to retrieve
|
|
@@ -177,9 +188,13 @@ class QueryRulesClient(NamespacedClient):
|
|
|
177
188
|
pretty: t.Optional[bool] = None,
|
|
178
189
|
) -> ObjectApiResponse[t.Any]:
|
|
179
190
|
"""
|
|
180
|
-
|
|
191
|
+
.. raw:: html
|
|
192
|
+
|
|
193
|
+
<p>Get a query ruleset.
|
|
194
|
+
Get details about a query ruleset.</p>
|
|
195
|
+
|
|
181
196
|
|
|
182
|
-
`<https://www.elastic.co/
|
|
197
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-query-rules-get-ruleset>`_
|
|
183
198
|
|
|
184
199
|
:param ruleset_id: The unique identifier of the query ruleset
|
|
185
200
|
"""
|
|
@@ -220,9 +235,13 @@ class QueryRulesClient(NamespacedClient):
|
|
|
220
235
|
size: t.Optional[int] = None,
|
|
221
236
|
) -> ObjectApiResponse[t.Any]:
|
|
222
237
|
"""
|
|
223
|
-
|
|
238
|
+
.. raw:: html
|
|
224
239
|
|
|
225
|
-
|
|
240
|
+
<p>Get all query rulesets.
|
|
241
|
+
Get summarized information about the query rulesets.</p>
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-query-rules-list-rulesets>`_
|
|
226
245
|
|
|
227
246
|
:param from_: The offset from the first result to fetch.
|
|
228
247
|
:param size: The maximum number of results to retrieve.
|
|
@@ -273,15 +292,17 @@ class QueryRulesClient(NamespacedClient):
|
|
|
273
292
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
274
293
|
) -> ObjectApiResponse[t.Any]:
|
|
275
294
|
"""
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
295
|
+
.. raw:: html
|
|
296
|
+
|
|
297
|
+
<p>Create or update a query rule.
|
|
298
|
+
Create or update a query rule within a query ruleset.</p>
|
|
299
|
+
<p>IMPORTANT: Due to limitations within pinned queries, you can only pin documents using ids or docs, but cannot use both in single rule.
|
|
300
|
+
It is advised to use one or the other in query rulesets, to avoid errors.
|
|
301
|
+
Additionally, pinned queries have a maximum limit of 100 pinned hits.
|
|
302
|
+
If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset.</p>
|
|
303
|
+
|
|
283
304
|
|
|
284
|
-
`<https://www.elastic.co/
|
|
305
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-query-rules-put-rule>`_
|
|
285
306
|
|
|
286
307
|
:param ruleset_id: The unique identifier of the query ruleset containing the
|
|
287
308
|
rule to be created or updated.
|
|
@@ -357,16 +378,18 @@ class QueryRulesClient(NamespacedClient):
|
|
|
357
378
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
358
379
|
) -> ObjectApiResponse[t.Any]:
|
|
359
380
|
"""
|
|
360
|
-
|
|
361
|
-
This limit can be increased by using the `xpack.applications.rules.max_rules_per_ruleset`
|
|
362
|
-
cluster setting. IMPORTANT: Due to limitations within pinned queries, you can
|
|
363
|
-
only select documents using `ids` or `docs`, but cannot use both in single rule.
|
|
364
|
-
It is advised to use one or the other in query rulesets, to avoid errors. Additionally,
|
|
365
|
-
pinned queries have a maximum limit of 100 pinned hits. If multiple matching
|
|
366
|
-
rules pin more than 100 documents, only the first 100 documents are pinned in
|
|
367
|
-
the order they are specified in the ruleset.
|
|
381
|
+
.. raw:: html
|
|
368
382
|
|
|
369
|
-
|
|
383
|
+
<p>Create or update a query ruleset.
|
|
384
|
+
There is a limit of 100 rules per ruleset.
|
|
385
|
+
This limit can be increased by using the <code>xpack.applications.rules.max_rules_per_ruleset</code> cluster setting.</p>
|
|
386
|
+
<p>IMPORTANT: Due to limitations within pinned queries, you can only select documents using <code>ids</code> or <code>docs</code>, but cannot use both in single rule.
|
|
387
|
+
It is advised to use one or the other in query rulesets, to avoid errors.
|
|
388
|
+
Additionally, pinned queries have a maximum limit of 100 pinned hits.
|
|
389
|
+
If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset.</p>
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-query-rules-put-ruleset>`_
|
|
370
393
|
|
|
371
394
|
:param ruleset_id: The unique identifier of the query ruleset to be created or
|
|
372
395
|
updated.
|
|
@@ -417,10 +440,13 @@ class QueryRulesClient(NamespacedClient):
|
|
|
417
440
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
418
441
|
) -> ObjectApiResponse[t.Any]:
|
|
419
442
|
"""
|
|
420
|
-
|
|
421
|
-
|
|
443
|
+
.. raw:: html
|
|
444
|
+
|
|
445
|
+
<p>Test a query ruleset.
|
|
446
|
+
Evaluate match criteria against a query ruleset to identify the rules that would match that criteria.</p>
|
|
447
|
+
|
|
422
448
|
|
|
423
|
-
`<https://www.elastic.co/
|
|
449
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-query-rules-test>`_
|
|
424
450
|
|
|
425
451
|
:param ruleset_id: The unique identifier of the query ruleset to be created or
|
|
426
452
|
updated
|