gems elasticsearch 9.2.0
v9.2.0

one day ago

Gem

  • Tested versions of Ruby for 9.2.0: Ruby (MRI) 3.2, 3.3, 3.4, head, JRuby 9.3, JRuby 9.4 and JRuby 10.
  • Cleaned up deprecated code for code generation in elasticsearch-api/utils.

Elasticsearch API

Code updated to the latest Elasticsearch 9.2 specification.

API Updates

  • async_search.submit, cat.count, count, eql.search, field_caps, indices.resolve_index. msearch, msearch_template, open_point_in_time, search, search_mvt, search_template, sql.query - New parameter:
    • :project_routing. Specifies a subset of projects to target for the search using project metadata tags in a subset of Lucene query syntax. Supported in serverless only.
  • cluster.allocation_explain - New parameters:
    • [String] :index The name of the index that you would like an explanation for.
    • [Integer] :shard An identifier for the shard that you would like an explanation for.
    • [Boolean] :primary If true, returns an explanation for the primary shard for the specified shard ID.
    • [String] :current_node Explain a shard only if it is currently located on the specified node name or node ID.
  • get - New parameter:
    • [Boolean] :_source_exclude_vectors Whether vectors should be excluded from _source
  • indices.resolve_index - New parameter:
    • [String, Array] :mode Filter indices by index mode - standard, lookup, time_series, etc. Comma-separated list of IndexMode. Empty means no filter.
  • search - New parameter:
    • [Boolean] :_source_exclude_vectors Whether vectors should be excluded from _source.
  • security.update_settings - New parameter:
    • [String] :merge_type The mapping merge type if mapping overrides are being provided in mapping_addition.

Breaking change - request body required

The :body parameter is now required in the following APIs:

  • close_point_in_time
  • fleet.search
  • graph.explore
  • index_lifecycle_management.move_to_step
  • index_lifecycle_management.put_lifecycle
  • indices.analyze
  • indices.put_data_lifecycle
  • indices.put_data_stream_options
  • indices.shrink
  • indices.split
  • inference.completion
  • inference.inference
  • inference.put_alibabacloud
  • inference.put_amazonbedrock
  • inference.put_amazonsagemaker
  • inference.put_anthropic
  • inference.put_azureaistudio
  • inference.put_azureopenai
  • inference.put_cohere
  • inference.put_custom
  • inference.put_deepseek
  • inference.put_elasticsearch
  • inference.put_elser
  • inference.put_googleaistudio
  • inference.put_googlevertexai
  • inference.put_hugging_face
  • inference.put_jinaai
  • inference.put_mistral
  • inference.put_openai
  • inference.put_voyageai
  • inference.put_watsonx
  • inference.rerank
  • inference.sparse_embedding
  • inference.stream_completion
  • inference.text_embedding
  • render_search_template
  • scripts_painless_execute
  • snapshot_lifecycle_management.put_lifecycle
  • terms_enum

New APIs

  • indices.get_data_stream_mappings - Get mapping information for one or more data streams. Documentation.
  • indices.put_data_stream_mappings - Update data stream mappings. Documentation.
  • inference.put_ai21 - Create an inference endpoint to perform an inference task with the ai21 service. Documentation
  • inference.put_contextualai - Create an inference endpoint to perform an inference task with the contexualai service. Documentation
  • inference.put_llama - Create an inference endpoint to perform an inference task with the llama service. Documentation
  • project.tags (Experimental) - Return tags defined for the project.
  • security.get_stats - Gather security usage statistics from all node(s) within the cluster. Documentation

Don't miss a new elasticsearch release

NewReleases is sending notifications on new releases.