Releases: elastic/elasticsearch-ruby
7.8.0.pre
- Support for Elasticsearch version 7.8
- This is a pre-release, full Changelog details will be published with the final release of 7.8.0
7.7.0
7.7.0
This version drops support for Ruby 2.4 since it's reached it's end of life.
Client
- Support for Elasticsearch version
7.7
Custom Headers
You can set custom HTTP headers on the client's initializer or pass them as a parameter to any API endpoint. More info and code examples.
API
API Changes
- Clean: Removes up some deprecated endpoints:
abort_benchmark
,benchmark
,delete_by_rethrottle
,nodes.shutdown
,remote.info
. expand_wildcards
Whether to expand wildcard expressions to concrete indices that are open, closed or both. Options: open, closed, hidden, none, all.hidden
option is new. It was also added to the following endpoints:cat.aliases
,cat.indices
.delete_by_query
: Parameterslices
can now be set toauto
.reindex
: Parameterslices
can now be set toauto
.update_by_query
: Parameterslices
can now be set toauto
.snapshot.cleanup_repository
: Parameterbody
is removed.
New API Endpoints
cluster.delete_component_template
cluster.get_component_template
cluster.put_component_template
indices.create_data_stream
(experimental)indices.delete_data_stream
(experimental)indices.get_data_stream
(experimental)
X-Pack
API Changes
machine_learing.get_trained_models
: New parametertags
machine_learning.put_datafeed
,machine_learning.update_datafeed
: Added parametersignore_unavailable
,allow_no_indices
,ignore_throttled
,expand_wildcards
reload_secure_settings
: New parameterbody
, an object containing the password for the keystore.
New API Endpoints
async_search.delete
async_search.get
async_search.submit
cat.ml_data_frame_analytics
cat.ml_datafeeds
cat.ml_jobs
cat.ml_trained_models
cat.transform
cat.transforms
machine_learning.estimate_model_memory
transform.delete_transform
transform.get_transform
transform.get_transform_stats
transform.preview_transform
transform.put_transform
transform.start_transform
transform.stop_transform
transform.update_transform
6.8.2
Client
- Accept options passed to #perform_request to avoid infinite retry loop - #837
API Key Support
The client now supports API Key Authentication, check "Authentication" on the transport README for information on how to use it.
X-Opaque-Id Support
The client now supports identifying running tasks with X-Opaque-Id. Check transport README for information on how to use X-Opaque-Id.
Faraday migrated to 1.0
We're now using version 1.0 of Faraday:
- The client initializer was modified but this should not disrupt final users at all, check this commit for more information.
- Migrated error checking to remove the deprecated
Faraday::Error
namespace. - This change is not compatible with Typhoeus. The latest release is 1.3.1, but it's still using the deprecated
Faraday::Error
namespace. This has been fixed on master, but the last release was November 6, 2018. Version 1.4.0 should be ok once it's released. - Note: Faraday 1.0 drops official support for JRuby. It installs fine on the tests we run with JRuby in this repo, but it's something we should pay attention to.
Reference: Upgrading - Faraday 1.0
API
7.7.0.pre
- Support for Elasticsearch version
7.7
- This is a pre-release, full Changelog details will be published with the final release of 7.7.0
7.6.0
Client
- Support for Elasticsearch version
7.6
. - Last release supporting Ruby 2.4. Ruby 2.4 has reached it's end of life and no more security updates will be provided, users are suggested to update to a newer version of Ruby.
API Key Support
The client now supports API Key Authentication, check "Authentication" on the transport README for information on how to use it.
X-Opaque-Id Support
The client now supports identifying running tasks with X-Opaque-Id. Check transport README for information on how to use X-Opaque-Id.
Faraday migrated to 1.0
We're now using version 1.0 of Faraday:
- The client initializer was modified but this should not disrupt final users at all, check this commit for more information.
- Migrated error checking to remove the deprecated
Faraday::Error
namespace. - This change is not compatible with Typhoeus. The latest release is 1.3.1, but it's still using the deprecated
Faraday::Error
namespace. This has been fixed on master, but the last release was November 6, 2018. Version 1.4.0 should be ok once it's released. - Note: Faraday 1.0 drops official support for JRuby. It installs fine on the tests we run with JRuby in this repo, but it's something we should pay attention to.
Reference: Upgrading - Faraday 1.0
API
API Changes:
cat.indices
: argumentbytes
options were:b,k,m,g
and are nowb,k,kb,m,mb,g,gb,t,tb,p,pb
.delete_by_query
: New parameteranalyzer
- The analyzer to use for the query string.indices.put_template
: Removed parameters:timeout
,flat_settings
.msearch_template
: New Parameterccs_minimize_roundtrips
- Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution.rank_eval
: New parametersearch_type
- Search operation type (options:query_then_fetch,dfs_query_then_fetch
).search_template
: New parameterccs_minimize_roundtrips
- Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution.
New API endpoints:
get_script_context
get_script_languages
Warnings:
Synced flush is deprecated and will be removed in 8.0.
X-Pack
New API endpoints:
ml/delete_trained_model
ml/explain_data_frame_analytics
ml/get_trained_models
ml/get_trained_models_stats
ml/put_trained_model
API changes:
license/get
: Added parameteraccept_enterprise
.ml/delete_data_frame_analytics
Added parameterforce
.monitoring/bulk
- Removed parametersystem_version
.
7.6.0.pre
Pre-release version of 7.6 client.
- Support for Elasticsearch version
7.6
. - New features: API Key Support, X-Opaque-Id and Faraday 1.0.
- This is a pre-release, full Changelog details will be published with the final release of 7.6.0
7.5.0
- Support for Elasticsearch 7.5.
- Update API spec generator: The code for Elasticsearch OSS and X-Pack APIs is being generated from the rest api spec.
- Specs have been updated to address new/deprecated parameters.
- Ruby versions tested: 2.3.8, 2.4.9, 2.5.7, 2.6.5 and 2.7.0 (new).
API
Endpoints that changed:
_bulk
: body is now required as an argument.cat
:local
andmaster_timeout
parameters are gone.health
: New parameterhealth
.indices
: Addstime
andinclude_unload_segments
parameters.nodes
: Addsbytes
,time
parameters.pending_tasks
: Addstime
parameter.recovery
: Addsactive_only
,detailed
,index
,time
parameters.segments
: Removesindex
parameter and it's now a url part.shards
: Addstime
parameter.snapshots
: Addstime
parameter.tasks
: Addstime
parameter.templates
: Thename
parameter is now passed in as a part but not a parameter.thread_pool
: Thethread_pool_patterns
parameter is now passed in as a part but not as a parameter.
cluster
put_settings
: body is required.state
:index_templates
is gone.node_id
is now a url part.
delete
-parent
parameter is gone.delete_by_query
:analyzer
parameters are gone,max_docs
is a new parameter,body
is now a required parameter.delete_by_query_rethrottle
new endpoint.delete_by_rethrottle
- usesdelete_by_query_rethrottle
and hasn't changed.exists
,exists_source
,explain
:parent
parameter is gone.field_caps
:fields
param is no longer required.get
:parent
parameter is goneget_source
:parent
parameter is goneindex
:body
parameter is required,wait_for_shard
is a new parameter,consistency
,include_type_name
,parent
,percolate
,replication
,timestamp
,ttl
parameters are goneindices
get
:feature
paramatere was deprecated and is gone.delete_aliases
,put_alias
: URL changed internally to 'aliases' instead of 'alias' but shouldn't affect the client's API.
render_search_template
:id
is now a part not a parametersearch
:fielddata_fields
,include_type_name
,fields
,ignore_indices
,lowercase_expanded_terms
,query_cache
,source
parameters are gone,ccs_minimize_roundtrips
,track_scores
are new parameters.tasks
-list
: task_id is not supported anymore, it's in get now.termvectors
:parent
parameter is gone.update
:version
parameter is not supported anymore.
X-PACK
Some urls changed internally to remove _xpack
, but it shouldn't affect the client's API.
explore
:index
is now required.info
:human
parameter is gone.migration
: some endpoints are gone:get_assistance
,get_assistance_test
andupgrade_test
.watcher
:restart
endpoint is gone.
7.5.0-pre
Pre-release version of 7.5 client.
- Support for Elasticsearch
7.5
. - Update API spec generator: The code for Elasticsearch OSS and X-Pack APIs is being generated from the rest api spec.
- Specs have been updated to address new/deprecated parameters.
- This is a pre-release, full Changelog details will be published with the final release of 7.5.0
6.8.1
- Lock the version of Faraday: Faraday 1.0 was released with breaking changes. Thank you @taylorthurlow 👍 (#752)
- Add support for Ruby 2.7
- 6.x releases are now tested in the latests Ruby versions: 2.4.9, 2.5.7, 2.6.5 and 2.7.0
- Fix bad range value error
7.4.0
This version supports Elasticsearch version 7.4.0
Client
- Accept options passed to #perform_request to avoid infinite retry loop
- Fix minor typo
API
- Update documentation of put_script method
XPACK
- Add ParamsRegistry in each direcotry and for Xpack top-level API
- Add ParamsRegistry for Xpack data_frame API
- Add ParamsRegistry for Xpack graph API
- Add ParamsRegistry for Xpack license API
- Add ParamsRegistry for Xpack MachineLearning API
- Fix path for loading params_registry files
- Add ParamsRegistry for Xpack Migration API
- Add ParamsRegistry for Xpack Monitoring API
- Add ParamsRegistry for Xpack Rollup API
- Add ParamsRegistry for Xpack security API
- Add ParamsRegistry for Xpack sql API
- Add ParamsRegistry for Xpack watcher API
- Update missed file with ParamsRegistry
- Update versions in params registry files
- Add update_data_frame_transform
- Support Index Lifecycle Management(ILM) API