Skip to content

Updates 9.1 #2756

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ module Actions
# * JavaScript: Check out `client.helpers.*`
# * .NET: Check out `BulkAllObservable`
# * PHP: Check out bulk indexing.
# * Ruby: Check out `Elasticsearch::Helpers::BulkHelper`
# **Submitting bulk requests with cURL**
# If you're providing text file input to `curl`, you must use the `--data-binary` flag instead of plain `-d`.
# The latter doesn't preserve newlines. For example:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module Actions
# IMPORTANT: CAT APIs are only intended for human consumption using the command line or the Kibana console. They are not intended for use by applications. For application consumption, use the aliases API.
#
# @option arguments [String, Array<String>] :name A comma-separated list of aliases to retrieve. Supports wildcards (`*`). To retrieve all aliases, omit this parameter or use `*` or `_all`.
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
# @option arguments [String, Array<String>] :h A comma-separated list of columns names to display. It supports simple wildcards.
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
# Sorting defaults to ascending and can be changed by setting `:asc`
# or `:desc` as a suffix to the column name.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module Actions
#
# @option arguments [String, Array] :node_id A comma-separated list of node identifiers or names used to limit the returned information.
# @option arguments [String] :bytes The unit used to display byte values.
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
# @option arguments [String, Array<String>] :h A comma-separated list of columns names to display. It supports simple wildcards.
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
# Sorting defaults to ascending and can be changed by setting `:asc`
# or `:desc` as a suffix to the column name.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module Actions
# @option arguments [String] :name The name of the component template.
# It accepts wildcard expressions.
# If it is omitted, all component templates are returned.
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
# @option arguments [String, Array<String>] :h A comma-separated list of columns names to display. It supports simple wildcards.
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
# Sorting defaults to ascending and can be changed by setting `:asc`
# or `:desc` as a suffix to the column name.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module Actions
# @option arguments [String, Array] :index A comma-separated list of data streams, indices, and aliases used to limit the request.
# It supports wildcards (`*`).
# To target all data streams and indices, omit this parameter or use `*` or `_all`.
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
# @option arguments [String, Array<String>] :h A comma-separated list of columns names to display. It supports simple wildcards.
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
# Sorting defaults to ascending and can be changed by setting `:asc`
# or `:desc` as a suffix to the column name.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module Actions
# @option arguments [String, Array<String>] :fields Comma-separated list of fields used to limit returned information.
# To retrieve all fields, omit this parameter.
# @option arguments [String] :bytes The unit used to display byte values.
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
# @option arguments [String, Array<String>] :h A comma-separated list of columns names to display. It supports simple wildcards.
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
# Sorting defaults to ascending and can be changed by setting `:asc`
# or `:desc` as a suffix to the column name.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ module Actions
# By default, it returns only settings that have been explicitly defined.
#
# @option arguments [Boolean] :flat_settings If `true`, returns settings in flat format.
# @option arguments [Boolean] :include_defaults If `true`, returns default cluster settings from the local node.
# @option arguments [Boolean] :include_defaults If `true`, also returns default values for all other cluster settings, reflecting the values
# in the `elasticsearch.yml` file of one of the nodes in the cluster. If the nodes in your
# cluster do not all have the same values in their `elasticsearch.yml` config files then the
# values returned by this API may vary from invocation to invocation and may not reflect the
# values that Elasticsearch uses in all situations. Use the `GET _nodes/settings` API to
# fetch the settings for each individual node in your cluster.
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node.
# If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
# @option arguments [Time] :timeout Period to wait for a response.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module Actions
# - Update supported mapping parameters
# - Change a field's mapping using reindexing
# - Rename a field using a field alias
# Learn how to use the update mapping API with practical examples in the {https://www.elastic.co/docs//manage-data/data-store/mapping/update-mappings-examples Update mapping API examples} guide.
# Learn how to use the update mapping API with practical examples in the {https://www.elastic.co/docs/manage-data/data-store/mapping/update-mappings-examples Update mapping API examples} guide.
#
# @option arguments [String, Array] :index A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices. (*Required*)
# @option arguments [Boolean] :allow_no_indices If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,18 @@ module Actions
# * Azure AI Studio (`completion`, `text_embedding`)
# * Azure OpenAI (`completion`, `text_embedding`)
# * Cohere (`completion`, `rerank`, `text_embedding`)
# * DeepSeek (`completion`, `chat_completion`)
# * DeepSeek (`chat_completion`, `completion`)
# * Elasticsearch (`rerank`, `sparse_embedding`, `text_embedding` - this service is for built-in models and models uploaded through Eland)
# * ELSER (`sparse_embedding`)
# * Google AI Studio (`completion`, `text_embedding`)
# * Google Vertex AI (`rerank`, `text_embedding`)
# * Google Vertex AI (`chat_completion`, `completion`, `rerank`, `text_embedding`)
# * Hugging Face (`chat_completion`, `completion`, `rerank`, `text_embedding`)
# * JinaAI (`rerank`, `text_embedding`)
# * Llama (`chat_completion`, `completion`, `text_embedding`)
# * Mistral (`chat_completion`, `completion`, `text_embedding`)
# * OpenAI (`chat_completion`, `completion`, `text_embedding`)
# * VoyageAI (`text_embedding`, `rerank`)
# * VoyageAI (`rerank`, `text_embedding`)
# * Watsonx inference integration (`text_embedding`)
# * JinaAI (`text_embedding`, `rerank`)
#
# @option arguments [String] :task_type The task type. Refer to the integration list in the API description for the available task types.
# @option arguments [String] :inference_id The inference Id (*Required*)
Expand Down
5 changes: 5 additions & 0 deletions elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
# This code was automatically generated from the Elasticsearch Specification
# See https://github.com/elastic/elasticsearch-specification
# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash.
module Elasticsearch
module API
module Transform
module Actions
# Sets a cluster wide upgrade_mode setting that prepares transform indices for an upgrade.
#
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/transform-set-upgrade-mode.html
#
def set_upgrade_mode(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'transform.set_upgrade_mode' }

arguments = arguments.clone
headers = arguments.delete(:headers) || {}

body = nil

method = Elasticsearch::API::HTTP_POST
path = '_transform/set_upgrade_mode'
params = {}

Elasticsearch::API::Response.new(
perform_request(method, path, params, body, headers, request_opts)
)
end
end
end
end
end
2 changes: 1 addition & 1 deletion elasticsearch-api/lib/elasticsearch/api/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
module Elasticsearch
module API
VERSION = '9.1.1'.freeze
ES_SPECIFICATION_COMMIT = '569f8b3768762075a47e5fa16a694b41cbc90a34'.freeze
ES_SPECIFICATION_COMMIT = 'c87b1a22e846cc829f8d06c4958b0d2418b51375'.freeze
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

require 'spec_helper'

describe 'client.transform#set_upgrade_mode' do
let(:expected_args) do
[
'POST',
'_transform/set_upgrade_mode',
{},
nil,
{},
{ endpoint: 'transform.set_upgrade_mode' }
]
end

it 'performs the request' do
expect(client_double.transform.set_upgrade_mode).to be_a Elasticsearch::API::Response
end
end