elasticsearch 8.17.0__tar.gz → 8.17.1__tar.gz

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 (176) hide show
  1. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/PKG-INFO +1 -1
  2. elasticsearch-8.17.1/docs/sphinx/_static/css/custom.css +16 -0
  3. elasticsearch-8.17.1/docs/sphinx/api/simulate.rst +9 -0
  4. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api.rst +1 -0
  5. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/conf.py +2 -0
  6. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/__init__.py +153 -51
  7. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/cat.py +64 -195
  8. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/cluster.py +19 -19
  9. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/connector.py +337 -0
  10. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/dangling_indices.py +3 -3
  11. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/ilm.py +6 -6
  12. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/indices.py +360 -81
  13. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/inference.py +94 -1
  14. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/ingest.py +175 -2
  15. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/logstash.py +9 -6
  16. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/migration.py +16 -7
  17. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/ml.py +12 -6
  18. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/monitoring.py +2 -1
  19. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/nodes.py +3 -3
  20. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/query_rules.py +33 -12
  21. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/rollup.py +88 -13
  22. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/search_application.py +130 -1
  23. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/searchable_snapshots.py +32 -23
  24. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/security.py +676 -55
  25. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/shutdown.py +38 -15
  26. elasticsearch-8.17.1/elasticsearch/_async/client/simulate.py +151 -0
  27. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/slm.py +138 -19
  28. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/snapshot.py +307 -23
  29. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/sql.py +66 -46
  30. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/synonyms.py +39 -19
  31. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/tasks.py +68 -28
  32. elasticsearch-8.17.1/elasticsearch/_async/client/text_structure.py +655 -0
  33. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/transform.py +9 -2
  34. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/watcher.py +207 -41
  35. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/xpack.py +11 -6
  36. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/__init__.py +153 -51
  37. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/cat.py +64 -195
  38. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/cluster.py +19 -19
  39. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/connector.py +337 -0
  40. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/dangling_indices.py +3 -3
  41. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/ilm.py +6 -6
  42. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/indices.py +360 -81
  43. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/inference.py +94 -1
  44. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/ingest.py +175 -2
  45. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/logstash.py +9 -6
  46. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/migration.py +16 -7
  47. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/ml.py +12 -6
  48. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/monitoring.py +2 -1
  49. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/nodes.py +3 -3
  50. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/query_rules.py +33 -12
  51. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/rollup.py +88 -13
  52. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/search_application.py +130 -1
  53. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/searchable_snapshots.py +32 -23
  54. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/security.py +676 -55
  55. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/shutdown.py +38 -15
  56. elasticsearch-8.17.1/elasticsearch/_sync/client/simulate.py +151 -0
  57. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/slm.py +138 -19
  58. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/snapshot.py +307 -23
  59. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/sql.py +66 -46
  60. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/synonyms.py +39 -19
  61. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/tasks.py +68 -28
  62. elasticsearch-8.17.1/elasticsearch/_sync/client/text_structure.py +655 -0
  63. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/transform.py +9 -2
  64. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/watcher.py +207 -41
  65. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/xpack.py +11 -6
  66. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_version.py +1 -1
  67. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/client.py +2 -0
  68. elasticsearch-8.17.0/elasticsearch/_async/client/text_structure.py +0 -235
  69. elasticsearch-8.17.0/elasticsearch/_sync/client/text_structure.py +0 -235
  70. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/.gitignore +0 -0
  71. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/CHANGELOG.md +0 -0
  72. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/CONTRIBUTING.md +0 -0
  73. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/LICENSE +0 -0
  74. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/NOTICE +0 -0
  75. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/README.md +0 -0
  76. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/Makefile +0 -0
  77. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/async-search.rst +0 -0
  78. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/autoscaling.rst +0 -0
  79. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/cat.rst +0 -0
  80. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/ccr.rst +0 -0
  81. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/cluster.rst +0 -0
  82. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/connector.rst +0 -0
  83. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/dangling-indices.rst +0 -0
  84. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/elasticsearch.rst +0 -0
  85. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/enrich-policies.rst +0 -0
  86. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/eql.rst +0 -0
  87. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/esql.rst +0 -0
  88. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/fleet.rst +0 -0
  89. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/graph-explore.rst +0 -0
  90. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/index-lifecycle-management.rst +0 -0
  91. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/indices.rst +0 -0
  92. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/inference.rst +0 -0
  93. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/ingest-pipelines.rst +0 -0
  94. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/license.rst +0 -0
  95. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/logstash.rst +0 -0
  96. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/migration.rst +0 -0
  97. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/ml.rst +0 -0
  98. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/monitoring.rst +0 -0
  99. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/nodes.rst +0 -0
  100. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/query-rules.rst +0 -0
  101. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/rollup-indices.rst +0 -0
  102. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/search-application.rst +0 -0
  103. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/searchable-snapshots.rst +0 -0
  104. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/security.rst +0 -0
  105. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/shutdown.rst +0 -0
  106. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/snapshot-lifecycle-management.rst +0 -0
  107. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/snapshots.rst +0 -0
  108. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/snapshottable-features.rst +0 -0
  109. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/sql.rst +0 -0
  110. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/synonyms.rst +0 -0
  111. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/tasks.rst +0 -0
  112. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/text-structure.rst +0 -0
  113. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/tls-ssl.rst +0 -0
  114. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/transforms.rst +0 -0
  115. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/watcher.rst +0 -0
  116. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/api/x-pack.rst +0 -0
  117. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/async.rst +0 -0
  118. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/exceptions.rst +0 -0
  119. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/helpers.rst +0 -0
  120. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/index.rst +0 -0
  121. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/interactive.rst +0 -0
  122. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/docs/sphinx/quickstart.rst +0 -0
  123. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/__init__.py +0 -0
  124. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/__init__.py +0 -0
  125. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/_base.py +0 -0
  126. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/async_search.py +0 -0
  127. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/autoscaling.py +0 -0
  128. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/ccr.py +0 -0
  129. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/enrich.py +0 -0
  130. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/eql.py +0 -0
  131. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/esql.py +0 -0
  132. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/features.py +0 -0
  133. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/fleet.py +0 -0
  134. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/graph.py +0 -0
  135. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/license.py +0 -0
  136. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/ssl.py +0 -0
  137. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/client/utils.py +0 -0
  138. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_async/helpers.py +0 -0
  139. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_otel.py +0 -0
  140. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/__init__.py +0 -0
  141. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/_base.py +0 -0
  142. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/async_search.py +0 -0
  143. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/autoscaling.py +0 -0
  144. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/ccr.py +0 -0
  145. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/enrich.py +0 -0
  146. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/eql.py +0 -0
  147. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/esql.py +0 -0
  148. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/features.py +0 -0
  149. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/fleet.py +0 -0
  150. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/graph.py +0 -0
  151. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/license.py +0 -0
  152. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/ssl.py +0 -0
  153. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_sync/client/utils.py +0 -0
  154. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/_utils.py +0 -0
  155. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/compat.py +0 -0
  156. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/exceptions.py +0 -0
  157. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/helpers/__init__.py +0 -0
  158. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/helpers/actions.py +0 -0
  159. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/helpers/errors.py +0 -0
  160. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/helpers/vectorstore/__init__.py +0 -0
  161. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/helpers/vectorstore/_async/__init__.py +0 -0
  162. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/helpers/vectorstore/_async/_utils.py +0 -0
  163. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/helpers/vectorstore/_async/embedding_service.py +0 -0
  164. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/helpers/vectorstore/_async/strategies.py +0 -0
  165. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/helpers/vectorstore/_async/vectorstore.py +0 -0
  166. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/helpers/vectorstore/_sync/__init__.py +0 -0
  167. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/helpers/vectorstore/_sync/_utils.py +0 -0
  168. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/helpers/vectorstore/_sync/embedding_service.py +0 -0
  169. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/helpers/vectorstore/_sync/strategies.py +0 -0
  170. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/helpers/vectorstore/_sync/vectorstore.py +0 -0
  171. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/helpers/vectorstore/_utils.py +0 -0
  172. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/py.typed +0 -0
  173. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/serializer.py +0 -0
  174. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/elasticsearch/transport.py +0 -0
  175. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/pyproject.toml +0 -0
  176. {elasticsearch-8.17.0 → elasticsearch-8.17.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: elasticsearch
3
- Version: 8.17.0
3
+ Version: 8.17.1
4
4
  Summary: Python client for Elasticsearch
5
5
  Project-URL: Documentation, https://elasticsearch-py.readthedocs.io/
6
6
  Project-URL: Homepage, https://github.com/elastic/elasticsearch-py
@@ -0,0 +1,16 @@
1
+ /* Display GitHub Flavored Markdown code blocks correctly */
2
+
3
+ .rst-content pre {
4
+ background-color: #f5f5f5;
5
+ border-radius: 6px;
6
+ padding: 16px;
7
+ margin: 16px 0;
8
+ overflow-x: auto;
9
+ }
10
+
11
+ .rst-content pre code {
12
+ background-color: #f5f5f5;
13
+ white-space: pre;
14
+ border: none;
15
+ padding: 0;
16
+ }
@@ -0,0 +1,9 @@
1
+ .. _simulate:
2
+
3
+ Simulate
4
+ --------
5
+ .. py:module:: elasticsearch.client
6
+ :no-index:
7
+
8
+ .. autoclass:: SimulateClient
9
+ :members:
@@ -45,6 +45,7 @@ arguments are required for all calls.
45
45
  api/searchable-snapshots
46
46
  api/security
47
47
  api/shutdown
48
+ api/simulate
48
49
  api/snapshot-lifecycle-management
49
50
  api/snapshots
50
51
  api/snapshottable-features
@@ -44,6 +44,8 @@ release = version
44
44
  pygments_style = "sphinx"
45
45
 
46
46
  html_theme = "sphinx_rtd_theme"
47
+ html_static_path = ["_static"]
48
+ html_css_files = ["css/custom.css"]
47
49
 
48
50
  intersphinx_mapping = {
49
51
  "python": ("https://docs.python.org/3", None),
@@ -70,6 +70,7 @@ from .search_application import SearchApplicationClient
70
70
  from .searchable_snapshots import SearchableSnapshotsClient
71
71
  from .security import SecurityClient
72
72
  from .shutdown import ShutdownClient
73
+ from .simulate import SimulateClient
73
74
  from .slm import SlmClient
74
75
  from .snapshot import SnapshotClient
75
76
  from .sql import SqlClient
@@ -465,6 +466,7 @@ class AsyncElasticsearch(BaseClient):
465
466
  self.searchable_snapshots = SearchableSnapshotsClient(self)
466
467
  self.security = SecurityClient(self)
467
468
  self.slm = SlmClient(self)
469
+ self.simulate = SimulateClient(self)
468
470
  self.shutdown = ShutdownClient(self)
469
471
  self.sql = SqlClient(self)
470
472
  self.ssl = SslClient(self)
@@ -644,41 +646,125 @@ class AsyncElasticsearch(BaseClient):
644
646
  ] = None,
645
647
  ) -> ObjectApiResponse[t.Any]:
646
648
  """
647
- Bulk index or delete documents. Performs multiple indexing or delete operations
648
- in a single API call. This reduces overhead and can greatly increase indexing
649
- speed.
649
+ Bulk index or delete documents. Perform multiple `index`, `create`, `delete`,
650
+ and `update` actions in a single request. This reduces overhead and can greatly
651
+ increase indexing speed. If the Elasticsearch security features are enabled,
652
+ you must have the following index privileges for the target data stream, index,
653
+ or index alias: * To use the `create` action, you must have the `create_doc`,
654
+ `create`, `index`, or `write` index privilege. Data streams support only the
655
+ `create` action. * To use the `index` action, you must have the `create`, `index`,
656
+ or `write` index privilege. * To use the `delete` action, you must have the `delete`
657
+ or `write` index privilege. * To use the `update` action, you must have the `index`
658
+ or `write` index privilege. * To automatically create a data stream or index
659
+ with a bulk API request, you must have the `auto_configure`, `create_index`,
660
+ or `manage` index privilege. * To make the result of a bulk operation visible
661
+ to search using the `refresh` parameter, you must have the `maintenance` or `manage`
662
+ index privilege. Automatic data stream creation requires a matching index template
663
+ with data stream enabled. The actions are specified in the request body using
664
+ a newline delimited JSON (NDJSON) structure: ``` action_and_meta_data\\n optional_source\\n
665
+ action_and_meta_data\\n optional_source\\n .... action_and_meta_data\\n optional_source\\n
666
+ ``` The `index` and `create` actions expect a source on the next line and have
667
+ the same semantics as the `op_type` parameter in the standard index API. A `create`
668
+ action fails if a document with the same ID already exists in the target An `index`
669
+ action adds or replaces a document as necessary. NOTE: Data streams support only
670
+ the `create` action. To update or delete a document in a data stream, you must
671
+ target the backing index containing the document. An `update` action expects
672
+ that the partial doc, upsert, and script and its options are specified on the
673
+ next line. A `delete` action does not expect a source on the next line and has
674
+ the same semantics as the standard delete API. NOTE: The final line of data must
675
+ end with a newline character (`\\n`). Each newline character may be preceded
676
+ by a carriage return (`\\r`). When sending NDJSON data to the `_bulk` endpoint,
677
+ use a `Content-Type` header of `application/json` or `application/x-ndjson`.
678
+ Because this format uses literal newline characters (`\\n`) as delimiters, make
679
+ sure that the JSON actions and sources are not pretty printed. If you provide
680
+ a target in the request path, it is used for any actions that don't explicitly
681
+ specify an `_index` argument. A note on the format: the idea here is to make
682
+ processing as fast as possible. As some of the actions are redirected to other
683
+ shards on other nodes, only `action_meta_data` is parsed on the receiving node
684
+ side. Client libraries using this protocol should try and strive to do something
685
+ similar on the client side, and reduce buffering as much as possible. There is
686
+ no "correct" number of actions to perform in a single bulk request. Experiment
687
+ with different settings to find the optimal size for your particular workload.
688
+ Note that Elasticsearch limits the maximum size of a HTTP request to 100mb by
689
+ default so clients must ensure that no request exceeds this size. It is not possible
690
+ to index a single document that exceeds the size limit, so you must pre-process
691
+ any such documents into smaller pieces before sending them to Elasticsearch.
692
+ For instance, split documents into pages or chapters before indexing them, or
693
+ store raw binary data in a system outside Elasticsearch and replace the raw data
694
+ with a link to the external system in the documents that you send to Elasticsearch.
695
+ **Client suppport for bulk requests** Some of the officially supported clients
696
+ provide helpers to assist with bulk requests and reindexing: * Go: Check out
697
+ `esutil.BulkIndexer` * Perl: Check out `Search::Elasticsearch::Client::5_0::Bulk`
698
+ and `Search::Elasticsearch::Client::5_0::Scroll` * Python: Check out `elasticsearch.helpers.*`
699
+ * JavaScript: Check out `client.helpers.*` * .NET: Check out `BulkAllObservable`
700
+ * PHP: Check out bulk indexing. **Submitting bulk requests with cURL** If you're
701
+ providing text file input to `curl`, you must use the `--data-binary` flag instead
702
+ of plain `-d`. The latter doesn't preserve newlines. For example: ``` $ cat requests
703
+ { "index" : { "_index" : "test", "_id" : "1" } } { "field1" : "value1" } $ curl
704
+ -s -H "Content-Type: application/x-ndjson" -XPOST localhost:9200/_bulk --data-binary
705
+ "@requests"; echo {"took":7, "errors": false, "items":[{"index":{"_index":"test","_id":"1","_version":1,"result":"created","forced_refresh":false}}]}
706
+ ``` **Optimistic concurrency control** Each `index` and `delete` action within
707
+ a bulk API call may include the `if_seq_no` and `if_primary_term` parameters
708
+ in their respective action and meta data lines. The `if_seq_no` and `if_primary_term`
709
+ parameters control how operations are run, based on the last modification to
710
+ existing documents. See Optimistic concurrency control for more details. **Versioning**
711
+ Each bulk item can include the version value using the `version` field. It automatically
712
+ follows the behavior of the index or delete operation based on the `_version`
713
+ mapping. It also support the `version_type`. **Routing** Each bulk item can include
714
+ the routing value using the `routing` field. It automatically follows the behavior
715
+ of the index or delete operation based on the `_routing` mapping. NOTE: Data
716
+ streams do not support custom routing unless they were created with the `allow_custom_routing`
717
+ setting enabled in the template. **Wait for active shards** When making bulk
718
+ calls, you can set the `wait_for_active_shards` parameter to require a minimum
719
+ number of shard copies to be active before starting to process the bulk request.
720
+ **Refresh** Control when the changes made by this request are visible to search.
721
+ NOTE: Only the shards that receive the bulk request will be affected by refresh.
722
+ Imagine a `_bulk?refresh=wait_for` request with three documents in it that happen
723
+ to be routed to different shards in an index with five shards. The request will
724
+ only wait for those three shards to refresh. The other two shards that make up
725
+ the index do not participate in the `_bulk` request at all.
650
726
 
651
727
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/docs-bulk.html>`_
652
728
 
653
729
  :param operations:
654
- :param index: Name of the data stream, index, or index alias to perform bulk
730
+ :param index: The name of the data stream, index, or index alias to perform bulk
655
731
  actions on.
656
732
  :param list_executed_pipelines: If `true`, the response will include the ingest
657
- pipelines that were executed for each index or create.
658
- :param pipeline: ID of the pipeline to use to preprocess incoming documents.
659
- If the index has a default ingest pipeline specified, then setting the value
660
- to `_none` disables the default ingest pipeline for this request. If a final
661
- pipeline is configured it will always run, regardless of the value of this
733
+ pipelines that were run for each index or create.
734
+ :param pipeline: The pipeline identifier to use to preprocess incoming documents.
735
+ If the index has a default ingest pipeline specified, setting the value to
736
+ `_none` turns off the default ingest pipeline for this request. If a final
737
+ pipeline is configured, it will always run regardless of the value of this
662
738
  parameter.
663
739
  :param refresh: If `true`, Elasticsearch refreshes the affected shards to make
664
- this operation visible to search, if `wait_for` then wait for a refresh to
665
- make this operation visible to search, if `false` do nothing with refreshes.
740
+ this operation visible to search. If `wait_for`, wait for a refresh to make
741
+ this operation visible to search. If `false`, do nothing with refreshes.
666
742
  Valid values: `true`, `false`, `wait_for`.
667
- :param require_alias: If `true`, the requests actions must target an index alias.
743
+ :param require_alias: If `true`, the request's actions must target an index alias.
668
744
  :param require_data_stream: If `true`, the request's actions must target a data
669
- stream (existing or to-be-created).
670
- :param routing: Custom value used to route operations to a specific shard.
671
- :param source: `true` or `false` to return the `_source` field or not, or a list
672
- of fields to return.
745
+ stream (existing or to be created).
746
+ :param routing: A custom value that is used to route operations to a specific
747
+ shard.
748
+ :param source: Indicates whether to return the `_source` field (`true` or `false`)
749
+ or contains a list of fields to return.
673
750
  :param source_excludes: A comma-separated list of source fields to exclude from
674
- the response.
751
+ the response. You can also use this parameter to exclude fields from the
752
+ subset specified in `_source_includes` query parameter. If the `_source`
753
+ parameter is `false`, this parameter is ignored.
675
754
  :param source_includes: A comma-separated list of source fields to include in
676
- the response.
677
- :param timeout: Period each action waits for the following operations: automatic
678
- index creation, dynamic mapping updates, waiting for active shards.
755
+ the response. If this parameter is specified, only these source fields are
756
+ returned. You can exclude fields from this subset using the `_source_excludes`
757
+ query parameter. If the `_source` parameter is `false`, this parameter is
758
+ ignored.
759
+ :param timeout: The period each action waits for the following operations: automatic
760
+ index creation, dynamic mapping updates, and waiting for active shards. The
761
+ default is `1m` (one minute), which guarantees Elasticsearch waits for at
762
+ least the timeout before failing. The actual wait time could be longer, particularly
763
+ when multiple waits occur.
679
764
  :param wait_for_active_shards: The number of shard copies that must be active
680
- before proceeding with the operation. Set to all or any positive integer
681
- up to the total number of shards in the index (`number_of_replicas+1`).
765
+ before proceeding with the operation. Set to `all` or any positive integer
766
+ up to the total number of shards in the index (`number_of_replicas+1`). The
767
+ default is `1`, which waits for each primary shard to be active.
682
768
  """
683
769
  if operations is None and body is None:
684
770
  raise ValueError(
@@ -758,7 +844,7 @@ class AsyncElasticsearch(BaseClient):
758
844
 
759
845
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/clear-scroll-api.html>`_
760
846
 
761
- :param scroll_id: Scroll IDs to clear. To clear all scroll IDs, use `_all`.
847
+ :param scroll_id: The scroll IDs to clear. To clear all scroll IDs, use `_all`.
762
848
  """
763
849
  __path_parts: t.Dict[str, str] = {}
764
850
  __path = "/_search/scroll"
@@ -882,46 +968,62 @@ class AsyncElasticsearch(BaseClient):
882
968
  body: t.Optional[t.Dict[str, t.Any]] = None,
883
969
  ) -> ObjectApiResponse[t.Any]:
884
970
  """
885
- Count search results. Get the number of documents matching a query.
971
+ Count search results. Get the number of documents matching a query. The query
972
+ can either be provided using a simple query string as a parameter or using the
973
+ Query DSL defined within the request body. The latter must be nested in a `query`
974
+ key, which is the same as the search API. The count API supports multi-target
975
+ syntax. You can run a single count API search across multiple data streams and
976
+ indices. The operation is broadcast across all shards. For each shard ID group,
977
+ a replica is chosen and the search is run against it. This means that replicas
978
+ increase the scalability of the count.
886
979
 
887
980
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/search-count.html>`_
888
981
 
889
- :param index: Comma-separated list of data streams, indices, and aliases to search.
890
- Supports wildcards (`*`). To search all data streams and indices, omit this
891
- parameter or use `*` or `_all`.
982
+ :param index: A comma-separated list of data streams, indices, and aliases to
983
+ search. It supports wildcards (`*`). To search all data streams and indices,
984
+ omit this parameter or use `*` or `_all`.
892
985
  :param allow_no_indices: If `false`, the request returns an error if any wildcard
893
986
  expression, index alias, or `_all` value targets only missing or closed indices.
894
- This behavior applies even if the request targets other open indices.
987
+ This behavior applies even if the request targets other open indices. For
988
+ example, a request targeting `foo*,bar*` returns an error if an index starts
989
+ with `foo` but no index starts with `bar`.
895
990
  :param analyze_wildcard: If `true`, wildcard and prefix queries are analyzed.
896
- This parameter can only be used when the `q` query string parameter is specified.
897
- :param analyzer: Analyzer to use for the query string. This parameter can only
898
- be used when the `q` query string parameter is specified.
991
+ This parameter can be used only when the `q` query string parameter is specified.
992
+ :param analyzer: The analyzer to use for the query string. This parameter can
993
+ be used only when the `q` query string parameter is specified.
899
994
  :param default_operator: The default operator for query string query: `AND` or
900
- `OR`. This parameter can only be used when the `q` query string parameter
995
+ `OR`. This parameter can be used only when the `q` query string parameter
901
996
  is specified.
902
- :param df: Field to use as default where no field prefix is given in the query
903
- string. This parameter can only be used when the `q` query string parameter
997
+ :param df: The field to use as a default when no field prefix is given in the
998
+ query string. This parameter can be used only when the `q` query string parameter
904
999
  is specified.
905
- :param expand_wildcards: Type of index that wildcard patterns can match. If the
906
- request can target data streams, this argument determines whether wildcard
907
- expressions match hidden data streams. Supports comma-separated values, such
908
- as `open,hidden`.
909
- :param ignore_throttled: If `true`, concrete, expanded or aliased indices are
1000
+ :param expand_wildcards: The type of index that wildcard patterns can match.
1001
+ If the request can target data streams, this argument determines whether
1002
+ wildcard expressions match hidden data streams. It supports comma-separated
1003
+ values, such as `open,hidden`.
1004
+ :param ignore_throttled: If `true`, concrete, expanded, or aliased indices are
910
1005
  ignored when frozen.
911
1006
  :param ignore_unavailable: If `false`, the request returns an error if it targets
912
1007
  a missing or closed index.
913
1008
  :param lenient: If `true`, format-based query failures (such as providing text
914
- to a numeric field) in the query string will be ignored.
915
- :param min_score: Sets the minimum `_score` value that documents must have to
916
- be included in the result.
917
- :param preference: Specifies the node or shard the operation should be performed
918
- on. Random by default.
919
- :param q: Query in the Lucene query string syntax.
920
- :param query: Defines the search definition using the Query DSL.
921
- :param routing: Custom value used to route operations to a specific shard.
922
- :param terminate_after: Maximum number of documents to collect for each shard.
1009
+ to a numeric field) in the query string will be ignored. This parameter can
1010
+ be used only when the `q` query string parameter is specified.
1011
+ :param min_score: The minimum `_score` value that documents must have to be included
1012
+ in the result.
1013
+ :param preference: The node or shard the operation should be performed on. By
1014
+ default, it is random.
1015
+ :param q: The query in Lucene query string syntax.
1016
+ :param query: Defines the search definition using the Query DSL. The query is
1017
+ optional, and when not provided, it will use `match_all` to count all the
1018
+ docs.
1019
+ :param routing: A custom value used to route operations to a specific shard.
1020
+ :param terminate_after: The maximum number of documents to collect for each shard.
923
1021
  If a query reaches this limit, Elasticsearch terminates the query early.
924
- Elasticsearch collects documents before sorting.
1022
+ Elasticsearch collects documents before sorting. IMPORTANT: Use with caution.
1023
+ Elasticsearch applies this parameter to each shard handling the request.
1024
+ When possible, let Elasticsearch perform early termination automatically.
1025
+ Avoid specifying this parameter for requests that target data streams with
1026
+ backing indices across multiple data tiers.
925
1027
  """
926
1028
  __path_parts: t.Dict[str, str]
927
1029
  if index not in SKIP_IN_PATH:
@@ -2489,9 +2591,9 @@ class AsyncElasticsearch(BaseClient):
2489
2591
  pretty: t.Optional[bool] = None,
2490
2592
  ) -> ObjectApiResponse[t.Any]:
2491
2593
  """
2492
- Get cluster info. Returns basic information about the cluster.
2594
+ Get cluster info. Get basic build, version, and cluster information.
2493
2595
 
2494
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/index.html>`_
2596
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/rest-api-root.html>`_
2495
2597
  """
2496
2598
  __path_parts: t.Dict[str, str] = {}
2497
2599
  __path = "/"