elasticsearch 8.16.0__py3-none-any.whl → 8.17.1__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 (90) hide show
  1. elasticsearch/_async/client/__init__.py +234 -96
  2. elasticsearch/_async/client/async_search.py +12 -22
  3. elasticsearch/_async/client/autoscaling.py +39 -4
  4. elasticsearch/_async/client/cat.py +90 -221
  5. elasticsearch/_async/client/ccr.py +85 -35
  6. elasticsearch/_async/client/cluster.py +160 -68
  7. elasticsearch/_async/client/connector.py +362 -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 +74 -39
  16. elasticsearch/_async/client/indices.py +633 -152
  17. elasticsearch/_async/client/inference.py +99 -16
  18. elasticsearch/_async/client/ingest.py +201 -23
  19. elasticsearch/_async/client/license.py +38 -22
  20. elasticsearch/_async/client/logstash.py +12 -9
  21. elasticsearch/_async/client/migration.py +17 -8
  22. elasticsearch/_async/client/ml.py +137 -79
  23. elasticsearch/_async/client/monitoring.py +3 -2
  24. elasticsearch/_async/client/nodes.py +37 -23
  25. elasticsearch/_async/client/query_rules.py +47 -25
  26. elasticsearch/_async/client/rollup.py +96 -21
  27. elasticsearch/_async/client/search_application.py +138 -9
  28. elasticsearch/_async/client/searchable_snapshots.py +33 -24
  29. elasticsearch/_async/client/security.py +751 -123
  30. elasticsearch/_async/client/shutdown.py +38 -15
  31. elasticsearch/_async/client/simulate.py +151 -0
  32. elasticsearch/_async/client/slm.py +147 -28
  33. elasticsearch/_async/client/snapshot.py +309 -25
  34. elasticsearch/_async/client/sql.py +79 -58
  35. elasticsearch/_async/client/ssl.py +1 -1
  36. elasticsearch/_async/client/synonyms.py +52 -29
  37. elasticsearch/_async/client/tasks.py +71 -31
  38. elasticsearch/_async/client/text_structure.py +468 -48
  39. elasticsearch/_async/client/transform.py +21 -14
  40. elasticsearch/_async/client/watcher.py +226 -60
  41. elasticsearch/_async/client/xpack.py +13 -8
  42. elasticsearch/_sync/client/__init__.py +234 -96
  43. elasticsearch/_sync/client/async_search.py +12 -22
  44. elasticsearch/_sync/client/autoscaling.py +39 -4
  45. elasticsearch/_sync/client/cat.py +90 -221
  46. elasticsearch/_sync/client/ccr.py +85 -35
  47. elasticsearch/_sync/client/cluster.py +160 -68
  48. elasticsearch/_sync/client/connector.py +362 -25
  49. elasticsearch/_sync/client/dangling_indices.py +3 -3
  50. elasticsearch/_sync/client/enrich.py +6 -6
  51. elasticsearch/_sync/client/eql.py +13 -11
  52. elasticsearch/_sync/client/esql.py +3 -2
  53. elasticsearch/_sync/client/features.py +27 -5
  54. elasticsearch/_sync/client/fleet.py +1 -1
  55. elasticsearch/_sync/client/graph.py +9 -3
  56. elasticsearch/_sync/client/ilm.py +74 -39
  57. elasticsearch/_sync/client/indices.py +633 -152
  58. elasticsearch/_sync/client/inference.py +99 -16
  59. elasticsearch/_sync/client/ingest.py +201 -23
  60. elasticsearch/_sync/client/license.py +38 -22
  61. elasticsearch/_sync/client/logstash.py +12 -9
  62. elasticsearch/_sync/client/migration.py +17 -8
  63. elasticsearch/_sync/client/ml.py +137 -79
  64. elasticsearch/_sync/client/monitoring.py +3 -2
  65. elasticsearch/_sync/client/nodes.py +37 -23
  66. elasticsearch/_sync/client/query_rules.py +47 -25
  67. elasticsearch/_sync/client/rollup.py +96 -21
  68. elasticsearch/_sync/client/search_application.py +138 -9
  69. elasticsearch/_sync/client/searchable_snapshots.py +33 -24
  70. elasticsearch/_sync/client/security.py +751 -123
  71. elasticsearch/_sync/client/shutdown.py +38 -15
  72. elasticsearch/_sync/client/simulate.py +151 -0
  73. elasticsearch/_sync/client/slm.py +147 -28
  74. elasticsearch/_sync/client/snapshot.py +309 -25
  75. elasticsearch/_sync/client/sql.py +79 -58
  76. elasticsearch/_sync/client/ssl.py +1 -1
  77. elasticsearch/_sync/client/synonyms.py +52 -29
  78. elasticsearch/_sync/client/tasks.py +71 -31
  79. elasticsearch/_sync/client/text_structure.py +468 -48
  80. elasticsearch/_sync/client/transform.py +21 -14
  81. elasticsearch/_sync/client/watcher.py +226 -60
  82. elasticsearch/_sync/client/xpack.py +13 -8
  83. elasticsearch/_version.py +1 -1
  84. elasticsearch/client.py +2 -0
  85. {elasticsearch-8.16.0.dist-info → elasticsearch-8.17.1.dist-info}/METADATA +6 -4
  86. elasticsearch-8.17.1.dist-info/RECORD +119 -0
  87. {elasticsearch-8.16.0.dist-info → elasticsearch-8.17.1.dist-info}/WHEEL +1 -1
  88. elasticsearch-8.16.0.dist-info/RECORD +0 -117
  89. {elasticsearch-8.16.0.dist-info → elasticsearch-8.17.1.dist-info}/licenses/LICENSE +0 -0
  90. {elasticsearch-8.16.0.dist-info → elasticsearch-8.17.1.dist-info}/licenses/NOTICE +0 -0
@@ -70,6 +70,7 @@ from .search_application import SearchApplicationClient
70
70
  from .searchable_snapshots import SearchableSnapshotsClient
71
71
  from .security import SecurityClient
72
72
  from .shutdown import ShutdownClient
73
+ from .simulate import SimulateClient
73
74
  from .slm import SlmClient
74
75
  from .snapshot import SnapshotClient
75
76
  from .sql import SqlClient
@@ -465,6 +466,7 @@ class AsyncElasticsearch(BaseClient):
465
466
  self.searchable_snapshots = SearchableSnapshotsClient(self)
466
467
  self.security = SecurityClient(self)
467
468
  self.slm = SlmClient(self)
469
+ self.simulate = SimulateClient(self)
468
470
  self.shutdown = ShutdownClient(self)
469
471
  self.sql = SqlClient(self)
470
472
  self.ssl = SslClient(self)
@@ -626,12 +628,14 @@ class AsyncElasticsearch(BaseClient):
626
628
  error_trace: t.Optional[bool] = None,
627
629
  filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
628
630
  human: t.Optional[bool] = None,
631
+ list_executed_pipelines: t.Optional[bool] = None,
629
632
  pipeline: t.Optional[str] = None,
630
633
  pretty: t.Optional[bool] = None,
631
634
  refresh: t.Optional[
632
635
  t.Union[bool, str, t.Literal["false", "true", "wait_for"]]
633
636
  ] = None,
634
637
  require_alias: t.Optional[bool] = None,
638
+ require_data_stream: t.Optional[bool] = None,
635
639
  routing: t.Optional[str] = None,
636
640
  source: t.Optional[t.Union[bool, t.Union[str, t.Sequence[str]]]] = None,
637
641
  source_excludes: t.Optional[t.Union[str, t.Sequence[str]]] = None,
@@ -642,37 +646,125 @@ class AsyncElasticsearch(BaseClient):
642
646
  ] = None,
643
647
  ) -> ObjectApiResponse[t.Any]:
644
648
  """
645
- Bulk index or delete documents. Performs multiple indexing or delete operations
646
- in a single API call. This reduces overhead and can greatly increase indexing
647
- speed.
648
-
649
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/docs-bulk.html>`_
649
+ Bulk index or delete documents. Perform multiple `index`, `create`, `delete`,
650
+ and `update` actions in a single request. This reduces overhead and can greatly
651
+ increase indexing speed. If the Elasticsearch security features are enabled,
652
+ you must have the following index privileges for the target data stream, index,
653
+ or index alias: * To use the `create` action, you must have the `create_doc`,
654
+ `create`, `index`, or `write` index privilege. Data streams support only the
655
+ `create` action. * To use the `index` action, you must have the `create`, `index`,
656
+ or `write` index privilege. * To use the `delete` action, you must have the `delete`
657
+ or `write` index privilege. * To use the `update` action, you must have the `index`
658
+ or `write` index privilege. * To automatically create a data stream or index
659
+ with a bulk API request, you must have the `auto_configure`, `create_index`,
660
+ or `manage` index privilege. * To make the result of a bulk operation visible
661
+ to search using the `refresh` parameter, you must have the `maintenance` or `manage`
662
+ index privilege. Automatic data stream creation requires a matching index template
663
+ with data stream enabled. The actions are specified in the request body using
664
+ a newline delimited JSON (NDJSON) structure: ``` action_and_meta_data\\n optional_source\\n
665
+ action_and_meta_data\\n optional_source\\n .... action_and_meta_data\\n optional_source\\n
666
+ ``` The `index` and `create` actions expect a source on the next line and have
667
+ the same semantics as the `op_type` parameter in the standard index API. A `create`
668
+ action fails if a document with the same ID already exists in the target An `index`
669
+ action adds or replaces a document as necessary. NOTE: Data streams support only
670
+ the `create` action. To update or delete a document in a data stream, you must
671
+ target the backing index containing the document. An `update` action expects
672
+ that the partial doc, upsert, and script and its options are specified on the
673
+ next line. A `delete` action does not expect a source on the next line and has
674
+ the same semantics as the standard delete API. NOTE: The final line of data must
675
+ end with a newline character (`\\n`). Each newline character may be preceded
676
+ by a carriage return (`\\r`). When sending NDJSON data to the `_bulk` endpoint,
677
+ use a `Content-Type` header of `application/json` or `application/x-ndjson`.
678
+ Because this format uses literal newline characters (`\\n`) as delimiters, make
679
+ sure that the JSON actions and sources are not pretty printed. If you provide
680
+ a target in the request path, it is used for any actions that don't explicitly
681
+ specify an `_index` argument. A note on the format: the idea here is to make
682
+ processing as fast as possible. As some of the actions are redirected to other
683
+ shards on other nodes, only `action_meta_data` is parsed on the receiving node
684
+ side. Client libraries using this protocol should try and strive to do something
685
+ similar on the client side, and reduce buffering as much as possible. There is
686
+ no "correct" number of actions to perform in a single bulk request. Experiment
687
+ with different settings to find the optimal size for your particular workload.
688
+ Note that Elasticsearch limits the maximum size of a HTTP request to 100mb by
689
+ default so clients must ensure that no request exceeds this size. It is not possible
690
+ to index a single document that exceeds the size limit, so you must pre-process
691
+ any such documents into smaller pieces before sending them to Elasticsearch.
692
+ For instance, split documents into pages or chapters before indexing them, or
693
+ store raw binary data in a system outside Elasticsearch and replace the raw data
694
+ with a link to the external system in the documents that you send to Elasticsearch.
695
+ **Client suppport for bulk requests** Some of the officially supported clients
696
+ provide helpers to assist with bulk requests and reindexing: * Go: Check out
697
+ `esutil.BulkIndexer` * Perl: Check out `Search::Elasticsearch::Client::5_0::Bulk`
698
+ and `Search::Elasticsearch::Client::5_0::Scroll` * Python: Check out `elasticsearch.helpers.*`
699
+ * JavaScript: Check out `client.helpers.*` * .NET: Check out `BulkAllObservable`
700
+ * PHP: Check out bulk indexing. **Submitting bulk requests with cURL** If you're
701
+ providing text file input to `curl`, you must use the `--data-binary` flag instead
702
+ of plain `-d`. The latter doesn't preserve newlines. For example: ``` $ cat requests
703
+ { "index" : { "_index" : "test", "_id" : "1" } } { "field1" : "value1" } $ curl
704
+ -s -H "Content-Type: application/x-ndjson" -XPOST localhost:9200/_bulk --data-binary
705
+ "@requests"; echo {"took":7, "errors": false, "items":[{"index":{"_index":"test","_id":"1","_version":1,"result":"created","forced_refresh":false}}]}
706
+ ``` **Optimistic concurrency control** Each `index` and `delete` action within
707
+ a bulk API call may include the `if_seq_no` and `if_primary_term` parameters
708
+ in their respective action and meta data lines. The `if_seq_no` and `if_primary_term`
709
+ parameters control how operations are run, based on the last modification to
710
+ existing documents. See Optimistic concurrency control for more details. **Versioning**
711
+ Each bulk item can include the version value using the `version` field. It automatically
712
+ follows the behavior of the index or delete operation based on the `_version`
713
+ mapping. It also support the `version_type`. **Routing** Each bulk item can include
714
+ the routing value using the `routing` field. It automatically follows the behavior
715
+ of the index or delete operation based on the `_routing` mapping. NOTE: Data
716
+ streams do not support custom routing unless they were created with the `allow_custom_routing`
717
+ setting enabled in the template. **Wait for active shards** When making bulk
718
+ calls, you can set the `wait_for_active_shards` parameter to require a minimum
719
+ number of shard copies to be active before starting to process the bulk request.
720
+ **Refresh** Control when the changes made by this request are visible to search.
721
+ NOTE: Only the shards that receive the bulk request will be affected by refresh.
722
+ Imagine a `_bulk?refresh=wait_for` request with three documents in it that happen
723
+ to be routed to different shards in an index with five shards. The request will
724
+ only wait for those three shards to refresh. The other two shards that make up
725
+ the index do not participate in the `_bulk` request at all.
726
+
727
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/docs-bulk.html>`_
650
728
 
651
729
  :param operations:
652
- :param index: Name of the data stream, index, or index alias to perform bulk
730
+ :param index: The name of the data stream, index, or index alias to perform bulk
653
731
  actions on.
654
- :param pipeline: ID of the pipeline to use to preprocess incoming documents.
655
- If the index has a default ingest pipeline specified, then setting the value
656
- to `_none` disables the default ingest pipeline for this request. If a final
657
- pipeline is configured it will always run, regardless of the value of this
732
+ :param list_executed_pipelines: If `true`, the response will include the ingest
733
+ pipelines that were run for each index or create.
734
+ :param pipeline: The pipeline identifier to use to preprocess incoming documents.
735
+ If the index has a default ingest pipeline specified, setting the value to
736
+ `_none` turns off the default ingest pipeline for this request. If a final
737
+ pipeline is configured, it will always run regardless of the value of this
658
738
  parameter.
659
739
  :param refresh: If `true`, Elasticsearch refreshes the affected shards to make
660
- this operation visible to search, if `wait_for` then wait for a refresh to
661
- make this operation visible to search, if `false` do nothing with refreshes.
740
+ this operation visible to search. If `wait_for`, wait for a refresh to make
741
+ this operation visible to search. If `false`, do nothing with refreshes.
662
742
  Valid values: `true`, `false`, `wait_for`.
663
- :param require_alias: If `true`, the requests actions must target an index alias.
664
- :param routing: Custom value used to route operations to a specific shard.
665
- :param source: `true` or `false` to return the `_source` field or not, or a list
666
- of fields to return.
743
+ :param require_alias: If `true`, the request's actions must target an index alias.
744
+ :param require_data_stream: If `true`, the request's actions must target a data
745
+ stream (existing or to be created).
746
+ :param routing: A custom value that is used to route operations to a specific
747
+ shard.
748
+ :param source: Indicates whether to return the `_source` field (`true` or `false`)
749
+ or contains a list of fields to return.
667
750
  :param source_excludes: A comma-separated list of source fields to exclude from
668
- the response.
751
+ the response. You can also use this parameter to exclude fields from the
752
+ subset specified in `_source_includes` query parameter. If the `_source`
753
+ parameter is `false`, this parameter is ignored.
669
754
  :param source_includes: A comma-separated list of source fields to include in
670
- the response.
671
- :param timeout: Period each action waits for the following operations: automatic
672
- index creation, dynamic mapping updates, waiting for active shards.
755
+ the response. If this parameter is specified, only these source fields are
756
+ returned. You can exclude fields from this subset using the `_source_excludes`
757
+ query parameter. If the `_source` parameter is `false`, this parameter is
758
+ ignored.
759
+ :param timeout: The period each action waits for the following operations: automatic
760
+ index creation, dynamic mapping updates, and waiting for active shards. The
761
+ default is `1m` (one minute), which guarantees Elasticsearch waits for at
762
+ least the timeout before failing. The actual wait time could be longer, particularly
763
+ when multiple waits occur.
673
764
  :param wait_for_active_shards: The number of shard copies that must be active
674
- before proceeding with the operation. Set to all or any positive integer
675
- up to the total number of shards in the index (`number_of_replicas+1`).
765
+ before proceeding with the operation. Set to `all` or any positive integer
766
+ up to the total number of shards in the index (`number_of_replicas+1`). The
767
+ default is `1`, which waits for each primary shard to be active.
676
768
  """
677
769
  if operations is None and body is None:
678
770
  raise ValueError(
@@ -694,6 +786,8 @@ class AsyncElasticsearch(BaseClient):
694
786
  __query["filter_path"] = filter_path
695
787
  if human is not None:
696
788
  __query["human"] = human
789
+ if list_executed_pipelines is not None:
790
+ __query["list_executed_pipelines"] = list_executed_pipelines
697
791
  if pipeline is not None:
698
792
  __query["pipeline"] = pipeline
699
793
  if pretty is not None:
@@ -702,6 +796,8 @@ class AsyncElasticsearch(BaseClient):
702
796
  __query["refresh"] = refresh
703
797
  if require_alias is not None:
704
798
  __query["require_alias"] = require_alias
799
+ if require_data_stream is not None:
800
+ __query["require_data_stream"] = require_data_stream
705
801
  if routing is not None:
706
802
  __query["routing"] = routing
707
803
  if source is not None:
@@ -746,9 +842,9 @@ class AsyncElasticsearch(BaseClient):
746
842
  Clear a scrolling search. Clear the search context and results for a scrolling
747
843
  search.
748
844
 
749
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/clear-scroll-api.html>`_
845
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/clear-scroll-api.html>`_
750
846
 
751
- :param scroll_id: Scroll IDs to clear. To clear all scroll IDs, use `_all`.
847
+ :param scroll_id: The scroll IDs to clear. To clear all scroll IDs, use `_all`.
752
848
  """
753
849
  __path_parts: t.Dict[str, str] = {}
754
850
  __path = "/_search/scroll"
@@ -800,7 +896,7 @@ class AsyncElasticsearch(BaseClient):
800
896
  period has elapsed. However, keeping points in time has a cost; close them as
801
897
  soon as they are no longer required for search requests.
802
898
 
803
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/point-in-time-api.html>`_
899
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/point-in-time-api.html>`_
804
900
 
805
901
  :param id: The ID of the point-in-time.
806
902
  """
@@ -872,46 +968,62 @@ class AsyncElasticsearch(BaseClient):
872
968
  body: t.Optional[t.Dict[str, t.Any]] = None,
873
969
  ) -> ObjectApiResponse[t.Any]:
874
970
  """
875
- Returns number of documents matching a query.
876
-
877
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/search-count.html>`_
878
-
879
- :param index: Comma-separated list of data streams, indices, and aliases to search.
880
- Supports wildcards (`*`). To search all data streams and indices, omit this
881
- parameter or use `*` or `_all`.
971
+ Count search results. Get the number of documents matching a query. The query
972
+ can either be provided using a simple query string as a parameter or using the
973
+ Query DSL defined within the request body. The latter must be nested in a `query`
974
+ key, which is the same as the search API. The count API supports multi-target
975
+ syntax. You can run a single count API search across multiple data streams and
976
+ indices. The operation is broadcast across all shards. For each shard ID group,
977
+ a replica is chosen and the search is run against it. This means that replicas
978
+ increase the scalability of the count.
979
+
980
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/search-count.html>`_
981
+
982
+ :param index: A comma-separated list of data streams, indices, and aliases to
983
+ search. It supports wildcards (`*`). To search all data streams and indices,
984
+ omit this parameter or use `*` or `_all`.
882
985
  :param allow_no_indices: If `false`, the request returns an error if any wildcard
883
986
  expression, index alias, or `_all` value targets only missing or closed indices.
884
- This behavior applies even if the request targets other open indices.
987
+ This behavior applies even if the request targets other open indices. For
988
+ example, a request targeting `foo*,bar*` returns an error if an index starts
989
+ with `foo` but no index starts with `bar`.
885
990
  :param analyze_wildcard: If `true`, wildcard and prefix queries are analyzed.
886
- This parameter can only be used when the `q` query string parameter is specified.
887
- :param analyzer: Analyzer to use for the query string. This parameter can only
888
- be used when the `q` query string parameter is specified.
991
+ This parameter can be used only when the `q` query string parameter is specified.
992
+ :param analyzer: The analyzer to use for the query string. This parameter can
993
+ be used only when the `q` query string parameter is specified.
889
994
  :param default_operator: The default operator for query string query: `AND` or
890
- `OR`. This parameter can only be used when the `q` query string parameter
995
+ `OR`. This parameter can be used only when the `q` query string parameter
891
996
  is specified.
892
- :param df: Field to use as default where no field prefix is given in the query
893
- string. This parameter can only be used when the `q` query string parameter
997
+ :param df: The field to use as a default when no field prefix is given in the
998
+ query string. This parameter can be used only when the `q` query string parameter
894
999
  is specified.
895
- :param expand_wildcards: Type of index that wildcard patterns can match. If the
896
- request can target data streams, this argument determines whether wildcard
897
- expressions match hidden data streams. Supports comma-separated values, such
898
- as `open,hidden`.
899
- :param ignore_throttled: If `true`, concrete, expanded or aliased indices are
1000
+ :param expand_wildcards: The type of index that wildcard patterns can match.
1001
+ If the request can target data streams, this argument determines whether
1002
+ wildcard expressions match hidden data streams. It supports comma-separated
1003
+ values, such as `open,hidden`.
1004
+ :param ignore_throttled: If `true`, concrete, expanded, or aliased indices are
900
1005
  ignored when frozen.
901
1006
  :param ignore_unavailable: If `false`, the request returns an error if it targets
902
1007
  a missing or closed index.
903
1008
  :param lenient: If `true`, format-based query failures (such as providing text
904
- to a numeric field) in the query string will be ignored.
905
- :param min_score: Sets the minimum `_score` value that documents must have to
906
- be included in the result.
907
- :param preference: Specifies the node or shard the operation should be performed
908
- on. Random by default.
909
- :param q: Query in the Lucene query string syntax.
910
- :param query: Defines the search definition using the Query DSL.
911
- :param routing: Custom value used to route operations to a specific shard.
912
- :param terminate_after: Maximum number of documents to collect for each shard.
1009
+ to a numeric field) in the query string will be ignored. This parameter can
1010
+ be used only when the `q` query string parameter is specified.
1011
+ :param min_score: The minimum `_score` value that documents must have to be included
1012
+ in the result.
1013
+ :param preference: The node or shard the operation should be performed on. By
1014
+ default, it is random.
1015
+ :param q: The query in Lucene query string syntax.
1016
+ :param query: Defines the search definition using the Query DSL. The query is
1017
+ optional, and when not provided, it will use `match_all` to count all the
1018
+ docs.
1019
+ :param routing: A custom value used to route operations to a specific shard.
1020
+ :param terminate_after: The maximum number of documents to collect for each shard.
913
1021
  If a query reaches this limit, Elasticsearch terminates the query early.
914
- Elasticsearch collects documents before sorting.
1022
+ Elasticsearch collects documents before sorting. IMPORTANT: Use with caution.
1023
+ Elasticsearch applies this parameter to each shard handling the request.
1024
+ When possible, let Elasticsearch perform early termination automatically.
1025
+ Avoid specifying this parameter for requests that target data streams with
1026
+ backing indices across multiple data tiers.
915
1027
  """
916
1028
  __path_parts: t.Dict[str, str]
917
1029
  if index not in SKIP_IN_PATH:
@@ -1009,7 +1121,7 @@ class AsyncElasticsearch(BaseClient):
1009
1121
  and makes it searchable. If the target is an index and the document already exists,
1010
1122
  the request updates the document and increments its version.
1011
1123
 
1012
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/docs-index_.html>`_
1124
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/docs-index_.html>`_
1013
1125
 
1014
1126
  :param index: Name of the data stream or index to target. If the target doesn’t
1015
1127
  exist and matches the name or wildcard (`*`) pattern of an index template
@@ -1113,7 +1225,7 @@ class AsyncElasticsearch(BaseClient):
1113
1225
  """
1114
1226
  Delete a document. Removes a JSON document from the specified index.
1115
1227
 
1116
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/docs-delete.html>`_
1228
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/docs-delete.html>`_
1117
1229
 
1118
1230
  :param index: Name of the target index.
1119
1231
  :param id: Unique identifier for the document.
@@ -1235,7 +1347,7 @@ class AsyncElasticsearch(BaseClient):
1235
1347
  """
1236
1348
  Delete documents. Deletes documents that match the specified query.
1237
1349
 
1238
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/docs-delete-by-query.html>`_
1350
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/docs-delete-by-query.html>`_
1239
1351
 
1240
1352
  :param index: Comma-separated list of data streams, indices, and aliases to search.
1241
1353
  Supports wildcards (`*`). To search all data streams or indices, omit this
@@ -1416,7 +1528,7 @@ class AsyncElasticsearch(BaseClient):
1416
1528
  takes effect immediately but rethrotting that slows down the query takes effect
1417
1529
  after completing the current batch to prevent scroll timeouts.
1418
1530
 
1419
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/docs-delete-by-query.html>`_
1531
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/docs-delete-by-query.html>`_
1420
1532
 
1421
1533
  :param task_id: The ID for the task.
1422
1534
  :param requests_per_second: The throttle for this request in sub-requests per
@@ -1462,7 +1574,7 @@ class AsyncElasticsearch(BaseClient):
1462
1574
  """
1463
1575
  Delete a script or search template. Deletes a stored script or search template.
1464
1576
 
1465
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/modules-scripting.html>`_
1577
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/modules-scripting.html>`_
1466
1578
 
1467
1579
  :param id: Identifier for the stored script or search template.
1468
1580
  :param master_timeout: Period to wait for a connection to the master node. If
@@ -1530,7 +1642,7 @@ class AsyncElasticsearch(BaseClient):
1530
1642
  """
1531
1643
  Check a document. Checks if a specified document exists.
1532
1644
 
1533
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/docs-get.html>`_
1645
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/docs-get.html>`_
1534
1646
 
1535
1647
  :param index: Comma-separated list of data streams, indices, and aliases. Supports
1536
1648
  wildcards (`*`).
@@ -1631,7 +1743,7 @@ class AsyncElasticsearch(BaseClient):
1631
1743
  """
1632
1744
  Check for a document source. Checks if a document's `_source` is stored.
1633
1745
 
1634
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/docs-get.html>`_
1746
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/docs-get.html>`_
1635
1747
 
1636
1748
  :param index: Comma-separated list of data streams, indices, and aliases. Supports
1637
1749
  wildcards (`*`).
@@ -1732,7 +1844,7 @@ class AsyncElasticsearch(BaseClient):
1732
1844
  Explain a document match result. Returns information about why a specific document
1733
1845
  matches, or doesn’t match, a query.
1734
1846
 
1735
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/search-explain.html>`_
1847
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/search-explain.html>`_
1736
1848
 
1737
1849
  :param index: Index names used to limit the request. Only a single index name
1738
1850
  can be provided to this parameter.
@@ -1855,7 +1967,7 @@ class AsyncElasticsearch(BaseClient):
1855
1967
  field. For example, a runtime field with a type of keyword is returned the same
1856
1968
  as any other field that belongs to the `keyword` family.
1857
1969
 
1858
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/search-field-caps.html>`_
1970
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/search-field-caps.html>`_
1859
1971
 
1860
1972
  :param index: Comma-separated list of data streams, indices, and aliases used
1861
1973
  to limit the request. Supports wildcards (*). To target all data streams
@@ -1972,7 +2084,7 @@ class AsyncElasticsearch(BaseClient):
1972
2084
  Get a document by its ID. Retrieves the document with the specified ID from an
1973
2085
  index.
1974
2086
 
1975
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/docs-get.html>`_
2087
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/docs-get.html>`_
1976
2088
 
1977
2089
  :param index: Name of the index that contains the document.
1978
2090
  :param id: Unique identifier of the document.
@@ -2061,7 +2173,7 @@ class AsyncElasticsearch(BaseClient):
2061
2173
  """
2062
2174
  Get a script or search template. Retrieves a stored script or search template.
2063
2175
 
2064
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/modules-scripting.html>`_
2176
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/modules-scripting.html>`_
2065
2177
 
2066
2178
  :param id: Identifier for the stored script or search template.
2067
2179
  :param master_timeout: Specify timeout for connection to master
@@ -2103,7 +2215,7 @@ class AsyncElasticsearch(BaseClient):
2103
2215
  """
2104
2216
  Get script contexts. Get a list of supported script contexts and their methods.
2105
2217
 
2106
- `<https://www.elastic.co/guide/en/elasticsearch/painless/8.16/painless-contexts.html>`_
2218
+ `<https://www.elastic.co/guide/en/elasticsearch/painless/8.17/painless-contexts.html>`_
2107
2219
  """
2108
2220
  __path_parts: t.Dict[str, str] = {}
2109
2221
  __path = "/_script_context"
@@ -2138,7 +2250,7 @@ class AsyncElasticsearch(BaseClient):
2138
2250
  """
2139
2251
  Get script languages. Get a list of available script types, languages, and contexts.
2140
2252
 
2141
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/modules-scripting.html>`_
2253
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/modules-scripting.html>`_
2142
2254
  """
2143
2255
  __path_parts: t.Dict[str, str] = {}
2144
2256
  __path = "/_script_language"
@@ -2193,7 +2305,7 @@ class AsyncElasticsearch(BaseClient):
2193
2305
  """
2194
2306
  Get a document's source. Returns the source of a document.
2195
2307
 
2196
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/docs-get.html>`_
2308
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/docs-get.html>`_
2197
2309
 
2198
2310
  :param index: Name of the index that contains the document.
2199
2311
  :param id: Unique identifier of the document.
@@ -2274,9 +2386,28 @@ class AsyncElasticsearch(BaseClient):
2274
2386
  verbose: t.Optional[bool] = None,
2275
2387
  ) -> ObjectApiResponse[t.Any]:
2276
2388
  """
2277
- Returns the health of the cluster.
2278
-
2279
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/health-api.html>`_
2389
+ Get the cluster health. Get a report with the health status of an Elasticsearch
2390
+ cluster. The report contains a list of indicators that compose Elasticsearch
2391
+ functionality. Each indicator has a health status of: green, unknown, yellow
2392
+ or red. The indicator will provide an explanation and metadata describing the
2393
+ reason for its current health status. The cluster’s status is controlled by the
2394
+ worst indicator status. In the event that an indicator’s status is non-green,
2395
+ a list of impacts may be present in the indicator result which detail the functionalities
2396
+ that are negatively affected by the health issue. Each impact carries with it
2397
+ a severity level, an area of the system that is affected, and a simple description
2398
+ of the impact on the system. Some health indicators can determine the root cause
2399
+ of a health problem and prescribe a set of steps that can be performed in order
2400
+ to improve the health of the system. The root cause and remediation steps are
2401
+ encapsulated in a diagnosis. A diagnosis contains a cause detailing a root cause
2402
+ analysis, an action containing a brief description of the steps to take to fix
2403
+ the problem, the list of affected resources (if applicable), and a detailed step-by-step
2404
+ troubleshooting guide to fix the diagnosed problem. NOTE: The health indicators
2405
+ perform root cause analysis of non-green health statuses. This can be computationally
2406
+ expensive when called frequently. When setting up automated polling of the API
2407
+ for health status, set verbose to false to disable the more expensive analysis
2408
+ logic.
2409
+
2410
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/health-api.html>`_
2280
2411
 
2281
2412
  :param feature: A feature of the cluster, as returned by the top-level health
2282
2413
  report API.
@@ -2353,7 +2484,7 @@ class AsyncElasticsearch(BaseClient):
2353
2484
  and makes it searchable. If the target is an index and the document already exists,
2354
2485
  the request updates the document and increments its version.
2355
2486
 
2356
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/docs-index_.html>`_
2487
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/docs-index_.html>`_
2357
2488
 
2358
2489
  :param index: Name of the data stream or index to target.
2359
2490
  :param document:
@@ -2460,9 +2591,9 @@ class AsyncElasticsearch(BaseClient):
2460
2591
  pretty: t.Optional[bool] = None,
2461
2592
  ) -> ObjectApiResponse[t.Any]:
2462
2593
  """
2463
- Get cluster info. Returns basic information about the cluster.
2594
+ Get cluster info. Get basic build, version, and cluster information.
2464
2595
 
2465
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/index.html>`_
2596
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/rest-api-root.html>`_
2466
2597
  """
2467
2598
  __path_parts: t.Dict[str, str] = {}
2468
2599
  __path = "/"
@@ -2527,7 +2658,7 @@ class AsyncElasticsearch(BaseClient):
2527
2658
  The kNN search API supports restricting the search using a filter. The search
2528
2659
  will return the top k documents that also match the filter query.
2529
2660
 
2530
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/search-search.html>`_
2661
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/search-search.html>`_
2531
2662
 
2532
2663
  :param index: A comma-separated list of index names to search; use `_all` or
2533
2664
  to perform the operation on all indices
@@ -2631,7 +2762,7 @@ class AsyncElasticsearch(BaseClient):
2631
2762
  IDs in the request body. To ensure fast responses, this multi get (mget) API
2632
2763
  responds with partial results if one or more shards fail.
2633
2764
 
2634
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/docs-multi-get.html>`_
2765
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/docs-multi-get.html>`_
2635
2766
 
2636
2767
  :param index: Name of the index to retrieve documents from when `ids` are specified,
2637
2768
  or when a document in the `docs` array does not specify an index.
@@ -2758,7 +2889,7 @@ class AsyncElasticsearch(BaseClient):
2758
2889
  Each newline character may be preceded by a carriage return `\\r`. When sending
2759
2890
  requests to this endpoint the `Content-Type` header should be set to `application/x-ndjson`.
2760
2891
 
2761
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/search-multi-search.html>`_
2892
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/search-multi-search.html>`_
2762
2893
 
2763
2894
  :param searches:
2764
2895
  :param index: Comma-separated list of data streams, indices, and index aliases
@@ -2890,7 +3021,7 @@ class AsyncElasticsearch(BaseClient):
2890
3021
  """
2891
3022
  Run multiple templated searches.
2892
3023
 
2893
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/search-multi-search.html>`_
3024
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/search-multi-search.html>`_
2894
3025
 
2895
3026
  :param search_templates:
2896
3027
  :param index: Comma-separated list of data streams, indices, and aliases to search.
@@ -2989,7 +3120,7 @@ class AsyncElasticsearch(BaseClient):
2989
3120
  with all the fetched termvectors. Each element has the structure provided by
2990
3121
  the termvectors API.
2991
3122
 
2992
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/docs-multi-termvectors.html>`_
3123
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/docs-multi-termvectors.html>`_
2993
3124
 
2994
3125
  :param index: Name of the index that contains the documents.
2995
3126
  :param docs: Array of existing or artificial documents.
@@ -3079,6 +3210,7 @@ class AsyncElasticsearch(BaseClient):
3079
3210
  *,
3080
3211
  index: t.Union[str, t.Sequence[str]],
3081
3212
  keep_alive: t.Union[str, t.Literal[-1], t.Literal[0]],
3213
+ allow_partial_search_results: t.Optional[bool] = None,
3082
3214
  error_trace: t.Optional[bool] = None,
3083
3215
  expand_wildcards: t.Optional[
3084
3216
  t.Union[
@@ -3108,11 +3240,15 @@ class AsyncElasticsearch(BaseClient):
3108
3240
  A point in time must be opened explicitly before being used in search requests.
3109
3241
  The `keep_alive` parameter tells Elasticsearch how long it should persist.
3110
3242
 
3111
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/point-in-time-api.html>`_
3243
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/point-in-time-api.html>`_
3112
3244
 
3113
3245
  :param index: A comma-separated list of index names to open point in time; use
3114
3246
  `_all` or empty string to perform the operation on all indices
3115
3247
  :param keep_alive: Extends the time to live of the corresponding point in time.
3248
+ :param allow_partial_search_results: If `false`, creating a point in time request
3249
+ when a shard is missing or unavailable will throw an exception. If `true`,
3250
+ the point in time will contain all the shards that are available at the time
3251
+ of the request.
3116
3252
  :param expand_wildcards: Type of index that wildcard patterns can match. If the
3117
3253
  request can target data streams, this argument determines whether wildcard
3118
3254
  expressions match hidden data streams. Supports comma-separated values, such
@@ -3135,6 +3271,8 @@ class AsyncElasticsearch(BaseClient):
3135
3271
  __body: t.Dict[str, t.Any] = body if body is not None else {}
3136
3272
  if keep_alive is not None:
3137
3273
  __query["keep_alive"] = keep_alive
3274
+ if allow_partial_search_results is not None:
3275
+ __query["allow_partial_search_results"] = allow_partial_search_results
3138
3276
  if error_trace is not None:
3139
3277
  __query["error_trace"] = error_trace
3140
3278
  if expand_wildcards is not None:
@@ -3190,7 +3328,7 @@ class AsyncElasticsearch(BaseClient):
3190
3328
  Create or update a script or search template. Creates or updates a stored script
3191
3329
  or search template.
3192
3330
 
3193
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/modules-scripting.html>`_
3331
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/modules-scripting.html>`_
3194
3332
 
3195
3333
  :param id: Identifier for the stored script or search template. Must be unique
3196
3334
  within the cluster.
@@ -3276,7 +3414,7 @@ class AsyncElasticsearch(BaseClient):
3276
3414
  Evaluate ranked search results. Evaluate the quality of ranked search results
3277
3415
  over a set of typical search queries.
3278
3416
 
3279
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/search-rank-eval.html>`_
3417
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/search-rank-eval.html>`_
3280
3418
 
3281
3419
  :param requests: A set of typical search requests, together with their provided
3282
3420
  ratings.
@@ -3372,7 +3510,7 @@ class AsyncElasticsearch(BaseClient):
3372
3510
  can be any existing index, alias, or data stream. The destination must differ
3373
3511
  from the source. For example, you cannot reindex a data stream into itself.
3374
3512
 
3375
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/docs-reindex.html>`_
3513
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/docs-reindex.html>`_
3376
3514
 
3377
3515
  :param dest: The destination you are copying to.
3378
3516
  :param source: The source you are copying from.
@@ -3469,7 +3607,7 @@ class AsyncElasticsearch(BaseClient):
3469
3607
  Throttle a reindex operation. Change the number of requests per second for a
3470
3608
  particular reindex operation.
3471
3609
 
3472
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/docs-reindex.html>`_
3610
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/docs-reindex.html>`_
3473
3611
 
3474
3612
  :param task_id: Identifier for the task.
3475
3613
  :param requests_per_second: The throttle for this request in sub-requests per
@@ -3520,7 +3658,7 @@ class AsyncElasticsearch(BaseClient):
3520
3658
  """
3521
3659
  Render a search template. Render a search template as a search request body.
3522
3660
 
3523
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/render-search-template-api.html>`_
3661
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/render-search-template-api.html>`_
3524
3662
 
3525
3663
  :param id: ID of the search template to render. If no `source` is specified,
3526
3664
  this or the `id` request body parameter is required.
@@ -3589,7 +3727,7 @@ class AsyncElasticsearch(BaseClient):
3589
3727
  """
3590
3728
  Run a script. Runs a script and returns a result.
3591
3729
 
3592
- `<https://www.elastic.co/guide/en/elasticsearch/painless/8.16/painless-execute-api.html>`_
3730
+ `<https://www.elastic.co/guide/en/elasticsearch/painless/8.17/painless-execute-api.html>`_
3593
3731
 
3594
3732
  :param context: The context that the script should run in.
3595
3733
  :param context_setup: Additional parameters for the `context`.
@@ -3662,7 +3800,7 @@ class AsyncElasticsearch(BaseClient):
3662
3800
  of the index at the time of the initial search request. Subsequent indexing or
3663
3801
  document changes only affect later search and scroll requests.
3664
3802
 
3665
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/search-request-body.html#request-body-search-scroll>`_
3803
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/search-request-body.html#request-body-search-scroll>`_
3666
3804
 
3667
3805
  :param scroll_id: Scroll ID of the search.
3668
3806
  :param rest_total_hits_as_int: If true, the API response’s hit.total property
@@ -3854,7 +3992,7 @@ class AsyncElasticsearch(BaseClient):
3854
3992
  can provide search queries using the `q` query string parameter or the request
3855
3993
  body. If both are specified, only the query parameter is used.
3856
3994
 
3857
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/search-search.html>`_
3995
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/search-search.html>`_
3858
3996
 
3859
3997
  :param index: Comma-separated list of data streams, indices, and aliases to search.
3860
3998
  Supports wildcards (`*`). To search all data streams and indices, omit this
@@ -4284,7 +4422,7 @@ class AsyncElasticsearch(BaseClient):
4284
4422
  """
4285
4423
  Search a vector tile. Search a vector tile for geospatial values.
4286
4424
 
4287
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/search-vector-tile-api.html>`_
4425
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/search-vector-tile-api.html>`_
4288
4426
 
4289
4427
  :param index: Comma-separated list of data streams, indices, or aliases to search
4290
4428
  :param field: Field containing geospatial data to return
@@ -4441,7 +4579,7 @@ class AsyncElasticsearch(BaseClient):
4441
4579
  optimizations with routing and shard preferences. When filtered aliases are used,
4442
4580
  the filter is returned as part of the indices section.
4443
4581
 
4444
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/search-shards.html>`_
4582
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/search-shards.html>`_
4445
4583
 
4446
4584
  :param index: Returns the indices and shards that a search request would be executed
4447
4585
  against.
@@ -4542,7 +4680,7 @@ class AsyncElasticsearch(BaseClient):
4542
4680
  """
4543
4681
  Run a search with a search template.
4544
4682
 
4545
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/search-template.html>`_
4683
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/search-template.html>`_
4546
4684
 
4547
4685
  :param index: Comma-separated list of data streams, indices, and aliases to search.
4548
4686
  Supports wildcards (*).
@@ -4682,7 +4820,7 @@ class AsyncElasticsearch(BaseClient):
4682
4820
  are actually deleted. Until that happens, the terms enum API will return terms
4683
4821
  from these documents.
4684
4822
 
4685
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/search-terms-enum.html>`_
4823
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/search-terms-enum.html>`_
4686
4824
 
4687
4825
  :param index: Comma-separated list of data streams, indices, and index aliases
4688
4826
  to search. Wildcard (*) expressions are supported.
@@ -4781,7 +4919,7 @@ class AsyncElasticsearch(BaseClient):
4781
4919
  Get term vector information. Get information and statistics about terms in the
4782
4920
  fields of a particular document.
4783
4921
 
4784
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/docs-termvectors.html>`_
4922
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/docs-termvectors.html>`_
4785
4923
 
4786
4924
  :param index: Name of the index that contains the document.
4787
4925
  :param id: Unique identifier of the document.
@@ -4924,7 +5062,7 @@ class AsyncElasticsearch(BaseClient):
4924
5062
  Update a document. Updates a document by running a script or passing a partial
4925
5063
  document.
4926
5064
 
4927
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/docs-update.html>`_
5065
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/docs-update.html>`_
4928
5066
 
4929
5067
  :param index: The name of the index
4930
5068
  :param id: Document ID
@@ -5090,7 +5228,7 @@ class AsyncElasticsearch(BaseClient):
5090
5228
  is specified, performs an update on every document in the data stream or index
5091
5229
  without modifying the source, which is useful for picking up mapping changes.
5092
5230
 
5093
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/docs-update-by-query.html>`_
5231
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/docs-update-by-query.html>`_
5094
5232
 
5095
5233
  :param index: Comma-separated list of data streams, indices, and aliases to search.
5096
5234
  Supports wildcards (`*`). To search all data streams or indices, omit this
@@ -5289,7 +5427,7 @@ class AsyncElasticsearch(BaseClient):
5289
5427
  takes effect immediately but rethrotting that slows down the query takes effect
5290
5428
  after completing the current batch to prevent scroll timeouts.
5291
5429
 
5292
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/docs-update-by-query.html>`_
5430
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/docs-update-by-query.html>`_
5293
5431
 
5294
5432
  :param task_id: The ID for the task.
5295
5433
  :param requests_per_second: The throttle for this request in sub-requests per