elasticsearch 8.16.0__py3-none-any.whl → 8.17.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. elasticsearch/_async/client/__init__.py +82 -46
  2. elasticsearch/_async/client/async_search.py +12 -22
  3. elasticsearch/_async/client/autoscaling.py +39 -4
  4. elasticsearch/_async/client/cat.py +26 -26
  5. elasticsearch/_async/client/ccr.py +85 -35
  6. elasticsearch/_async/client/cluster.py +141 -49
  7. elasticsearch/_async/client/connector.py +25 -25
  8. elasticsearch/_async/client/dangling_indices.py +3 -3
  9. elasticsearch/_async/client/enrich.py +6 -6
  10. elasticsearch/_async/client/eql.py +13 -11
  11. elasticsearch/_async/client/esql.py +3 -2
  12. elasticsearch/_async/client/features.py +27 -5
  13. elasticsearch/_async/client/fleet.py +1 -1
  14. elasticsearch/_async/client/graph.py +9 -3
  15. elasticsearch/_async/client/ilm.py +69 -34
  16. elasticsearch/_async/client/indices.py +307 -105
  17. elasticsearch/_async/client/inference.py +5 -15
  18. elasticsearch/_async/client/ingest.py +28 -23
  19. elasticsearch/_async/client/license.py +38 -22
  20. elasticsearch/_async/client/logstash.py +3 -3
  21. elasticsearch/_async/client/migration.py +3 -3
  22. elasticsearch/_async/client/ml.py +125 -73
  23. elasticsearch/_async/client/monitoring.py +1 -1
  24. elasticsearch/_async/client/nodes.py +34 -20
  25. elasticsearch/_async/client/query_rules.py +17 -16
  26. elasticsearch/_async/client/rollup.py +8 -8
  27. elasticsearch/_async/client/search_application.py +8 -8
  28. elasticsearch/_async/client/searchable_snapshots.py +4 -4
  29. elasticsearch/_async/client/security.py +64 -57
  30. elasticsearch/_async/client/slm.py +9 -9
  31. elasticsearch/_async/client/snapshot.py +12 -12
  32. elasticsearch/_async/client/sql.py +16 -15
  33. elasticsearch/_async/client/ssl.py +1 -1
  34. elasticsearch/_async/client/synonyms.py +17 -14
  35. elasticsearch/_async/client/tasks.py +3 -3
  36. elasticsearch/_async/client/text_structure.py +2 -2
  37. elasticsearch/_async/client/transform.py +11 -11
  38. elasticsearch/_async/client/watcher.py +11 -11
  39. elasticsearch/_async/client/xpack.py +2 -2
  40. elasticsearch/_sync/client/__init__.py +82 -46
  41. elasticsearch/_sync/client/async_search.py +12 -22
  42. elasticsearch/_sync/client/autoscaling.py +39 -4
  43. elasticsearch/_sync/client/cat.py +26 -26
  44. elasticsearch/_sync/client/ccr.py +85 -35
  45. elasticsearch/_sync/client/cluster.py +141 -49
  46. elasticsearch/_sync/client/connector.py +25 -25
  47. elasticsearch/_sync/client/dangling_indices.py +3 -3
  48. elasticsearch/_sync/client/enrich.py +6 -6
  49. elasticsearch/_sync/client/eql.py +13 -11
  50. elasticsearch/_sync/client/esql.py +3 -2
  51. elasticsearch/_sync/client/features.py +27 -5
  52. elasticsearch/_sync/client/fleet.py +1 -1
  53. elasticsearch/_sync/client/graph.py +9 -3
  54. elasticsearch/_sync/client/ilm.py +69 -34
  55. elasticsearch/_sync/client/indices.py +307 -105
  56. elasticsearch/_sync/client/inference.py +5 -15
  57. elasticsearch/_sync/client/ingest.py +28 -23
  58. elasticsearch/_sync/client/license.py +38 -22
  59. elasticsearch/_sync/client/logstash.py +3 -3
  60. elasticsearch/_sync/client/migration.py +3 -3
  61. elasticsearch/_sync/client/ml.py +125 -73
  62. elasticsearch/_sync/client/monitoring.py +1 -1
  63. elasticsearch/_sync/client/nodes.py +34 -20
  64. elasticsearch/_sync/client/query_rules.py +17 -16
  65. elasticsearch/_sync/client/rollup.py +8 -8
  66. elasticsearch/_sync/client/search_application.py +8 -8
  67. elasticsearch/_sync/client/searchable_snapshots.py +4 -4
  68. elasticsearch/_sync/client/security.py +64 -57
  69. elasticsearch/_sync/client/slm.py +9 -9
  70. elasticsearch/_sync/client/snapshot.py +12 -12
  71. elasticsearch/_sync/client/sql.py +16 -15
  72. elasticsearch/_sync/client/ssl.py +1 -1
  73. elasticsearch/_sync/client/synonyms.py +17 -14
  74. elasticsearch/_sync/client/tasks.py +3 -3
  75. elasticsearch/_sync/client/text_structure.py +2 -2
  76. elasticsearch/_sync/client/transform.py +11 -11
  77. elasticsearch/_sync/client/watcher.py +11 -11
  78. elasticsearch/_sync/client/xpack.py +2 -2
  79. elasticsearch/_version.py +1 -1
  80. {elasticsearch-8.16.0.dist-info → elasticsearch-8.17.0.dist-info}/METADATA +6 -4
  81. elasticsearch-8.17.0.dist-info/RECORD +117 -0
  82. {elasticsearch-8.16.0.dist-info → elasticsearch-8.17.0.dist-info}/WHEEL +1 -1
  83. elasticsearch-8.16.0.dist-info/RECORD +0 -117
  84. {elasticsearch-8.16.0.dist-info → elasticsearch-8.17.0.dist-info}/licenses/LICENSE +0 -0
  85. {elasticsearch-8.16.0.dist-info → elasticsearch-8.17.0.dist-info}/licenses/NOTICE +0 -0
@@ -624,12 +624,14 @@ class Elasticsearch(BaseClient):
624
624
  error_trace: t.Optional[bool] = None,
625
625
  filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
626
626
  human: t.Optional[bool] = None,
627
+ list_executed_pipelines: t.Optional[bool] = None,
627
628
  pipeline: t.Optional[str] = None,
628
629
  pretty: t.Optional[bool] = None,
629
630
  refresh: t.Optional[
630
631
  t.Union[bool, str, t.Literal["false", "true", "wait_for"]]
631
632
  ] = None,
632
633
  require_alias: t.Optional[bool] = None,
634
+ require_data_stream: t.Optional[bool] = None,
633
635
  routing: t.Optional[str] = None,
634
636
  source: t.Optional[t.Union[bool, t.Union[str, t.Sequence[str]]]] = None,
635
637
  source_excludes: t.Optional[t.Union[str, t.Sequence[str]]] = None,
@@ -644,11 +646,13 @@ class Elasticsearch(BaseClient):
644
646
  in a single API call. This reduces overhead and can greatly increase indexing
645
647
  speed.
646
648
 
647
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/docs-bulk.html>`_
649
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/docs-bulk.html>`_
648
650
 
649
651
  :param operations:
650
652
  :param index: Name of the data stream, index, or index alias to perform bulk
651
653
  actions on.
654
+ :param list_executed_pipelines: If `true`, the response will include the ingest
655
+ pipelines that were executed for each index or create.
652
656
  :param pipeline: ID of the pipeline to use to preprocess incoming documents.
653
657
  If the index has a default ingest pipeline specified, then setting the value
654
658
  to `_none` disables the default ingest pipeline for this request. If a final
@@ -659,6 +663,8 @@ class Elasticsearch(BaseClient):
659
663
  make this operation visible to search, if `false` do nothing with refreshes.
660
664
  Valid values: `true`, `false`, `wait_for`.
661
665
  :param require_alias: If `true`, the request’s actions must target an index alias.
666
+ :param require_data_stream: If `true`, the request's actions must target a data
667
+ stream (existing or to-be-created).
662
668
  :param routing: Custom value used to route operations to a specific shard.
663
669
  :param source: `true` or `false` to return the `_source` field or not, or a list
664
670
  of fields to return.
@@ -692,6 +698,8 @@ class Elasticsearch(BaseClient):
692
698
  __query["filter_path"] = filter_path
693
699
  if human is not None:
694
700
  __query["human"] = human
701
+ if list_executed_pipelines is not None:
702
+ __query["list_executed_pipelines"] = list_executed_pipelines
695
703
  if pipeline is not None:
696
704
  __query["pipeline"] = pipeline
697
705
  if pretty is not None:
@@ -700,6 +708,8 @@ class Elasticsearch(BaseClient):
700
708
  __query["refresh"] = refresh
701
709
  if require_alias is not None:
702
710
  __query["require_alias"] = require_alias
711
+ if require_data_stream is not None:
712
+ __query["require_data_stream"] = require_data_stream
703
713
  if routing is not None:
704
714
  __query["routing"] = routing
705
715
  if source is not None:
@@ -744,7 +754,7 @@ class Elasticsearch(BaseClient):
744
754
  Clear a scrolling search. Clear the search context and results for a scrolling
745
755
  search.
746
756
 
747
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/clear-scroll-api.html>`_
757
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/clear-scroll-api.html>`_
748
758
 
749
759
  :param scroll_id: Scroll IDs to clear. To clear all scroll IDs, use `_all`.
750
760
  """
@@ -798,7 +808,7 @@ class Elasticsearch(BaseClient):
798
808
  period has elapsed. However, keeping points in time has a cost; close them as
799
809
  soon as they are no longer required for search requests.
800
810
 
801
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/point-in-time-api.html>`_
811
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/point-in-time-api.html>`_
802
812
 
803
813
  :param id: The ID of the point-in-time.
804
814
  """
@@ -870,9 +880,9 @@ class Elasticsearch(BaseClient):
870
880
  body: t.Optional[t.Dict[str, t.Any]] = None,
871
881
  ) -> ObjectApiResponse[t.Any]:
872
882
  """
873
- Returns number of documents matching a query.
883
+ Count search results. Get the number of documents matching a query.
874
884
 
875
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/search-count.html>`_
885
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/search-count.html>`_
876
886
 
877
887
  :param index: Comma-separated list of data streams, indices, and aliases to search.
878
888
  Supports wildcards (`*`). To search all data streams and indices, omit this
@@ -1007,7 +1017,7 @@ class Elasticsearch(BaseClient):
1007
1017
  and makes it searchable. If the target is an index and the document already exists,
1008
1018
  the request updates the document and increments its version.
1009
1019
 
1010
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/docs-index_.html>`_
1020
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/docs-index_.html>`_
1011
1021
 
1012
1022
  :param index: Name of the data stream or index to target. If the target doesn’t
1013
1023
  exist and matches the name or wildcard (`*`) pattern of an index template
@@ -1111,7 +1121,7 @@ class Elasticsearch(BaseClient):
1111
1121
  """
1112
1122
  Delete a document. Removes a JSON document from the specified index.
1113
1123
 
1114
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/docs-delete.html>`_
1124
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/docs-delete.html>`_
1115
1125
 
1116
1126
  :param index: Name of the target index.
1117
1127
  :param id: Unique identifier for the document.
@@ -1233,7 +1243,7 @@ class Elasticsearch(BaseClient):
1233
1243
  """
1234
1244
  Delete documents. Deletes documents that match the specified query.
1235
1245
 
1236
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/docs-delete-by-query.html>`_
1246
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/docs-delete-by-query.html>`_
1237
1247
 
1238
1248
  :param index: Comma-separated list of data streams, indices, and aliases to search.
1239
1249
  Supports wildcards (`*`). To search all data streams or indices, omit this
@@ -1414,7 +1424,7 @@ class Elasticsearch(BaseClient):
1414
1424
  takes effect immediately but rethrotting that slows down the query takes effect
1415
1425
  after completing the current batch to prevent scroll timeouts.
1416
1426
 
1417
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/docs-delete-by-query.html>`_
1427
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/docs-delete-by-query.html>`_
1418
1428
 
1419
1429
  :param task_id: The ID for the task.
1420
1430
  :param requests_per_second: The throttle for this request in sub-requests per
@@ -1460,7 +1470,7 @@ class Elasticsearch(BaseClient):
1460
1470
  """
1461
1471
  Delete a script or search template. Deletes a stored script or search template.
1462
1472
 
1463
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/modules-scripting.html>`_
1473
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/modules-scripting.html>`_
1464
1474
 
1465
1475
  :param id: Identifier for the stored script or search template.
1466
1476
  :param master_timeout: Period to wait for a connection to the master node. If
@@ -1528,7 +1538,7 @@ class Elasticsearch(BaseClient):
1528
1538
  """
1529
1539
  Check a document. Checks if a specified document exists.
1530
1540
 
1531
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/docs-get.html>`_
1541
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/docs-get.html>`_
1532
1542
 
1533
1543
  :param index: Comma-separated list of data streams, indices, and aliases. Supports
1534
1544
  wildcards (`*`).
@@ -1629,7 +1639,7 @@ class Elasticsearch(BaseClient):
1629
1639
  """
1630
1640
  Check for a document source. Checks if a document's `_source` is stored.
1631
1641
 
1632
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/docs-get.html>`_
1642
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/docs-get.html>`_
1633
1643
 
1634
1644
  :param index: Comma-separated list of data streams, indices, and aliases. Supports
1635
1645
  wildcards (`*`).
@@ -1730,7 +1740,7 @@ class Elasticsearch(BaseClient):
1730
1740
  Explain a document match result. Returns information about why a specific document
1731
1741
  matches, or doesn’t match, a query.
1732
1742
 
1733
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/search-explain.html>`_
1743
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/search-explain.html>`_
1734
1744
 
1735
1745
  :param index: Index names used to limit the request. Only a single index name
1736
1746
  can be provided to this parameter.
@@ -1853,7 +1863,7 @@ class Elasticsearch(BaseClient):
1853
1863
  field. For example, a runtime field with a type of keyword is returned the same
1854
1864
  as any other field that belongs to the `keyword` family.
1855
1865
 
1856
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/search-field-caps.html>`_
1866
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/search-field-caps.html>`_
1857
1867
 
1858
1868
  :param index: Comma-separated list of data streams, indices, and aliases used
1859
1869
  to limit the request. Supports wildcards (*). To target all data streams
@@ -1970,7 +1980,7 @@ class Elasticsearch(BaseClient):
1970
1980
  Get a document by its ID. Retrieves the document with the specified ID from an
1971
1981
  index.
1972
1982
 
1973
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/docs-get.html>`_
1983
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/docs-get.html>`_
1974
1984
 
1975
1985
  :param index: Name of the index that contains the document.
1976
1986
  :param id: Unique identifier of the document.
@@ -2059,7 +2069,7 @@ class Elasticsearch(BaseClient):
2059
2069
  """
2060
2070
  Get a script or search template. Retrieves a stored script or search template.
2061
2071
 
2062
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/modules-scripting.html>`_
2072
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/modules-scripting.html>`_
2063
2073
 
2064
2074
  :param id: Identifier for the stored script or search template.
2065
2075
  :param master_timeout: Specify timeout for connection to master
@@ -2101,7 +2111,7 @@ class Elasticsearch(BaseClient):
2101
2111
  """
2102
2112
  Get script contexts. Get a list of supported script contexts and their methods.
2103
2113
 
2104
- `<https://www.elastic.co/guide/en/elasticsearch/painless/8.16/painless-contexts.html>`_
2114
+ `<https://www.elastic.co/guide/en/elasticsearch/painless/8.17/painless-contexts.html>`_
2105
2115
  """
2106
2116
  __path_parts: t.Dict[str, str] = {}
2107
2117
  __path = "/_script_context"
@@ -2136,7 +2146,7 @@ class Elasticsearch(BaseClient):
2136
2146
  """
2137
2147
  Get script languages. Get a list of available script types, languages, and contexts.
2138
2148
 
2139
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/modules-scripting.html>`_
2149
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/modules-scripting.html>`_
2140
2150
  """
2141
2151
  __path_parts: t.Dict[str, str] = {}
2142
2152
  __path = "/_script_language"
@@ -2191,7 +2201,7 @@ class Elasticsearch(BaseClient):
2191
2201
  """
2192
2202
  Get a document's source. Returns the source of a document.
2193
2203
 
2194
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/docs-get.html>`_
2204
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/docs-get.html>`_
2195
2205
 
2196
2206
  :param index: Name of the index that contains the document.
2197
2207
  :param id: Unique identifier of the document.
@@ -2272,9 +2282,28 @@ class Elasticsearch(BaseClient):
2272
2282
  verbose: t.Optional[bool] = None,
2273
2283
  ) -> ObjectApiResponse[t.Any]:
2274
2284
  """
2275
- Returns the health of the cluster.
2276
-
2277
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/health-api.html>`_
2285
+ Get the cluster health. Get a report with the health status of an Elasticsearch
2286
+ cluster. The report contains a list of indicators that compose Elasticsearch
2287
+ functionality. Each indicator has a health status of: green, unknown, yellow
2288
+ or red. The indicator will provide an explanation and metadata describing the
2289
+ reason for its current health status. The cluster’s status is controlled by the
2290
+ worst indicator status. In the event that an indicator’s status is non-green,
2291
+ a list of impacts may be present in the indicator result which detail the functionalities
2292
+ that are negatively affected by the health issue. Each impact carries with it
2293
+ a severity level, an area of the system that is affected, and a simple description
2294
+ of the impact on the system. Some health indicators can determine the root cause
2295
+ of a health problem and prescribe a set of steps that can be performed in order
2296
+ to improve the health of the system. The root cause and remediation steps are
2297
+ encapsulated in a diagnosis. A diagnosis contains a cause detailing a root cause
2298
+ analysis, an action containing a brief description of the steps to take to fix
2299
+ the problem, the list of affected resources (if applicable), and a detailed step-by-step
2300
+ troubleshooting guide to fix the diagnosed problem. NOTE: The health indicators
2301
+ perform root cause analysis of non-green health statuses. This can be computationally
2302
+ expensive when called frequently. When setting up automated polling of the API
2303
+ for health status, set verbose to false to disable the more expensive analysis
2304
+ logic.
2305
+
2306
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/health-api.html>`_
2278
2307
 
2279
2308
  :param feature: A feature of the cluster, as returned by the top-level health
2280
2309
  report API.
@@ -2351,7 +2380,7 @@ class Elasticsearch(BaseClient):
2351
2380
  and makes it searchable. If the target is an index and the document already exists,
2352
2381
  the request updates the document and increments its version.
2353
2382
 
2354
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/docs-index_.html>`_
2383
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/docs-index_.html>`_
2355
2384
 
2356
2385
  :param index: Name of the data stream or index to target.
2357
2386
  :param document:
@@ -2460,7 +2489,7 @@ class Elasticsearch(BaseClient):
2460
2489
  """
2461
2490
  Get cluster info. Returns basic information about the cluster.
2462
2491
 
2463
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/index.html>`_
2492
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/index.html>`_
2464
2493
  """
2465
2494
  __path_parts: t.Dict[str, str] = {}
2466
2495
  __path = "/"
@@ -2525,7 +2554,7 @@ class Elasticsearch(BaseClient):
2525
2554
  The kNN search API supports restricting the search using a filter. The search
2526
2555
  will return the top k documents that also match the filter query.
2527
2556
 
2528
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/search-search.html>`_
2557
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/search-search.html>`_
2529
2558
 
2530
2559
  :param index: A comma-separated list of index names to search; use `_all` or
2531
2560
  to perform the operation on all indices
@@ -2629,7 +2658,7 @@ class Elasticsearch(BaseClient):
2629
2658
  IDs in the request body. To ensure fast responses, this multi get (mget) API
2630
2659
  responds with partial results if one or more shards fail.
2631
2660
 
2632
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/docs-multi-get.html>`_
2661
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/docs-multi-get.html>`_
2633
2662
 
2634
2663
  :param index: Name of the index to retrieve documents from when `ids` are specified,
2635
2664
  or when a document in the `docs` array does not specify an index.
@@ -2756,7 +2785,7 @@ class Elasticsearch(BaseClient):
2756
2785
  Each newline character may be preceded by a carriage return `\\r`. When sending
2757
2786
  requests to this endpoint the `Content-Type` header should be set to `application/x-ndjson`.
2758
2787
 
2759
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/search-multi-search.html>`_
2788
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/search-multi-search.html>`_
2760
2789
 
2761
2790
  :param searches:
2762
2791
  :param index: Comma-separated list of data streams, indices, and index aliases
@@ -2888,7 +2917,7 @@ class Elasticsearch(BaseClient):
2888
2917
  """
2889
2918
  Run multiple templated searches.
2890
2919
 
2891
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/search-multi-search.html>`_
2920
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/search-multi-search.html>`_
2892
2921
 
2893
2922
  :param search_templates:
2894
2923
  :param index: Comma-separated list of data streams, indices, and aliases to search.
@@ -2987,7 +3016,7 @@ class Elasticsearch(BaseClient):
2987
3016
  with all the fetched termvectors. Each element has the structure provided by
2988
3017
  the termvectors API.
2989
3018
 
2990
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/docs-multi-termvectors.html>`_
3019
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/docs-multi-termvectors.html>`_
2991
3020
 
2992
3021
  :param index: Name of the index that contains the documents.
2993
3022
  :param docs: Array of existing or artificial documents.
@@ -3077,6 +3106,7 @@ class Elasticsearch(BaseClient):
3077
3106
  *,
3078
3107
  index: t.Union[str, t.Sequence[str]],
3079
3108
  keep_alive: t.Union[str, t.Literal[-1], t.Literal[0]],
3109
+ allow_partial_search_results: t.Optional[bool] = None,
3080
3110
  error_trace: t.Optional[bool] = None,
3081
3111
  expand_wildcards: t.Optional[
3082
3112
  t.Union[
@@ -3106,11 +3136,15 @@ class Elasticsearch(BaseClient):
3106
3136
  A point in time must be opened explicitly before being used in search requests.
3107
3137
  The `keep_alive` parameter tells Elasticsearch how long it should persist.
3108
3138
 
3109
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/point-in-time-api.html>`_
3139
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/point-in-time-api.html>`_
3110
3140
 
3111
3141
  :param index: A comma-separated list of index names to open point in time; use
3112
3142
  `_all` or empty string to perform the operation on all indices
3113
3143
  :param keep_alive: Extends the time to live of the corresponding point in time.
3144
+ :param allow_partial_search_results: If `false`, creating a point in time request
3145
+ when a shard is missing or unavailable will throw an exception. If `true`,
3146
+ the point in time will contain all the shards that are available at the time
3147
+ of the request.
3114
3148
  :param expand_wildcards: Type of index that wildcard patterns can match. If the
3115
3149
  request can target data streams, this argument determines whether wildcard
3116
3150
  expressions match hidden data streams. Supports comma-separated values, such
@@ -3133,6 +3167,8 @@ class Elasticsearch(BaseClient):
3133
3167
  __body: t.Dict[str, t.Any] = body if body is not None else {}
3134
3168
  if keep_alive is not None:
3135
3169
  __query["keep_alive"] = keep_alive
3170
+ if allow_partial_search_results is not None:
3171
+ __query["allow_partial_search_results"] = allow_partial_search_results
3136
3172
  if error_trace is not None:
3137
3173
  __query["error_trace"] = error_trace
3138
3174
  if expand_wildcards is not None:
@@ -3188,7 +3224,7 @@ class Elasticsearch(BaseClient):
3188
3224
  Create or update a script or search template. Creates or updates a stored script
3189
3225
  or search template.
3190
3226
 
3191
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/modules-scripting.html>`_
3227
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/modules-scripting.html>`_
3192
3228
 
3193
3229
  :param id: Identifier for the stored script or search template. Must be unique
3194
3230
  within the cluster.
@@ -3274,7 +3310,7 @@ class Elasticsearch(BaseClient):
3274
3310
  Evaluate ranked search results. Evaluate the quality of ranked search results
3275
3311
  over a set of typical search queries.
3276
3312
 
3277
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/search-rank-eval.html>`_
3313
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/search-rank-eval.html>`_
3278
3314
 
3279
3315
  :param requests: A set of typical search requests, together with their provided
3280
3316
  ratings.
@@ -3370,7 +3406,7 @@ class Elasticsearch(BaseClient):
3370
3406
  can be any existing index, alias, or data stream. The destination must differ
3371
3407
  from the source. For example, you cannot reindex a data stream into itself.
3372
3408
 
3373
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/docs-reindex.html>`_
3409
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/docs-reindex.html>`_
3374
3410
 
3375
3411
  :param dest: The destination you are copying to.
3376
3412
  :param source: The source you are copying from.
@@ -3467,7 +3503,7 @@ class Elasticsearch(BaseClient):
3467
3503
  Throttle a reindex operation. Change the number of requests per second for a
3468
3504
  particular reindex operation.
3469
3505
 
3470
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/docs-reindex.html>`_
3506
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/docs-reindex.html>`_
3471
3507
 
3472
3508
  :param task_id: Identifier for the task.
3473
3509
  :param requests_per_second: The throttle for this request in sub-requests per
@@ -3518,7 +3554,7 @@ class Elasticsearch(BaseClient):
3518
3554
  """
3519
3555
  Render a search template. Render a search template as a search request body.
3520
3556
 
3521
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/render-search-template-api.html>`_
3557
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/render-search-template-api.html>`_
3522
3558
 
3523
3559
  :param id: ID of the search template to render. If no `source` is specified,
3524
3560
  this or the `id` request body parameter is required.
@@ -3587,7 +3623,7 @@ class Elasticsearch(BaseClient):
3587
3623
  """
3588
3624
  Run a script. Runs a script and returns a result.
3589
3625
 
3590
- `<https://www.elastic.co/guide/en/elasticsearch/painless/8.16/painless-execute-api.html>`_
3626
+ `<https://www.elastic.co/guide/en/elasticsearch/painless/8.17/painless-execute-api.html>`_
3591
3627
 
3592
3628
  :param context: The context that the script should run in.
3593
3629
  :param context_setup: Additional parameters for the `context`.
@@ -3660,7 +3696,7 @@ class Elasticsearch(BaseClient):
3660
3696
  of the index at the time of the initial search request. Subsequent indexing or
3661
3697
  document changes only affect later search and scroll requests.
3662
3698
 
3663
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/search-request-body.html#request-body-search-scroll>`_
3699
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/search-request-body.html#request-body-search-scroll>`_
3664
3700
 
3665
3701
  :param scroll_id: Scroll ID of the search.
3666
3702
  :param rest_total_hits_as_int: If true, the API response’s hit.total property
@@ -3852,7 +3888,7 @@ class Elasticsearch(BaseClient):
3852
3888
  can provide search queries using the `q` query string parameter or the request
3853
3889
  body. If both are specified, only the query parameter is used.
3854
3890
 
3855
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/search-search.html>`_
3891
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/search-search.html>`_
3856
3892
 
3857
3893
  :param index: Comma-separated list of data streams, indices, and aliases to search.
3858
3894
  Supports wildcards (`*`). To search all data streams and indices, omit this
@@ -4282,7 +4318,7 @@ class Elasticsearch(BaseClient):
4282
4318
  """
4283
4319
  Search a vector tile. Search a vector tile for geospatial values.
4284
4320
 
4285
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/search-vector-tile-api.html>`_
4321
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/search-vector-tile-api.html>`_
4286
4322
 
4287
4323
  :param index: Comma-separated list of data streams, indices, or aliases to search
4288
4324
  :param field: Field containing geospatial data to return
@@ -4439,7 +4475,7 @@ class Elasticsearch(BaseClient):
4439
4475
  optimizations with routing and shard preferences. When filtered aliases are used,
4440
4476
  the filter is returned as part of the indices section.
4441
4477
 
4442
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/search-shards.html>`_
4478
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/search-shards.html>`_
4443
4479
 
4444
4480
  :param index: Returns the indices and shards that a search request would be executed
4445
4481
  against.
@@ -4540,7 +4576,7 @@ class Elasticsearch(BaseClient):
4540
4576
  """
4541
4577
  Run a search with a search template.
4542
4578
 
4543
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/search-template.html>`_
4579
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/search-template.html>`_
4544
4580
 
4545
4581
  :param index: Comma-separated list of data streams, indices, and aliases to search.
4546
4582
  Supports wildcards (*).
@@ -4680,7 +4716,7 @@ class Elasticsearch(BaseClient):
4680
4716
  are actually deleted. Until that happens, the terms enum API will return terms
4681
4717
  from these documents.
4682
4718
 
4683
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/search-terms-enum.html>`_
4719
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/search-terms-enum.html>`_
4684
4720
 
4685
4721
  :param index: Comma-separated list of data streams, indices, and index aliases
4686
4722
  to search. Wildcard (*) expressions are supported.
@@ -4779,7 +4815,7 @@ class Elasticsearch(BaseClient):
4779
4815
  Get term vector information. Get information and statistics about terms in the
4780
4816
  fields of a particular document.
4781
4817
 
4782
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/docs-termvectors.html>`_
4818
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/docs-termvectors.html>`_
4783
4819
 
4784
4820
  :param index: Name of the index that contains the document.
4785
4821
  :param id: Unique identifier of the document.
@@ -4922,7 +4958,7 @@ class Elasticsearch(BaseClient):
4922
4958
  Update a document. Updates a document by running a script or passing a partial
4923
4959
  document.
4924
4960
 
4925
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/docs-update.html>`_
4961
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/docs-update.html>`_
4926
4962
 
4927
4963
  :param index: The name of the index
4928
4964
  :param id: Document ID
@@ -5088,7 +5124,7 @@ class Elasticsearch(BaseClient):
5088
5124
  is specified, performs an update on every document in the data stream or index
5089
5125
  without modifying the source, which is useful for picking up mapping changes.
5090
5126
 
5091
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/docs-update-by-query.html>`_
5127
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/docs-update-by-query.html>`_
5092
5128
 
5093
5129
  :param index: Comma-separated list of data streams, indices, and aliases to search.
5094
5130
  Supports wildcards (`*`). To search all data streams or indices, omit this
@@ -5287,7 +5323,7 @@ class Elasticsearch(BaseClient):
5287
5323
  takes effect immediately but rethrotting that slows down the query takes effect
5288
5324
  after completing the current batch to prevent scroll timeouts.
5289
5325
 
5290
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/docs-update-by-query.html>`_
5326
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/docs-update-by-query.html>`_
5291
5327
 
5292
5328
  :param task_id: The ID for the task.
5293
5329
  :param requests_per_second: The throttle for this request in sub-requests per
@@ -42,7 +42,7 @@ class AsyncSearchClient(NamespacedClient):
42
42
  the authenticated user that submitted the original search request; users that
43
43
  have the `cancel_task` cluster privilege.
44
44
 
45
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/async-search.html>`_
45
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html>`_
46
46
 
47
47
  :param id: A unique identifier for the async search.
48
48
  """
@@ -90,7 +90,7 @@ class AsyncSearchClient(NamespacedClient):
90
90
  the results of a specific async search is restricted to the user or API key that
91
91
  submitted it.
92
92
 
93
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/async-search.html>`_
93
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html>`_
94
94
 
95
95
  :param id: A unique identifier for the async search.
96
96
  :param keep_alive: Specifies how long the async search should be available in
@@ -145,6 +145,7 @@ class AsyncSearchClient(NamespacedClient):
145
145
  error_trace: t.Optional[bool] = None,
146
146
  filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
147
147
  human: t.Optional[bool] = None,
148
+ keep_alive: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
148
149
  pretty: t.Optional[bool] = None,
149
150
  ) -> ObjectApiResponse[t.Any]:
150
151
  """
@@ -153,9 +154,12 @@ class AsyncSearchClient(NamespacedClient):
153
154
  security features are enabled, use of this API is restricted to the `monitoring_user`
154
155
  role.
155
156
 
156
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/async-search.html>`_
157
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html>`_
157
158
 
158
159
  :param id: A unique identifier for the async search.
160
+ :param keep_alive: Specifies how long the async search needs to be available.
161
+ Ongoing async searches and any saved search results are deleted after this
162
+ period.
159
163
  """
160
164
  if id in SKIP_IN_PATH:
161
165
  raise ValueError("Empty value passed for parameter 'id'")
@@ -168,6 +172,8 @@ class AsyncSearchClient(NamespacedClient):
168
172
  __query["filter_path"] = filter_path
169
173
  if human is not None:
170
174
  __query["human"] = human
175
+ if keep_alive is not None:
176
+ __query["keep_alive"] = keep_alive
171
177
  if pretty is not None:
172
178
  __query["pretty"] = pretty
173
179
  __headers = {"accept": "application/json"}
@@ -258,7 +264,6 @@ class AsyncSearchClient(NamespacedClient):
258
264
  ignore_throttled: t.Optional[bool] = None,
259
265
  ignore_unavailable: t.Optional[bool] = None,
260
266
  indices_boost: t.Optional[t.Sequence[t.Mapping[str, float]]] = None,
261
- keep_alive: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
262
267
  keep_on_completion: t.Optional[bool] = None,
263
268
  knn: t.Optional[
264
269
  t.Union[t.Mapping[str, t.Any], t.Sequence[t.Mapping[str, t.Any]]]
@@ -269,7 +274,6 @@ class AsyncSearchClient(NamespacedClient):
269
274
  min_score: t.Optional[float] = None,
270
275
  pit: t.Optional[t.Mapping[str, t.Any]] = None,
271
276
  post_filter: t.Optional[t.Mapping[str, t.Any]] = None,
272
- pre_filter_shard_size: t.Optional[int] = None,
273
277
  preference: t.Optional[str] = None,
274
278
  pretty: t.Optional[bool] = None,
275
279
  profile: t.Optional[bool] = None,
@@ -283,7 +287,6 @@ class AsyncSearchClient(NamespacedClient):
283
287
  routing: t.Optional[str] = None,
284
288
  runtime_mappings: t.Optional[t.Mapping[str, t.Mapping[str, t.Any]]] = None,
285
289
  script_fields: t.Optional[t.Mapping[str, t.Mapping[str, t.Any]]] = None,
286
- scroll: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
287
290
  search_after: t.Optional[
288
291
  t.Sequence[t.Union[None, bool, float, int, str, t.Any]]
289
292
  ] = None,
@@ -333,7 +336,7 @@ class AsyncSearchClient(NamespacedClient):
333
336
  can be set by changing the `search.max_async_search_response_size` cluster level
334
337
  setting.
335
338
 
336
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/async-search.html>`_
339
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html>`_
337
340
 
338
341
  :param index: A comma-separated list of index names to search; use `_all` or
339
342
  empty string to perform the operation on all indices
@@ -376,9 +379,6 @@ class AsyncSearchClient(NamespacedClient):
376
379
  :param ignore_unavailable: Whether specified concrete indices should be ignored
377
380
  when unavailable (missing or closed)
378
381
  :param indices_boost: Boosts the _score of documents from specified indices.
379
- :param keep_alive: Specifies how long the async search needs to be available.
380
- Ongoing async searches and any saved search results are deleted after this
381
- period.
382
382
  :param keep_on_completion: If `true`, results are stored for later retrieval
383
383
  when the search completes within the `wait_for_completion_timeout`.
384
384
  :param knn: Defines the approximate kNN search to run.
@@ -394,10 +394,6 @@ class AsyncSearchClient(NamespacedClient):
394
394
  :param pit: Limits the search to a point in time (PIT). If you provide a PIT,
395
395
  you cannot specify an <index> in the request path.
396
396
  :param post_filter:
397
- :param pre_filter_shard_size: The default value cannot be changed, which enforces
398
- the execution of a pre-filter roundtrip to retrieve statistics from each
399
- shard so that the ones that surely don’t hold any document matching the query
400
- get skipped.
401
397
  :param preference: Specify the node or shard the operation should be performed
402
398
  on (default: random)
403
399
  :param profile:
@@ -406,13 +402,13 @@ class AsyncSearchClient(NamespacedClient):
406
402
  :param request_cache: Specify if request cache should be used for this request
407
403
  or not, defaults to true
408
404
  :param rescore:
409
- :param rest_total_hits_as_int:
405
+ :param rest_total_hits_as_int: Indicates whether hits.total should be rendered
406
+ as an integer or an object in the rest search response
410
407
  :param routing: A comma-separated list of specific routing values
411
408
  :param runtime_mappings: Defines one or more runtime fields in the search request.
412
409
  These fields take precedence over mapped fields with the same name.
413
410
  :param script_fields: Retrieve a script evaluation (based on different fields)
414
411
  for each hit.
415
- :param scroll:
416
412
  :param search_after:
417
413
  :param search_type: Search operation type
418
414
  :param seq_no_primary_term: If true, returns sequence number and primary term
@@ -509,8 +505,6 @@ class AsyncSearchClient(NamespacedClient):
509
505
  __query["ignore_throttled"] = ignore_throttled
510
506
  if ignore_unavailable is not None:
511
507
  __query["ignore_unavailable"] = ignore_unavailable
512
- if keep_alive is not None:
513
- __query["keep_alive"] = keep_alive
514
508
  if keep_on_completion is not None:
515
509
  __query["keep_on_completion"] = keep_on_completion
516
510
  if lenient is not None:
@@ -519,8 +513,6 @@ class AsyncSearchClient(NamespacedClient):
519
513
  __query["max_concurrent_shard_requests"] = max_concurrent_shard_requests
520
514
  if min_compatible_shard_node is not None:
521
515
  __query["min_compatible_shard_node"] = min_compatible_shard_node
522
- if pre_filter_shard_size is not None:
523
- __query["pre_filter_shard_size"] = pre_filter_shard_size
524
516
  if preference is not None:
525
517
  __query["preference"] = preference
526
518
  if pretty is not None:
@@ -533,8 +525,6 @@ class AsyncSearchClient(NamespacedClient):
533
525
  __query["rest_total_hits_as_int"] = rest_total_hits_as_int
534
526
  if routing is not None:
535
527
  __query["routing"] = routing
536
- if scroll is not None:
537
- __query["scroll"] = scroll
538
528
  if search_type is not None:
539
529
  __query["search_type"] = search_type
540
530
  if source_excludes is not None: