elasticsearch9 9.1.2__tar.gz → 9.2.0__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 (228) hide show
  1. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/CONTRIBUTING.md +1 -1
  2. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/PKG-INFO +26 -4
  3. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/README.md +18 -0
  4. elasticsearch9-9.2.0/docs/sphinx/api/project.rst +9 -0
  5. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/es_api.rst +1 -0
  6. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/__init__.py +94 -44
  7. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/async_search.py +7 -0
  8. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/cat.py +8 -1
  9. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/cluster.py +9 -8
  10. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/eql.py +7 -0
  11. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/esql.py +26 -3
  12. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/fleet.py +1 -5
  13. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/graph.py +1 -5
  14. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/ilm.py +2 -10
  15. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/indices.py +158 -28
  16. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/inference.py +280 -123
  17. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/ingest.py +8 -0
  18. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/license.py +4 -2
  19. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/ml.py +2 -2
  20. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/nodes.py +1 -3
  21. elasticsearch9-9.2.0/elasticsearch9/_async/client/project.py +67 -0
  22. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/security.py +39 -0
  23. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/simulate.py +8 -0
  24. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/slm.py +1 -5
  25. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/snapshot.py +20 -10
  26. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/sql.py +7 -0
  27. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/streams.py +2 -3
  28. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/helpers.py +28 -15
  29. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/__init__.py +94 -44
  30. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/async_search.py +7 -0
  31. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/cat.py +8 -1
  32. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/cluster.py +9 -8
  33. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/eql.py +7 -0
  34. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/esql.py +26 -3
  35. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/fleet.py +1 -5
  36. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/graph.py +1 -5
  37. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/ilm.py +2 -10
  38. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/indices.py +158 -28
  39. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/inference.py +280 -123
  40. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/ingest.py +8 -0
  41. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/license.py +4 -2
  42. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/ml.py +2 -2
  43. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/nodes.py +1 -3
  44. elasticsearch9-9.2.0/elasticsearch9/_sync/client/project.py +67 -0
  45. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/security.py +39 -0
  46. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/simulate.py +8 -0
  47. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/slm.py +1 -5
  48. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/snapshot.py +20 -10
  49. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/sql.py +7 -0
  50. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/streams.py +2 -3
  51. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_version.py +2 -2
  52. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/client.py +2 -0
  53. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/compat.py +2 -15
  54. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/_async/document.py +2 -1
  55. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/_sync/document.py +2 -1
  56. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/document_base.py +38 -13
  57. elasticsearch9-9.2.0/elasticsearch9/dsl/pydantic.py +152 -0
  58. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/search_base.py +5 -1
  59. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/esql/esql.py +331 -41
  60. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/esql/functions.py +88 -0
  61. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/helpers/actions.py +1 -1
  62. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/pyproject.toml +8 -3
  63. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/.gitignore +0 -0
  64. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/CHANGELOG.md +0 -0
  65. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/LICENSE +0 -0
  66. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/NOTICE +0 -0
  67. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/Makefile +0 -0
  68. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/_static/css/custom.css +0 -0
  69. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/_static/images/create-api-key.png +0 -0
  70. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/async-search.rst +0 -0
  71. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/autoscaling.rst +0 -0
  72. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/cat.rst +0 -0
  73. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/ccr.rst +0 -0
  74. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/cluster.rst +0 -0
  75. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/connector.rst +0 -0
  76. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/dangling-indices.rst +0 -0
  77. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/elasticsearch.rst +0 -0
  78. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/enrich-policies.rst +0 -0
  79. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/eql.rst +0 -0
  80. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/esql.rst +0 -0
  81. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/fleet.rst +0 -0
  82. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/graph-explore.rst +0 -0
  83. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/index-lifecycle-management.rst +0 -0
  84. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/indices.rst +0 -0
  85. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/inference.rst +0 -0
  86. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/ingest-pipelines.rst +0 -0
  87. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/license.rst +0 -0
  88. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/logstash.rst +0 -0
  89. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/migration.rst +0 -0
  90. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/ml.rst +0 -0
  91. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/monitoring.rst +0 -0
  92. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/nodes.rst +0 -0
  93. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/query-rules.rst +0 -0
  94. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/rollup-indices.rst +0 -0
  95. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/search-application.rst +0 -0
  96. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/searchable-snapshots.rst +0 -0
  97. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/security.rst +0 -0
  98. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/shutdown.rst +0 -0
  99. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/simulate.rst +0 -0
  100. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/snapshot-lifecycle-management.rst +0 -0
  101. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/snapshots.rst +0 -0
  102. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/snapshottable-features.rst +0 -0
  103. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/sql.rst +0 -0
  104. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/streams.rst +0 -0
  105. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/synonyms.rst +0 -0
  106. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/tasks.rst +0 -0
  107. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/text-structure.rst +0 -0
  108. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/tls-ssl.rst +0 -0
  109. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/transforms.rst +0 -0
  110. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/watcher.rst +0 -0
  111. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api/x-pack.rst +0 -0
  112. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/api_helpers.rst +0 -0
  113. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/async_api_helpers.rst +0 -0
  114. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/async_dsl.rst +0 -0
  115. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/async_es_api.rst +0 -0
  116. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/conf.py +0 -0
  117. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/dsl.rst +0 -0
  118. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/esql.rst +0 -0
  119. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/exceptions.rst +0 -0
  120. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/docs/sphinx/index.rst +0 -0
  121. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/__init__.py +0 -0
  122. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/__init__.py +0 -0
  123. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/_base.py +0 -0
  124. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/autoscaling.py +0 -0
  125. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/ccr.py +0 -0
  126. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/connector.py +0 -0
  127. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/dangling_indices.py +0 -0
  128. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/enrich.py +0 -0
  129. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/features.py +0 -0
  130. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/logstash.py +0 -0
  131. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/migration.py +0 -0
  132. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/monitoring.py +0 -0
  133. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/query_rules.py +0 -0
  134. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/rollup.py +0 -0
  135. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/search_application.py +0 -0
  136. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/searchable_snapshots.py +0 -0
  137. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/shutdown.py +0 -0
  138. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/ssl.py +0 -0
  139. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/synonyms.py +0 -0
  140. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/tasks.py +0 -0
  141. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/text_structure.py +0 -0
  142. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/transform.py +0 -0
  143. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/utils.py +0 -0
  144. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/watcher.py +0 -0
  145. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_async/client/xpack.py +0 -0
  146. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_otel.py +0 -0
  147. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/__init__.py +0 -0
  148. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/_base.py +0 -0
  149. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/autoscaling.py +0 -0
  150. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/ccr.py +0 -0
  151. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/connector.py +0 -0
  152. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/dangling_indices.py +0 -0
  153. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/enrich.py +0 -0
  154. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/features.py +0 -0
  155. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/logstash.py +0 -0
  156. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/migration.py +0 -0
  157. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/monitoring.py +0 -0
  158. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/query_rules.py +0 -0
  159. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/rollup.py +0 -0
  160. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/search_application.py +0 -0
  161. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/searchable_snapshots.py +0 -0
  162. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/shutdown.py +0 -0
  163. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/ssl.py +0 -0
  164. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/synonyms.py +0 -0
  165. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/tasks.py +0 -0
  166. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/text_structure.py +0 -0
  167. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/transform.py +0 -0
  168. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/utils.py +0 -0
  169. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/watcher.py +0 -0
  170. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_sync/client/xpack.py +0 -0
  171. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/_utils.py +0 -0
  172. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/__init__.py +0 -0
  173. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/_async/__init__.py +0 -0
  174. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/_async/faceted_search.py +0 -0
  175. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/_async/index.py +0 -0
  176. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/_async/mapping.py +0 -0
  177. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/_async/search.py +0 -0
  178. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/_async/update_by_query.py +0 -0
  179. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/_sync/__init__.py +0 -0
  180. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/_sync/faceted_search.py +0 -0
  181. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/_sync/index.py +0 -0
  182. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/_sync/mapping.py +0 -0
  183. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/_sync/search.py +0 -0
  184. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/_sync/update_by_query.py +0 -0
  185. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/aggs.py +0 -0
  186. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/analysis.py +0 -0
  187. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/async_connections.py +0 -0
  188. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/connections.py +0 -0
  189. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/document.py +0 -0
  190. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/exceptions.py +0 -0
  191. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/faceted_search.py +0 -0
  192. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/faceted_search_base.py +0 -0
  193. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/field.py +0 -0
  194. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/function.py +0 -0
  195. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/index.py +0 -0
  196. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/index_base.py +0 -0
  197. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/mapping.py +0 -0
  198. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/mapping_base.py +0 -0
  199. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/query.py +0 -0
  200. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/response/__init__.py +0 -0
  201. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/response/aggs.py +0 -0
  202. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/response/hit.py +0 -0
  203. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/search.py +0 -0
  204. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/serializer.py +0 -0
  205. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/types.py +0 -0
  206. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/update_by_query.py +0 -0
  207. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/update_by_query_base.py +0 -0
  208. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/utils.py +0 -0
  209. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/dsl/wrappers.py +0 -0
  210. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/esql/__init__.py +0 -0
  211. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/exceptions.py +0 -0
  212. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/helpers/__init__.py +0 -0
  213. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/helpers/errors.py +0 -0
  214. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/helpers/vectorstore/__init__.py +0 -0
  215. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/helpers/vectorstore/_async/__init__.py +0 -0
  216. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/helpers/vectorstore/_async/_utils.py +0 -0
  217. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/helpers/vectorstore/_async/embedding_service.py +0 -0
  218. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/helpers/vectorstore/_async/strategies.py +0 -0
  219. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/helpers/vectorstore/_async/vectorstore.py +0 -0
  220. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/helpers/vectorstore/_sync/__init__.py +0 -0
  221. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/helpers/vectorstore/_sync/_utils.py +0 -0
  222. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/helpers/vectorstore/_sync/embedding_service.py +0 -0
  223. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/helpers/vectorstore/_sync/strategies.py +0 -0
  224. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/helpers/vectorstore/_sync/vectorstore.py +0 -0
  225. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/helpers/vectorstore/_utils.py +0 -0
  226. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/py.typed +0 -0
  227. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/elasticsearch9/serializer.py +0 -0
  228. {elasticsearch9-9.1.2 → elasticsearch9-9.2.0}/setup.cfg +0 -0
@@ -17,7 +17,7 @@ found at `.buildkite/run-elasticsearch.sh`.
17
17
 
18
18
  There are several environment variables that control integration tests:
19
19
 
20
- - `PYTHON_VERSION`: Version of Python to use, defaults to `3.9`
20
+ - `PYTHON_VERSION`: Version of Python to use, defaults to `3.14`
21
21
  - `PYTHON_CONNECTION_CLASS`: Connection class to use, defaults to `Urllib3HttpConnection`
22
22
  - `STACK_VERSION`: Version of Elasticsearch to use. These should be
23
23
  the same as tags of `docker.elastic.co/elasticsearch/elasticsearch`
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: elasticsearch9
3
- Version: 9.1.2
3
+ Version: 9.2.0
4
4
  Summary: Python client for Elasticsearch
5
5
  Project-URL: Documentation, https://elasticsearch9-py.readthedocs.io/
6
6
  Project-URL: Homepage, https://github.com/elastic/elasticsearch9-py
@@ -18,16 +18,17 @@ Classifier: License :: OSI Approved :: Apache Software License
18
18
  Classifier: Operating System :: OS Independent
19
19
  Classifier: Programming Language :: Python
20
20
  Classifier: Programming Language :: Python :: 3
21
- Classifier: Programming Language :: Python :: 3.9
22
21
  Classifier: Programming Language :: Python :: 3.10
23
22
  Classifier: Programming Language :: Python :: 3.11
24
23
  Classifier: Programming Language :: Python :: 3.12
25
24
  Classifier: Programming Language :: Python :: 3.13
26
25
  Classifier: Programming Language :: Python :: Implementation :: CPython
27
26
  Classifier: Programming Language :: Python :: Implementation :: PyPy
28
- Requires-Python: >=3.9
29
- Requires-Dist: elastic-transport<10,>=9.1.0
27
+ Requires-Python: >=3.10
28
+ Requires-Dist: anyio
29
+ Requires-Dist: elastic-transport<10,>=9.2.0
30
30
  Requires-Dist: python-dateutil
31
+ Requires-Dist: sniffio
31
32
  Requires-Dist: typing-extensions
32
33
  Provides-Extra: async
33
34
  Requires-Dist: aiohttp<4,>=3; extra == 'async'
@@ -36,6 +37,7 @@ Requires-Dist: aiohttp; extra == 'dev'
36
37
  Requires-Dist: black; extra == 'dev'
37
38
  Requires-Dist: build; extra == 'dev'
38
39
  Requires-Dist: coverage; extra == 'dev'
40
+ Requires-Dist: httpx; extra == 'dev'
39
41
  Requires-Dist: isort; extra == 'dev'
40
42
  Requires-Dist: jinja2; extra == 'dev'
41
43
  Requires-Dist: mapbox-vector-tile; extra == 'dev'
@@ -45,6 +47,7 @@ Requires-Dist: numpy; extra == 'dev'
45
47
  Requires-Dist: orjson; extra == 'dev'
46
48
  Requires-Dist: pandas; extra == 'dev'
47
49
  Requires-Dist: pyarrow; (python_version < '3.14') and extra == 'dev'
50
+ Requires-Dist: pydantic; extra == 'dev'
48
51
  Requires-Dist: pyright; extra == 'dev'
49
52
  Requires-Dist: pytest; extra == 'dev'
50
53
  Requires-Dist: pytest-asyncio; extra == 'dev'
@@ -55,6 +58,7 @@ Requires-Dist: pyyaml>=5.4; extra == 'dev'
55
58
  Requires-Dist: requests<3,>=2; extra == 'dev'
56
59
  Requires-Dist: simsimd; extra == 'dev'
57
60
  Requires-Dist: tqdm; extra == 'dev'
61
+ Requires-Dist: trio; extra == 'dev'
58
62
  Requires-Dist: twine; extra == 'dev'
59
63
  Requires-Dist: types-python-dateutil; extra == 'dev'
60
64
  Requires-Dist: types-tqdm; extra == 'dev'
@@ -166,6 +170,24 @@ Documentation for the client is [available on elastic.co] and [Read the Docs].
166
170
  [Read the Docs]: https://elasticsearch-py.readthedocs.io
167
171
 
168
172
 
173
+ ## Try Elasticsearch and Kibana locally
174
+
175
+ If you want to try Elasticsearch and Kibana locally, you can run the following command:
176
+
177
+ ```bash
178
+ curl -fsSL https://elastic.co/start-local | sh
179
+ ```
180
+
181
+ This will run Elasticsearch at [http://localhost:9200](http://localhost:9200) and Kibana at [http://localhost:5601](http://localhost:5601).
182
+
183
+ More information is available [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/run-elasticsearch-locally.html).
184
+
185
+
186
+ ## Contributing
187
+
188
+ See [CONTRIBUTING.md](./CONTRIBUTING.md)
189
+
190
+
169
191
  ## License
170
192
 
171
193
  This software is licensed under the [Apache License 2.0](./LICENSE). See [NOTICE](./NOTICE).
@@ -90,6 +90,24 @@ Documentation for the client is [available on elastic.co] and [Read the Docs].
90
90
  [Read the Docs]: https://elasticsearch-py.readthedocs.io
91
91
 
92
92
 
93
+ ## Try Elasticsearch and Kibana locally
94
+
95
+ If you want to try Elasticsearch and Kibana locally, you can run the following command:
96
+
97
+ ```bash
98
+ curl -fsSL https://elastic.co/start-local | sh
99
+ ```
100
+
101
+ This will run Elasticsearch at [http://localhost:9200](http://localhost:9200) and Kibana at [http://localhost:5601](http://localhost:5601).
102
+
103
+ More information is available [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/run-elasticsearch-locally.html).
104
+
105
+
106
+ ## Contributing
107
+
108
+ See [CONTRIBUTING.md](./CONTRIBUTING.md)
109
+
110
+
93
111
  ## License
94
112
 
95
113
  This software is licensed under the [Apache License 2.0](./LICENSE). See [NOTICE](./NOTICE).
@@ -0,0 +1,9 @@
1
+ .. _project:
2
+
3
+ Project
4
+ -------
5
+ .. py:module:: elasticsearch.client
6
+ :no-index:
7
+
8
+ .. autoclass:: ProjectClient
9
+ :members:
@@ -39,6 +39,7 @@ arguments are required for all calls.
39
39
  api/ml
40
40
  api/monitoring
41
41
  api/nodes
42
+ api/project
42
43
  api/query-rules
43
44
  api/rollup-indices
44
45
  api/search-application
@@ -63,6 +63,7 @@ from .migration import MigrationClient
63
63
  from .ml import MlClient
64
64
  from .monitoring import MonitoringClient
65
65
  from .nodes import NodesClient
66
+ from .project import ProjectClient
66
67
  from .query_rules import QueryRulesClient
67
68
  from .rollup import RollupClient
68
69
  from .search_application import SearchApplicationClient
@@ -369,6 +370,7 @@ class AsyncElasticsearch(BaseClient):
369
370
  self.migration = MigrationClient(self)
370
371
  self.ml = MlClient(self)
371
372
  self.monitoring = MonitoringClient(self)
373
+ self.project = ProjectClient(self)
372
374
  self.query_rules = QueryRulesClient(self)
373
375
  self.rollup = RollupClient(self)
374
376
  self.search_application = SearchApplicationClient(self)
@@ -847,11 +849,7 @@ class AsyncElasticsearch(BaseClient):
847
849
  if not __body:
848
850
  if id is not None:
849
851
  __body["id"] = id
850
- if not __body:
851
- __body = None # type: ignore[assignment]
852
- __headers = {"accept": "application/json"}
853
- if __body is not None:
854
- __headers["content-type"] = "application/json"
852
+ __headers = {"accept": "application/json", "content-type": "application/json"}
855
853
  return await self.perform_request( # type: ignore[return-value]
856
854
  "DELETE",
857
855
  __path,
@@ -891,6 +889,7 @@ class AsyncElasticsearch(BaseClient):
891
889
  min_score: t.Optional[float] = None,
892
890
  preference: t.Optional[str] = None,
893
891
  pretty: t.Optional[bool] = None,
892
+ project_routing: t.Optional[str] = None,
894
893
  q: t.Optional[str] = None,
895
894
  query: t.Optional[t.Mapping[str, t.Any]] = None,
896
895
  routing: t.Optional[str] = None,
@@ -924,8 +923,8 @@ class AsyncElasticsearch(BaseClient):
924
923
  This parameter can be used only when the `q` query string parameter is specified.
925
924
  :param analyzer: The analyzer to use for the query string. This parameter can
926
925
  be used only when the `q` query string parameter is specified.
927
- :param default_operator: The default operator for query string query: `AND` or
928
- `OR`. This parameter can be used only when the `q` query string parameter
926
+ :param default_operator: The default operator for query string query: `and` or
927
+ `or`. This parameter can be used only when the `q` query string parameter
929
928
  is specified.
930
929
  :param df: The field to use as a default when no field prefix is given in the
931
930
  query string. This parameter can be used only when the `q` query string parameter
@@ -945,6 +944,10 @@ class AsyncElasticsearch(BaseClient):
945
944
  in the result.
946
945
  :param preference: The node or shard the operation should be performed on. By
947
946
  default, it is random.
947
+ :param project_routing: Specifies a subset of projects to target for the search
948
+ using project metadata tags in a subset of Lucene query syntax. Allowed Lucene
949
+ queries: the _alias tag and a single value (possibly wildcarded). Examples:
950
+ _alias:my-project _alias:_origin _alias:*pr* Supported in serverless only.
948
951
  :param q: The query in Lucene query string syntax. This parameter cannot be used
949
952
  with a request body.
950
953
  :param query: Defines the search query using Query DSL. A request body query
@@ -997,6 +1000,8 @@ class AsyncElasticsearch(BaseClient):
997
1000
  __query["preference"] = preference
998
1001
  if pretty is not None:
999
1002
  __query["pretty"] = pretty
1003
+ if project_routing is not None:
1004
+ __query["project_routing"] = project_routing
1000
1005
  if q is not None:
1001
1006
  __query["q"] = q
1002
1007
  if routing is not None:
@@ -1046,7 +1051,7 @@ class AsyncElasticsearch(BaseClient):
1046
1051
  timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
1047
1052
  version: t.Optional[int] = None,
1048
1053
  version_type: t.Optional[
1049
- t.Union[str, t.Literal["external", "external_gte", "force", "internal"]]
1054
+ t.Union[str, t.Literal["external", "external_gte", "internal"]]
1050
1055
  ] = None,
1051
1056
  wait_for_active_shards: t.Optional[
1052
1057
  t.Union[int, t.Union[str, t.Literal["all", "index-setting"]]]
@@ -1225,7 +1230,7 @@ class AsyncElasticsearch(BaseClient):
1225
1230
  timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
1226
1231
  version: t.Optional[int] = None,
1227
1232
  version_type: t.Optional[
1228
- t.Union[str, t.Literal["external", "external_gte", "force", "internal"]]
1233
+ t.Union[str, t.Literal["external", "external_gte", "internal"]]
1229
1234
  ] = None,
1230
1235
  wait_for_active_shards: t.Optional[
1231
1236
  t.Union[int, t.Union[str, t.Literal["all", "index-setting"]]]
@@ -1470,8 +1475,8 @@ class AsyncElasticsearch(BaseClient):
1470
1475
  used only when the `q` query string parameter is specified.
1471
1476
  :param conflicts: What to do if delete by query hits version conflicts: `abort`
1472
1477
  or `proceed`.
1473
- :param default_operator: The default operator for query string query: `AND` or
1474
- `OR`. This parameter can be used only when the `q` query string parameter
1478
+ :param default_operator: The default operator for query string query: `and` or
1479
+ `or`. This parameter can be used only when the `q` query string parameter
1475
1480
  is specified.
1476
1481
  :param df: The field to use as default where no field prefix is given in the
1477
1482
  query string. This parameter can be used only when the `q` query string parameter
@@ -1765,7 +1770,7 @@ class AsyncElasticsearch(BaseClient):
1765
1770
  stored_fields: t.Optional[t.Union[str, t.Sequence[str]]] = None,
1766
1771
  version: t.Optional[int] = None,
1767
1772
  version_type: t.Optional[
1768
- t.Union[str, t.Literal["external", "external_gte", "force", "internal"]]
1773
+ t.Union[str, t.Literal["external", "external_gte", "internal"]]
1769
1774
  ] = None,
1770
1775
  ) -> HeadApiResponse:
1771
1776
  """
@@ -1894,7 +1899,7 @@ class AsyncElasticsearch(BaseClient):
1894
1899
  source_includes: t.Optional[t.Union[str, t.Sequence[str]]] = None,
1895
1900
  version: t.Optional[int] = None,
1896
1901
  version_type: t.Optional[
1897
- t.Union[str, t.Literal["external", "external_gte", "force", "internal"]]
1902
+ t.Union[str, t.Literal["external", "external_gte", "internal"]]
1898
1903
  ] = None,
1899
1904
  ) -> HeadApiResponse:
1900
1905
  """
@@ -2023,8 +2028,8 @@ class AsyncElasticsearch(BaseClient):
2023
2028
  This parameter can be used only when the `q` query string parameter is specified.
2024
2029
  :param analyzer: The analyzer to use for the query string. This parameter can
2025
2030
  be used only when the `q` query string parameter is specified.
2026
- :param default_operator: The default operator for query string query: `AND` or
2027
- `OR`. This parameter can be used only when the `q` query string parameter
2031
+ :param default_operator: The default operator for query string query: `and` or
2032
+ `or`. This parameter can be used only when the `q` query string parameter
2028
2033
  is specified.
2029
2034
  :param df: The field to use as default where no field prefix is given in the
2030
2035
  query string. This parameter can be used only when the `q` query string parameter
@@ -2135,6 +2140,7 @@ class AsyncElasticsearch(BaseClient):
2135
2140
  include_unmapped: t.Optional[bool] = None,
2136
2141
  index_filter: t.Optional[t.Mapping[str, t.Any]] = None,
2137
2142
  pretty: t.Optional[bool] = None,
2143
+ project_routing: t.Optional[str] = None,
2138
2144
  runtime_mappings: t.Optional[t.Mapping[str, t.Mapping[str, t.Any]]] = None,
2139
2145
  types: t.Optional[t.Sequence[str]] = None,
2140
2146
  body: t.Optional[t.Dict[str, t.Any]] = None,
@@ -2178,6 +2184,11 @@ class AsyncElasticsearch(BaseClient):
2178
2184
  deleted documents) are outside of the provided range. However, not all queries
2179
2185
  can rewrite to `match_none` so this API may return an index even if the provided
2180
2186
  filter matches no document.
2187
+ :param project_routing: Specifies a subset of projects to target for the field-caps
2188
+ query using project metadata tags in a subset of Lucene query syntax. Allowed
2189
+ Lucene queries: the _alias tag and a single value (possibly wildcarded).
2190
+ Examples: _alias:my-project _alias:_origin _alias:*pr* Supported in serverless
2191
+ only.
2181
2192
  :param runtime_mappings: Define ad-hoc runtime fields in the request similar
2182
2193
  to the way it is done in search requests. These fields exist only as part
2183
2194
  of the query and take precedence over fields defined with the same name in
@@ -2215,6 +2226,8 @@ class AsyncElasticsearch(BaseClient):
2215
2226
  __query["include_unmapped"] = include_unmapped
2216
2227
  if pretty is not None:
2217
2228
  __query["pretty"] = pretty
2229
+ if project_routing is not None:
2230
+ __query["project_routing"] = project_routing
2218
2231
  if types is not None:
2219
2232
  __query["types"] = types
2220
2233
  if not __body:
@@ -2242,6 +2255,7 @@ class AsyncElasticsearch(BaseClient):
2242
2255
  @_rewrite_parameters(
2243
2256
  parameter_aliases={
2244
2257
  "_source": "source",
2258
+ "_source_exclude_vectors": "source_exclude_vectors",
2245
2259
  "_source_excludes": "source_excludes",
2246
2260
  "_source_includes": "source_includes",
2247
2261
  },
@@ -2261,12 +2275,13 @@ class AsyncElasticsearch(BaseClient):
2261
2275
  refresh: t.Optional[bool] = None,
2262
2276
  routing: t.Optional[str] = None,
2263
2277
  source: t.Optional[t.Union[bool, t.Union[str, t.Sequence[str]]]] = None,
2278
+ source_exclude_vectors: t.Optional[bool] = None,
2264
2279
  source_excludes: t.Optional[t.Union[str, t.Sequence[str]]] = None,
2265
2280
  source_includes: t.Optional[t.Union[str, t.Sequence[str]]] = None,
2266
2281
  stored_fields: t.Optional[t.Union[str, t.Sequence[str]]] = None,
2267
2282
  version: t.Optional[int] = None,
2268
2283
  version_type: t.Optional[
2269
- t.Union[str, t.Literal["external", "external_gte", "force", "internal"]]
2284
+ t.Union[str, t.Literal["external", "external_gte", "internal"]]
2270
2285
  ] = None,
2271
2286
  ) -> ObjectApiResponse[t.Any]:
2272
2287
  """
@@ -2334,6 +2349,7 @@ class AsyncElasticsearch(BaseClient):
2334
2349
  :param routing: A custom value used to route operations to a specific shard.
2335
2350
  :param source: Indicates whether to return the `_source` field (`true` or `false`)
2336
2351
  or lists the fields to return.
2352
+ :param source_exclude_vectors: Whether vectors should be excluded from _source
2337
2353
  :param source_excludes: A comma-separated list of source fields to exclude from
2338
2354
  the response. You can also use this parameter to exclude fields from the
2339
2355
  subset specified in `_source_includes` query parameter. If the `_source`
@@ -2379,6 +2395,8 @@ class AsyncElasticsearch(BaseClient):
2379
2395
  __query["routing"] = routing
2380
2396
  if source is not None:
2381
2397
  __query["_source"] = source
2398
+ if source_exclude_vectors is not None:
2399
+ __query["_source_exclude_vectors"] = source_exclude_vectors
2382
2400
  if source_excludes is not None:
2383
2401
  __query["_source_excludes"] = source_excludes
2384
2402
  if source_includes is not None:
@@ -2553,7 +2571,7 @@ class AsyncElasticsearch(BaseClient):
2553
2571
  source_includes: t.Optional[t.Union[str, t.Sequence[str]]] = None,
2554
2572
  version: t.Optional[int] = None,
2555
2573
  version_type: t.Optional[
2556
- t.Union[str, t.Literal["external", "external_gte", "force", "internal"]]
2574
+ t.Union[str, t.Literal["external", "external_gte", "internal"]]
2557
2575
  ] = None,
2558
2576
  ) -> ObjectApiResponse[t.Any]:
2559
2577
  """
@@ -2733,7 +2751,7 @@ class AsyncElasticsearch(BaseClient):
2733
2751
  timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
2734
2752
  version: t.Optional[int] = None,
2735
2753
  version_type: t.Optional[
2736
- t.Union[str, t.Literal["external", "external_gte", "force", "internal"]]
2754
+ t.Union[str, t.Literal["external", "external_gte", "internal"]]
2737
2755
  ] = None,
2738
2756
  wait_for_active_shards: t.Optional[
2739
2757
  t.Union[int, t.Union[str, t.Literal["all", "index-setting"]]]
@@ -3148,6 +3166,7 @@ class AsyncElasticsearch(BaseClient):
3148
3166
  max_concurrent_shard_requests: t.Optional[int] = None,
3149
3167
  pre_filter_shard_size: t.Optional[int] = None,
3150
3168
  pretty: t.Optional[bool] = None,
3169
+ project_routing: t.Optional[str] = None,
3151
3170
  rest_total_hits_as_int: t.Optional[bool] = None,
3152
3171
  routing: t.Optional[str] = None,
3153
3172
  search_type: t.Optional[
@@ -3209,6 +3228,10 @@ class AsyncElasticsearch(BaseClient):
3209
3228
  roundtrip can limit the number of shards significantly if for instance a
3210
3229
  shard can not match any documents based on its rewrite method i.e., if date
3211
3230
  filters are mandatory to match but the shard bounds and the query are disjoint.
3231
+ :param project_routing: Specifies a subset of projects to target for a search
3232
+ using project metadata tags in a subset Lucene syntax. Allowed Lucene queries:
3233
+ the _alias tag and a single value (possible wildcarded). Examples: _alias:my-project
3234
+ _alias:_origin _alias:*pr* Supported in serverless only.
3212
3235
  :param rest_total_hits_as_int: If true, hits.total are returned as an integer
3213
3236
  in the response. Defaults to false, which returns an object.
3214
3237
  :param routing: Custom routing value used to route search operations to a specific
@@ -3258,6 +3281,8 @@ class AsyncElasticsearch(BaseClient):
3258
3281
  __query["pre_filter_shard_size"] = pre_filter_shard_size
3259
3282
  if pretty is not None:
3260
3283
  __query["pretty"] = pretty
3284
+ if project_routing is not None:
3285
+ __query["project_routing"] = project_routing
3261
3286
  if rest_total_hits_as_int is not None:
3262
3287
  __query["rest_total_hits_as_int"] = rest_total_hits_as_int
3263
3288
  if routing is not None:
@@ -3296,6 +3321,7 @@ class AsyncElasticsearch(BaseClient):
3296
3321
  human: t.Optional[bool] = None,
3297
3322
  max_concurrent_searches: t.Optional[int] = None,
3298
3323
  pretty: t.Optional[bool] = None,
3324
+ project_routing: t.Optional[str] = None,
3299
3325
  rest_total_hits_as_int: t.Optional[bool] = None,
3300
3326
  search_type: t.Optional[
3301
3327
  t.Union[str, t.Literal["dfs_query_then_fetch", "query_then_fetch"]]
@@ -3329,6 +3355,10 @@ class AsyncElasticsearch(BaseClient):
3329
3355
  for cross-cluster search requests.
3330
3356
  :param max_concurrent_searches: The maximum number of concurrent searches the
3331
3357
  API can run.
3358
+ :param project_routing: Specifies a subset of projects to target for the search
3359
+ using project metadata tags in a subset of Lucene query syntax. Allowed Lucene
3360
+ queries: the _alias tag and a single value (possibly wildcarded). Examples:
3361
+ _alias:my-project _alias:_origin _alias:*pr* Supported in serverless only.
3332
3362
  :param rest_total_hits_as_int: If `true`, the response returns `hits.total` as
3333
3363
  an integer. If `false`, it returns `hits.total` as an object.
3334
3364
  :param search_type: The type of the search operation.
@@ -3361,6 +3391,8 @@ class AsyncElasticsearch(BaseClient):
3361
3391
  __query["max_concurrent_searches"] = max_concurrent_searches
3362
3392
  if pretty is not None:
3363
3393
  __query["pretty"] = pretty
3394
+ if project_routing is not None:
3395
+ __query["project_routing"] = project_routing
3364
3396
  if rest_total_hits_as_int is not None:
3365
3397
  __query["rest_total_hits_as_int"] = rest_total_hits_as_int
3366
3398
  if search_type is not None:
@@ -3406,7 +3438,7 @@ class AsyncElasticsearch(BaseClient):
3406
3438
  term_statistics: t.Optional[bool] = None,
3407
3439
  version: t.Optional[int] = None,
3408
3440
  version_type: t.Optional[
3409
- t.Union[str, t.Literal["external", "external_gte", "force", "internal"]]
3441
+ t.Union[str, t.Literal["external", "external_gte", "internal"]]
3410
3442
  ] = None,
3411
3443
  body: t.Optional[t.Dict[str, t.Any]] = None,
3412
3444
  ) -> ObjectApiResponse[t.Any]:
@@ -3531,6 +3563,7 @@ class AsyncElasticsearch(BaseClient):
3531
3563
  max_concurrent_shard_requests: t.Optional[int] = None,
3532
3564
  preference: t.Optional[str] = None,
3533
3565
  pretty: t.Optional[bool] = None,
3566
+ project_routing: t.Optional[str] = None,
3534
3567
  routing: t.Optional[str] = None,
3535
3568
  body: t.Optional[t.Dict[str, t.Any]] = None,
3536
3569
  ) -> ObjectApiResponse[t.Any]:
@@ -3587,6 +3620,11 @@ class AsyncElasticsearch(BaseClient):
3587
3620
  that each sub-search request executes per node.
3588
3621
  :param preference: The node or shard the operation should be performed on. By
3589
3622
  default, it is random.
3623
+ :param project_routing: Specifies a subset of projects to target for the PIT
3624
+ request using project metadata tags in a subset of Lucene query syntax. Allowed
3625
+ Lucene queries: the _alias tag and a single value (possibly wildcarded).
3626
+ Examples: _alias:my-project _alias:_origin _alias:*pr* Supported in serverless
3627
+ only.
3590
3628
  :param routing: A custom value that is used to route operations to a specific
3591
3629
  shard.
3592
3630
  """
@@ -3618,6 +3656,8 @@ class AsyncElasticsearch(BaseClient):
3618
3656
  __query["preference"] = preference
3619
3657
  if pretty is not None:
3620
3658
  __query["pretty"] = pretty
3659
+ if project_routing is not None:
3660
+ __query["project_routing"] = project_routing
3621
3661
  if routing is not None:
3622
3662
  __query["routing"] = routing
3623
3663
  if not __body:
@@ -3816,7 +3856,7 @@ class AsyncElasticsearch(BaseClient):
3816
3856
  )
3817
3857
 
3818
3858
  @_rewrite_parameters(
3819
- body_fields=("dest", "source", "conflicts", "max_docs", "script", "size"),
3859
+ body_fields=("dest", "source", "conflicts", "max_docs", "script"),
3820
3860
  )
3821
3861
  async def reindex(
3822
3862
  self,
@@ -3834,7 +3874,6 @@ class AsyncElasticsearch(BaseClient):
3834
3874
  require_alias: t.Optional[bool] = None,
3835
3875
  script: t.Optional[t.Mapping[str, t.Any]] = None,
3836
3876
  scroll: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
3837
- size: t.Optional[int] = None,
3838
3877
  slices: t.Optional[t.Union[int, t.Union[str, t.Literal["auto"]]]] = None,
3839
3878
  timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
3840
3879
  wait_for_active_shards: t.Optional[
@@ -3910,7 +3949,6 @@ class AsyncElasticsearch(BaseClient):
3910
3949
  reindexing.
3911
3950
  :param scroll: The period of time that a consistent view of the index should
3912
3951
  be maintained for scrolled search.
3913
- :param size:
3914
3952
  :param slices: The number of slices this task should be divided into. It defaults
3915
3953
  to one slice, which means the task isn't sliced into subtasks. Reindex supports
3916
3954
  sliced scroll to parallelize the reindexing process. This parallelization
@@ -3975,8 +4013,6 @@ class AsyncElasticsearch(BaseClient):
3975
4013
  __body["max_docs"] = max_docs
3976
4014
  if script is not None:
3977
4015
  __body["script"] = script
3978
- if size is not None:
3979
- __body["size"] = size
3980
4016
  __headers = {"accept": "application/json", "content-type": "application/json"}
3981
4017
  return await self.perform_request( # type: ignore[return-value]
3982
4018
  "POST",
@@ -4103,11 +4139,7 @@ class AsyncElasticsearch(BaseClient):
4103
4139
  __body["params"] = params
4104
4140
  if source is not None:
4105
4141
  __body["source"] = source
4106
- if not __body:
4107
- __body = None # type: ignore[assignment]
4108
- __headers = {"accept": "application/json"}
4109
- if __body is not None:
4110
- __headers["content-type"] = "application/json"
4142
+ __headers = {"accept": "application/json", "content-type": "application/json"}
4111
4143
  return await self.perform_request( # type: ignore[return-value]
4112
4144
  "POST",
4113
4145
  __path,
@@ -4190,11 +4222,7 @@ class AsyncElasticsearch(BaseClient):
4190
4222
  __body["context_setup"] = context_setup
4191
4223
  if script is not None:
4192
4224
  __body["script"] = script
4193
- if not __body:
4194
- __body = None # type: ignore[assignment]
4195
- __headers = {"accept": "application/json"}
4196
- if __body is not None:
4197
- __headers["content-type"] = "application/json"
4225
+ __headers = {"accept": "application/json", "content-type": "application/json"}
4198
4226
  return await self.perform_request( # type: ignore[return-value]
4199
4227
  "POST",
4200
4228
  __path,
@@ -4319,6 +4347,7 @@ class AsyncElasticsearch(BaseClient):
4319
4347
  ),
4320
4348
  parameter_aliases={
4321
4349
  "_source": "source",
4350
+ "_source_exclude_vectors": "source_exclude_vectors",
4322
4351
  "_source_excludes": "source_excludes",
4323
4352
  "_source_includes": "source_includes",
4324
4353
  "from": "from_",
@@ -4373,6 +4402,7 @@ class AsyncElasticsearch(BaseClient):
4373
4402
  preference: t.Optional[str] = None,
4374
4403
  pretty: t.Optional[bool] = None,
4375
4404
  profile: t.Optional[bool] = None,
4405
+ project_routing: t.Optional[str] = None,
4376
4406
  q: t.Optional[str] = None,
4377
4407
  query: t.Optional[t.Mapping[str, t.Any]] = None,
4378
4408
  rank: t.Optional[t.Mapping[str, t.Any]] = None,
@@ -4402,6 +4432,7 @@ class AsyncElasticsearch(BaseClient):
4402
4432
  ]
4403
4433
  ] = None,
4404
4434
  source: t.Optional[t.Union[bool, t.Mapping[str, t.Any]]] = None,
4435
+ source_exclude_vectors: t.Optional[bool] = None,
4405
4436
  source_excludes: t.Optional[t.Union[str, t.Sequence[str]]] = None,
4406
4437
  source_includes: t.Optional[t.Union[str, t.Sequence[str]]] = None,
4407
4438
  stats: t.Optional[t.Sequence[str]] = None,
@@ -4469,8 +4500,8 @@ class AsyncElasticsearch(BaseClient):
4469
4500
  node and the remote clusters are minimized when running cross-cluster search
4470
4501
  (CCS) requests.
4471
4502
  :param collapse: Collapses search results the values of the specified field.
4472
- :param default_operator: The default operator for the query string query: `AND`
4473
- or `OR`. This parameter can be used only when the `q` query string parameter
4503
+ :param default_operator: The default operator for the query string query: `and`
4504
+ or `or`. This parameter can be used only when the `q` query string parameter
4474
4505
  is specified.
4475
4506
  :param df: The field to use as a default when no field prefix is given in the
4476
4507
  query string. This parameter can be used only when the `q` query string parameter
@@ -4555,6 +4586,10 @@ class AsyncElasticsearch(BaseClient):
4555
4586
  :param profile: Set to `true` to return detailed timing information about the
4556
4587
  execution of individual components in a search request. NOTE: This is a debugging
4557
4588
  tool and adds significant overhead to search execution.
4589
+ :param project_routing: Specifies a subset of projects to target for the search
4590
+ using project metadata tags in a subset of Lucene query syntax. Allowed Lucene
4591
+ queries: the _alias tag and a single value (possibly wildcarded). Examples:
4592
+ _alias:my-project _alias:_origin _alias:*pr* Supported in serverless only.
4558
4593
  :param q: A query in the Lucene query string syntax. Query parameter searches
4559
4594
  do not support the full Elasticsearch Query DSL but are handy for testing.
4560
4595
  IMPORTANT: This parameter overrides the query parameter in the request body.
@@ -4596,6 +4631,7 @@ class AsyncElasticsearch(BaseClient):
4596
4631
  fields are returned in the `hits._source` property of the search response.
4597
4632
  If the `stored_fields` property is specified, the `_source` property defaults
4598
4633
  to `false`. Otherwise, it defaults to `true`.
4634
+ :param source_exclude_vectors: Whether vectors should be excluded from _source
4599
4635
  :param source_excludes: A comma-separated list of source fields to exclude from
4600
4636
  the response. You can also use this parameter to exclude fields from the
4601
4637
  subset specified in `_source_includes` query parameter. If the `_source`
@@ -4708,6 +4744,8 @@ class AsyncElasticsearch(BaseClient):
4708
4744
  __query["preference"] = preference
4709
4745
  if pretty is not None:
4710
4746
  __query["pretty"] = pretty
4747
+ if project_routing is not None:
4748
+ __query["project_routing"] = project_routing
4711
4749
  if q is not None:
4712
4750
  __query["q"] = q
4713
4751
  if request_cache is not None:
@@ -4720,6 +4758,8 @@ class AsyncElasticsearch(BaseClient):
4720
4758
  __query["scroll"] = scroll
4721
4759
  if search_type is not None:
4722
4760
  __query["search_type"] = search_type
4761
+ if source_exclude_vectors is not None:
4762
+ __query["_source_exclude_vectors"] = source_exclude_vectors
4723
4763
  if source_excludes is not None:
4724
4764
  __query["_source_excludes"] = source_excludes
4725
4765
  if source_includes is not None:
@@ -4860,6 +4900,7 @@ class AsyncElasticsearch(BaseClient):
4860
4900
  ] = None,
4861
4901
  human: t.Optional[bool] = None,
4862
4902
  pretty: t.Optional[bool] = None,
4903
+ project_routing: t.Optional[str] = None,
4863
4904
  query: t.Optional[t.Mapping[str, t.Any]] = None,
4864
4905
  runtime_mappings: t.Optional[t.Mapping[str, t.Mapping[str, t.Any]]] = None,
4865
4906
  size: t.Optional[int] = None,
@@ -5177,6 +5218,10 @@ class AsyncElasticsearch(BaseClient):
5177
5218
  In the aggs layer, each feature represents a `geotile_grid` cell. If `grid,
5178
5219
  each feature is a polygon of the cells bounding box. If `point`, each feature
5179
5220
  is a Point that is the centroid of the cell.
5221
+ :param project_routing: Specifies a subset of projects to target for the search
5222
+ using project metadata tags in a subset of Lucene query syntax. Allowed Lucene
5223
+ queries: the _alias tag and a single value (possibly wildcarded). Examples:
5224
+ _alias:my-project _alias:_origin _alias:*pr* Supported in serverless only.
5180
5225
  :param query: The query DSL used to filter documents for the search.
5181
5226
  :param runtime_mappings: Defines one or more runtime fields in the search request.
5182
5227
  These fields take precedence over mapped fields with the same name.
@@ -5240,6 +5285,8 @@ class AsyncElasticsearch(BaseClient):
5240
5285
  __query["human"] = human
5241
5286
  if pretty is not None:
5242
5287
  __query["pretty"] = pretty
5288
+ if project_routing is not None:
5289
+ __query["project_routing"] = project_routing
5243
5290
  if not __body:
5244
5291
  if aggs is not None:
5245
5292
  __body["aggs"] = aggs
@@ -5413,6 +5460,7 @@ class AsyncElasticsearch(BaseClient):
5413
5460
  preference: t.Optional[str] = None,
5414
5461
  pretty: t.Optional[bool] = None,
5415
5462
  profile: t.Optional[bool] = None,
5463
+ project_routing: t.Optional[str] = None,
5416
5464
  rest_total_hits_as_int: t.Optional[bool] = None,
5417
5465
  routing: t.Optional[str] = None,
5418
5466
  scroll: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
@@ -5458,6 +5506,10 @@ class AsyncElasticsearch(BaseClient):
5458
5506
  :param preference: The node or shard the operation should be performed on. It
5459
5507
  is random by default.
5460
5508
  :param profile: If `true`, the query execution is profiled.
5509
+ :param project_routing: Specifies a subset of projects to target for the search
5510
+ using project metadata tags in a subset of Lucene query syntax. Allowed Lucene
5511
+ queries: the _alias tag and a single value (possibly wildcarded). Examples:
5512
+ _alias:my-project _alias:_origin _alias:*pr* Supported in serverless only.
5461
5513
  :param rest_total_hits_as_int: If `true`, `hits.total` is rendered as an integer
5462
5514
  in the response. If `false`, it is rendered as an object.
5463
5515
  :param routing: A custom value used to route operations to a specific shard.
@@ -5499,6 +5551,8 @@ class AsyncElasticsearch(BaseClient):
5499
5551
  __query["preference"] = preference
5500
5552
  if pretty is not None:
5501
5553
  __query["pretty"] = pretty
5554
+ if project_routing is not None:
5555
+ __query["project_routing"] = project_routing
5502
5556
  if rest_total_hits_as_int is not None:
5503
5557
  __query["rest_total_hits_as_int"] = rest_total_hits_as_int
5504
5558
  if routing is not None:
@@ -5625,11 +5679,7 @@ class AsyncElasticsearch(BaseClient):
5625
5679
  __body["string"] = string
5626
5680
  if timeout is not None:
5627
5681
  __body["timeout"] = timeout
5628
- if not __body:
5629
- __body = None # type: ignore[assignment]
5630
- __headers = {"accept": "application/json"}
5631
- if __body is not None:
5632
- __headers["content-type"] = "application/json"
5682
+ __headers = {"accept": "application/json", "content-type": "application/json"}
5633
5683
  return await self.perform_request( # type: ignore[return-value]
5634
5684
  "POST",
5635
5685
  __path,
@@ -5679,7 +5729,7 @@ class AsyncElasticsearch(BaseClient):
5679
5729
  term_statistics: t.Optional[bool] = None,
5680
5730
  version: t.Optional[int] = None,
5681
5731
  version_type: t.Optional[
5682
- t.Union[str, t.Literal["external", "external_gte", "force", "internal"]]
5732
+ t.Union[str, t.Literal["external", "external_gte", "internal"]]
5683
5733
  ] = None,
5684
5734
  body: t.Optional[t.Dict[str, t.Any]] = None,
5685
5735
  ) -> ObjectApiResponse[t.Any]:
@@ -6155,8 +6205,8 @@ class AsyncElasticsearch(BaseClient):
6155
6205
  be used only when the `q` query string parameter is specified.
6156
6206
  :param conflicts: The preferred behavior when update by query hits version conflicts:
6157
6207
  `abort` or `proceed`.
6158
- :param default_operator: The default operator for query string query: `AND` or
6159
- `OR`. This parameter can be used only when the `q` query string parameter
6208
+ :param default_operator: The default operator for query string query: `and` or
6209
+ `or`. This parameter can be used only when the `q` query string parameter
6160
6210
  is specified.
6161
6211
  :param df: The field to use as default where no field prefix is given in the
6162
6212
  query string. This parameter can be used only when the `q` query string parameter