elasticsearch 8.17.1__py3-none-any.whl → 8.18.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. elasticsearch/__init__.py +2 -2
  2. elasticsearch/_async/client/__init__.py +2146 -859
  3. elasticsearch/_async/client/_base.py +0 -1
  4. elasticsearch/_async/client/async_search.py +44 -29
  5. elasticsearch/_async/client/autoscaling.py +32 -26
  6. elasticsearch/_async/client/cat.py +244 -169
  7. elasticsearch/_async/client/ccr.py +268 -128
  8. elasticsearch/_async/client/cluster.py +191 -164
  9. elasticsearch/_async/client/connector.py +212 -116
  10. elasticsearch/_async/client/dangling_indices.py +22 -16
  11. elasticsearch/_async/client/enrich.py +51 -11
  12. elasticsearch/_async/client/eql.py +54 -13
  13. elasticsearch/_async/client/esql.py +352 -4
  14. elasticsearch/_async/client/features.py +37 -27
  15. elasticsearch/_async/client/fleet.py +22 -10
  16. elasticsearch/_async/client/graph.py +10 -9
  17. elasticsearch/_async/client/ilm.py +108 -77
  18. elasticsearch/_async/client/indices.py +1112 -677
  19. elasticsearch/_async/client/inference.py +1875 -133
  20. elasticsearch/_async/client/ingest.py +83 -50
  21. elasticsearch/_async/client/license.py +90 -38
  22. elasticsearch/_async/client/logstash.py +20 -9
  23. elasticsearch/_async/client/migration.py +26 -17
  24. elasticsearch/_async/client/ml.py +642 -365
  25. elasticsearch/_async/client/monitoring.py +6 -3
  26. elasticsearch/_async/client/nodes.py +51 -53
  27. elasticsearch/_async/client/query_rules.py +59 -33
  28. elasticsearch/_async/client/rollup.py +124 -86
  29. elasticsearch/_async/client/search_application.py +60 -32
  30. elasticsearch/_async/client/searchable_snapshots.py +25 -12
  31. elasticsearch/_async/client/security.py +896 -558
  32. elasticsearch/_async/client/shutdown.py +34 -36
  33. elasticsearch/_async/client/simulate.py +22 -28
  34. elasticsearch/_async/client/slm.py +65 -40
  35. elasticsearch/_async/client/snapshot.py +190 -213
  36. elasticsearch/_async/client/sql.py +43 -22
  37. elasticsearch/_async/client/ssl.py +17 -18
  38. elasticsearch/_async/client/synonyms.py +58 -37
  39. elasticsearch/_async/client/tasks.py +77 -48
  40. elasticsearch/_async/client/text_structure.py +65 -56
  41. elasticsearch/_async/client/transform.py +124 -93
  42. elasticsearch/_async/client/watcher.py +116 -72
  43. elasticsearch/_async/client/xpack.py +18 -9
  44. elasticsearch/_async/helpers.py +1 -2
  45. elasticsearch/_sync/client/__init__.py +2146 -859
  46. elasticsearch/_sync/client/_base.py +0 -1
  47. elasticsearch/_sync/client/async_search.py +44 -29
  48. elasticsearch/_sync/client/autoscaling.py +32 -26
  49. elasticsearch/_sync/client/cat.py +244 -169
  50. elasticsearch/_sync/client/ccr.py +268 -128
  51. elasticsearch/_sync/client/cluster.py +191 -164
  52. elasticsearch/_sync/client/connector.py +212 -116
  53. elasticsearch/_sync/client/dangling_indices.py +22 -16
  54. elasticsearch/_sync/client/enrich.py +51 -11
  55. elasticsearch/_sync/client/eql.py +54 -13
  56. elasticsearch/_sync/client/esql.py +352 -4
  57. elasticsearch/_sync/client/features.py +37 -27
  58. elasticsearch/_sync/client/fleet.py +22 -10
  59. elasticsearch/_sync/client/graph.py +10 -9
  60. elasticsearch/_sync/client/ilm.py +108 -77
  61. elasticsearch/_sync/client/indices.py +1112 -677
  62. elasticsearch/_sync/client/inference.py +1875 -133
  63. elasticsearch/_sync/client/ingest.py +83 -50
  64. elasticsearch/_sync/client/license.py +90 -38
  65. elasticsearch/_sync/client/logstash.py +20 -9
  66. elasticsearch/_sync/client/migration.py +26 -17
  67. elasticsearch/_sync/client/ml.py +642 -365
  68. elasticsearch/_sync/client/monitoring.py +6 -3
  69. elasticsearch/_sync/client/nodes.py +51 -53
  70. elasticsearch/_sync/client/query_rules.py +59 -33
  71. elasticsearch/_sync/client/rollup.py +124 -86
  72. elasticsearch/_sync/client/search_application.py +60 -32
  73. elasticsearch/_sync/client/searchable_snapshots.py +25 -12
  74. elasticsearch/_sync/client/security.py +896 -558
  75. elasticsearch/_sync/client/shutdown.py +34 -36
  76. elasticsearch/_sync/client/simulate.py +22 -28
  77. elasticsearch/_sync/client/slm.py +65 -40
  78. elasticsearch/_sync/client/snapshot.py +190 -213
  79. elasticsearch/_sync/client/sql.py +43 -22
  80. elasticsearch/_sync/client/ssl.py +17 -18
  81. elasticsearch/_sync/client/synonyms.py +58 -37
  82. elasticsearch/_sync/client/tasks.py +77 -48
  83. elasticsearch/_sync/client/text_structure.py +65 -56
  84. elasticsearch/_sync/client/transform.py +124 -93
  85. elasticsearch/_sync/client/utils.py +1 -4
  86. elasticsearch/_sync/client/watcher.py +116 -72
  87. elasticsearch/_sync/client/xpack.py +18 -9
  88. elasticsearch/_version.py +1 -1
  89. elasticsearch/client.py +2 -0
  90. elasticsearch/dsl/__init__.py +203 -0
  91. elasticsearch/dsl/_async/__init__.py +16 -0
  92. elasticsearch/dsl/_async/document.py +522 -0
  93. elasticsearch/dsl/_async/faceted_search.py +50 -0
  94. elasticsearch/dsl/_async/index.py +639 -0
  95. elasticsearch/dsl/_async/mapping.py +49 -0
  96. elasticsearch/dsl/_async/search.py +233 -0
  97. elasticsearch/dsl/_async/update_by_query.py +47 -0
  98. elasticsearch/dsl/_sync/__init__.py +16 -0
  99. elasticsearch/dsl/_sync/document.py +514 -0
  100. elasticsearch/dsl/_sync/faceted_search.py +50 -0
  101. elasticsearch/dsl/_sync/index.py +597 -0
  102. elasticsearch/dsl/_sync/mapping.py +49 -0
  103. elasticsearch/dsl/_sync/search.py +226 -0
  104. elasticsearch/dsl/_sync/update_by_query.py +45 -0
  105. elasticsearch/dsl/aggs.py +3730 -0
  106. elasticsearch/dsl/analysis.py +341 -0
  107. elasticsearch/dsl/async_connections.py +37 -0
  108. elasticsearch/dsl/connections.py +142 -0
  109. elasticsearch/dsl/document.py +20 -0
  110. elasticsearch/dsl/document_base.py +444 -0
  111. elasticsearch/dsl/exceptions.py +32 -0
  112. elasticsearch/dsl/faceted_search.py +28 -0
  113. elasticsearch/dsl/faceted_search_base.py +489 -0
  114. elasticsearch/dsl/field.py +4254 -0
  115. elasticsearch/dsl/function.py +180 -0
  116. elasticsearch/dsl/index.py +23 -0
  117. elasticsearch/dsl/index_base.py +178 -0
  118. elasticsearch/dsl/mapping.py +19 -0
  119. elasticsearch/dsl/mapping_base.py +219 -0
  120. elasticsearch/dsl/query.py +2816 -0
  121. elasticsearch/dsl/response/__init__.py +388 -0
  122. elasticsearch/dsl/response/aggs.py +100 -0
  123. elasticsearch/dsl/response/hit.py +53 -0
  124. elasticsearch/dsl/search.py +20 -0
  125. elasticsearch/dsl/search_base.py +1040 -0
  126. elasticsearch/dsl/serializer.py +34 -0
  127. elasticsearch/dsl/types.py +6471 -0
  128. elasticsearch/dsl/update_by_query.py +19 -0
  129. elasticsearch/dsl/update_by_query_base.py +149 -0
  130. elasticsearch/dsl/utils.py +687 -0
  131. elasticsearch/dsl/wrappers.py +119 -0
  132. elasticsearch/helpers/actions.py +1 -1
  133. elasticsearch/helpers/vectorstore/_sync/vectorstore.py +4 -1
  134. {elasticsearch-8.17.1.dist-info → elasticsearch-8.18.0.dist-info}/METADATA +12 -2
  135. elasticsearch-8.18.0.dist-info/RECORD +161 -0
  136. elasticsearch-8.17.1.dist-info/RECORD +0 -119
  137. {elasticsearch-8.17.1.dist-info → elasticsearch-8.18.0.dist-info}/WHEEL +0 -0
  138. {elasticsearch-8.17.1.dist-info → elasticsearch-8.18.0.dist-info}/licenses/LICENSE +0 -0
  139. {elasticsearch-8.17.1.dist-info → elasticsearch-8.18.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
- Send monitoring data. This API is used by the monitoring features to send monitoring
46
- data.
45
+ .. raw:: html
47
46
 
48
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/monitor-elasticsearch-cluster.html>`_
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/v8>`_
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
- Clear the archived repositories metering. Clear the archived repositories metering
48
- information in the cluster.
47
+ .. raw:: html
49
48
 
50
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/clear-repositories-metering-archive-api.html>`_
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/guide/en/elasticsearch/reference/8.18/clear-repositories-metering-archive-api.html>`_
51
54
 
52
55
  :param node_id: Comma-separated list of node IDs or names used to limit returned
53
56
  information.
@@ -94,13 +97,15 @@ class NodesClient(NamespacedClient):
94
97
  pretty: t.Optional[bool] = None,
95
98
  ) -> ObjectApiResponse[t.Any]:
96
99
  """
97
- Get cluster repositories metering. Get repositories metering information for
98
- a cluster. This API exposes monotonically non-decreasing counters and it is expected
99
- that clients would durably store the information needed to compute aggregations
100
- over a period of time. Additionally, the information exposed by this API is volatile,
101
- meaning that it will not be present after node restarts.
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/guide/en/elasticsearch/reference/8.17/get-repositories-metering-api.html>`_
108
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/get-repositories-metering-api.html>`_
104
109
 
105
110
  :param node_id: Comma-separated list of node IDs or names used to limit returned
106
111
  information. All the nodes selective options are explained [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster.html#cluster-nodes).
@@ -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
- Get the hot threads for nodes. Get a breakdown of the hot threads on each selected
155
- node in the cluster. The output is plain text with a breakdown of the top hot
156
- threads for each node.
158
+ .. raw:: html
157
159
 
158
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-nodes-hot-threads.html>`_
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>
163
+
164
+
165
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/cluster-nodes-hot-threads.html>`_
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
- Get node information. By default, the API returns all attributes and core settings
232
- for cluster nodes.
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>
236
+
233
237
 
234
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-nodes-info.html>`_
238
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/cluster-nodes-info.html>`_
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
- Reload the keystore on nodes in the cluster. Secure settings are stored in an
302
- on-disk keystore. Certain of these settings are reloadable. That is, you can
303
- change them on disk and reload them without restarting any nodes in the cluster.
304
- When you have updated reloadable secure settings in your keystore, you can use
305
- this API to reload those settings on each node. When the Elasticsearch keystore
306
- is password protected and not simply obfuscated, you must provide the password
307
- for the keystore when you reload the secure settings. Reloading the settings
308
- for the whole cluster assumes that the keystores for all nodes are protected
309
- with the same password; this method is allowed only when inter-node communications
310
- are encrypted. Alternatively, you can reload the secure settings on each node
311
- by locally accessing the API and passing the node-specific Elasticsearch keystore
312
- password.
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/guide/en/elasticsearch/reference/8.18/cluster-nodes-reload-secure-settings.html>`_
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
- Get node statistics. Get statistics for nodes in a cluster. By default, all stats
384
- are returned. You can limit the returned information by using metrics.
379
+ .. raw:: html
380
+
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>
385
384
 
386
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-nodes-stats.html>`_
385
+
386
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/cluster-nodes-stats.html>`_
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
- Get feature usage information.
496
+ .. raw:: html
497
+
498
+ <p>Get feature usage information.</p>
499
+
502
500
 
503
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-nodes-usage.html>`_
501
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/cluster-nodes-usage.html>`_
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
- Delete a query rule. Delete a query rule within a query ruleset. This is a destructive
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
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/delete-query-rule.html>`_
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/guide/en/elasticsearch/reference/8.18/delete-query-rule.html>`_
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
- Delete a query ruleset. Remove a query ruleset and its associated data. This
91
- is a destructive action that is not recoverable.
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/guide/en/elasticsearch/reference/8.17/delete-query-ruleset.html>`_
100
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/delete-query-ruleset.html>`_
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
- Get a query rule. Get details about a query rule within a query ruleset.
139
+ .. raw:: html
133
140
 
134
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/get-query-rule.html>`_
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/guide/en/elasticsearch/reference/8.18/get-query-rule.html>`_
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
- Get a query ruleset. Get details about a query ruleset.
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/guide/en/elasticsearch/reference/8.17/get-query-ruleset.html>`_
197
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/get-query-ruleset.html>`_
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
- Get all query rulesets. Get summarized information about the query rulesets.
238
+ .. raw:: html
224
239
 
225
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/list-query-rulesets.html>`_
240
+ <p>Get all query rulesets.
241
+ Get summarized information about the query rulesets.</p>
242
+
243
+
244
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/list-query-rulesets.html>`_
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
- Create or update a query rule. Create or update a query rule within a query ruleset.
277
- IMPORTANT: Due to limitations within pinned queries, you can only pin documents
278
- using ids or docs, but cannot use both in single rule. It is advised to use one
279
- or the other in query rulesets, to avoid errors. Additionally, pinned queries
280
- have a maximum limit of 100 pinned hits. If multiple matching rules pin more
281
- than 100 documents, only the first 100 documents are pinned in the order they
282
- are specified in the ruleset.
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/guide/en/elasticsearch/reference/8.17/put-query-rule.html>`_
305
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/put-query-rule.html>`_
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
- Create or update a query ruleset. There is a limit of 100 rules per ruleset.
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
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/put-query-ruleset.html>`_
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/guide/en/elasticsearch/reference/8.18/put-query-ruleset.html>`_
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
- Test a query ruleset. Evaluate match criteria against a query ruleset to identify
421
- the rules that would match that criteria.
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/guide/en/elasticsearch/reference/8.17/test-query-ruleset.html>`_
449
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/test-query-ruleset.html>`_
424
450
 
425
451
  :param ruleset_id: The unique identifier of the query ruleset to be created or
426
452
  updated