From 75bed27c754ffd716f0b8ce0dec45651693e73a9 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Mon, 18 Aug 2025 10:14:36 +0100 Subject: [PATCH] [API] Updates generated API code to the latest version simulate.ingest - Adds `merge_type` String parameter, the method to be used when merging mapping_additions existing mappings. --- elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb | 5 +++++ .../lib/elasticsearch/api/actions/simulate/ingest.rb | 3 +++ elasticsearch-api/lib/elasticsearch/api/version.rb | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb b/elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb index 1f1007cdca..38b1963809 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb @@ -51,6 +51,11 @@ module Actions # In this case, the response includes a count of the version conflicts that were encountered. # Note that the handling of other error types is unaffected by the `conflicts` property. # Additionally, if you opt to count version conflicts, the operation could attempt to reindex more documents from the source than `max_docs` until it has successfully indexed `max_docs` documents into the target or it has gone through every document in the source query. + # It's recommended to reindex on indices with a green status. Reindexing can fail when a node shuts down or crashes. + # * When requested with `wait_for_completion=true` (default), the request fails if the node shuts down. + # * When requested with `wait_for_completion=false`, a task id is returned, which can be used via the task management API to monitor, debug, or cancel the task. The task may disappear or fail if the node shuts down. + # When retrying a failed reindex operation, it might be necessary to set `conflicts=proceed` or to first delete the partial destination index. + # Additionally, dry runs, checking disk space, and fetching index recovery information can help address the root cause. # Refer to the linked documentation for examples of how to reindex documents. # # @option arguments [Boolean] :refresh If `true`, the request refreshes affected shards to make this operation visible to search. diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/simulate/ingest.rb b/elasticsearch-api/lib/elasticsearch/api/actions/simulate/ingest.rb index 87eb3dd92a..2b94c55862 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/simulate/ingest.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/simulate/ingest.rb @@ -45,6 +45,9 @@ module Actions # If you specify this parameter in the request path, it is used for any documents that do not explicitly specify an index argument. # @option arguments [String] :pipeline The pipeline to use as the default pipeline. # This value can be used to override the default pipeline of the index. + # @option arguments [String] :merge_type The method to be used when merging mapping_additions existing mappings. Mappings can be merged in the way mapping changes are merged into an existing index, or in + # the way mapping changes are merged into existing templates. Some changes are allowed to templates that are not allowed to indices. For example, + # a field cannot be changed to an incompatible type in an index, but can in a template. Server default: index. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response diff --git a/elasticsearch-api/lib/elasticsearch/api/version.rb b/elasticsearch-api/lib/elasticsearch/api/version.rb index c42dc0274a..edb307eecc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/version.rb +++ b/elasticsearch-api/lib/elasticsearch/api/version.rb @@ -18,6 +18,6 @@ module Elasticsearch module API VERSION = '9.2.0'.freeze - ES_SPECIFICATION_COMMIT = 'c26dfd2c787bc7b187f3ccac15b9c5993d45f801'.freeze + ES_SPECIFICATION_COMMIT = 'e64428b1c0ca92962cbbe474009513fc0e59d89f'.freeze end end