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]
:indexThe name of the index that you would like an explanation for. - [Integer]
:shardAn identifier for the shard that you would like an explanation for. - [Boolean]
:primaryIf true, returns an explanation for the primary shard for the specified shard ID. - [String]
:current_nodeExplain a shard only if it is currently located on the specified node name or node ID.
- [String]
get- New parameter:- [Boolean]
:_source_exclude_vectorsWhether vectors should be excluded from _source
- [Boolean]
indices.resolve_index- New parameter:- [String, Array]
:modeFilter indices by index mode - standard, lookup, time_series, etc. Comma-separated list of IndexMode. Empty means no filter.
- [String, Array]
search- New parameter:- [Boolean]
:_source_exclude_vectorsWhether vectors should be excluded from _source.
- [Boolean]
security.update_settings- New parameter:- [String]
:merge_typeThe mapping merge type if mapping overrides are being provided in mapping_addition.
- [String]
Breaking change - request body required
The :body parameter is now required in the following APIs:
close_point_in_timefleet.searchgraph.exploreindex_lifecycle_management.move_to_stepindex_lifecycle_management.put_lifecycleindices.analyzeindices.put_data_lifecycleindices.put_data_stream_optionsindices.shrinkindices.splitinference.completioninference.inferenceinference.put_alibabacloudinference.put_amazonbedrockinference.put_amazonsagemakerinference.put_anthropicinference.put_azureaistudioinference.put_azureopenaiinference.put_cohereinference.put_custominference.put_deepseekinference.put_elasticsearchinference.put_elserinference.put_googleaistudioinference.put_googlevertexaiinference.put_hugging_faceinference.put_jinaaiinference.put_mistralinference.put_openaiinference.put_voyageaiinference.put_watsonxinference.rerankinference.sparse_embeddinginference.stream_completioninference.text_embeddingrender_search_templatescripts_painless_executesnapshot_lifecycle_management.put_lifecycleterms_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 theai21service. Documentationinference.put_contextualai- Create an inference endpoint to perform an inference task with thecontexualaiservice. Documentationinference.put_llama- Create an inference endpoint to perform an inference task with thellamaservice. Documentationproject.tags(Experimental) - Return tags defined for the project.security.get_stats- Gather security usage statistics from all node(s) within the cluster. Documentation