Skip to content

Releases: elastic/elasticsearch-ruby

7.6.0

07 Apr 16:19
Compare
Choose a tag to compare

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

Pull Request

API

API Changes:

  • cat.indices: argument bytes options were: b,k,m,g and are now b,k,kb,m,mb,g,gb,t,tb,p,pb.
  • delete_by_query: New parameter analyzer - The analyzer to use for the query string.
  • indices.put_template: Removed parameters: timeout, flat_settings.
  • msearch_template: New Parameter ccs_minimize_roundtrips - Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution.
  • rank_eval: New parameter search_type - Search operation type (options: query_then_fetch,dfs_query_then_fetch).
  • search_template: New parameter ccs_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 parameter accept_enterprise.
  • ml/delete_data_frame_analytics Added parameter force.
  • monitoring/bulk - Removed parameter system_version.

7.6.0.pre

03 Apr 10:08
Compare
Choose a tag to compare
7.6.0.pre Pre-release
Pre-release

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

26 Feb 13:56
Compare
Choose a tag to compare
  • 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 and master_timeout parameters are gone.
    • health: New parameter health.
    • indices: Adds time and include_unload_segments parameters.
    • nodes: Adds bytes, time parameters.
    • pending_tasks: Adds time parameter.
    • recovery: Adds active_only, detailed, index, time parameters.
    • segments: Removes index parameter and it's now a url part.
    • shards: Adds time parameter.
    • snapshots: Adds time parameter.
    • tasks: Adds time parameter.
    • templates: The name parameter is now passed in as a part but not a parameter.
    • thread_pool: The thread_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 - uses delete_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 gone
  • get_source: parent parameter is gone
  • index: body parameter is required, wait_for_shard is a new parameter, consistency, include_type_name, parent, percolate, replication, timestamp, ttl parameters are gone
  • indices
    • 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 parameter
  • search: 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 and upgrade_test.
  • watcher: restart endpoint is gone.

7.5.0-pre

21 Feb 15:42
Compare
Choose a tag to compare
7.5.0-pre Pre-release
Pre-release

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

21 Jan 15:38
Compare
Choose a tag to compare
  • 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

05 Nov 12:15
Compare
Choose a tag to compare

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

DSL v0.1.9

05 Nov 12:22
Compare
Choose a tag to compare

DSL

7.3.0

01 Aug 15:13
Compare
Choose a tag to compare

This version supports Elasticsearch server version 7.3.0.
It has the following changes:

Client

  • Add note to readme about the default port value
  • Add note about exception to default port rule when connecting using Elastic Cloud ID
  • Cluster name is variable in cloud id

XPACK

  • Support allow_no_match parameter in stop_data_frame_transform
  • Add allow_no_match to get_data_frame_transform API
  • Add missing headers
  • Support get_builtin_privileges API
  • Update tests for changed xpack paths
  • test:integration task in xpack gem shouldn't do anything in favor of test:rest_api

7.2.1

25 Jul 15:11
Compare
Choose a tag to compare

This release has a single change:

  • Cluster name is variable in cloud id. See the follow for issue details: #690

7.2.0

26 Jun 13:41
Compare
Choose a tag to compare

This client version supports Elasticsearch server version 7.2.0

Notable changes include the addition of the User-Agent header and support for compression with the compression: true option on a client.

Client

  • Support User-Agent header client team specification
  • Improve code handling headers
  • Handle headers when using JRuby and Manticore
  • Rename method for clarity
  • Test selecting connections using multiple threads
  • Synchronize access to the connections collection and mutation of @current instance variable
  • Fix specs for selecting a connection
  • Further fixes to specs for testing selecting connections in parallel
  • Support providing a cloud id
  • Allow a port to be set with a Cloud id and use default if no port is provided
  • Remove unnecessary check for cloud_id when setting default port
  • Add documentation for creating client with cloud_id
  • Allow compression with Faraday and supported http adapters
  • Put development gem dependencies in gemspec
  • No reason to use ! for decompress method name
  • Check for the existence of headers before checking headers
  • Apply compression headers manually based on general :compression option
  • Use GZIP constant
  • Group tests into their transport adapters
  • Support compression when using Curb adapter
  • Support compression when using Manticore adapter with JRuby
  • Fix Curb unit test, expecting headers to be merged and not set
  • Update test descriptions for compression settings
  • Add documentation of 'compression' option on client
  • Improve client documentation for compression option
  • Centralize header handling into one method
  • Only add Accept-Encoding header if compression option is true

API

  • Use rewritten test harness from XPACK for rest API tests
  • Include skipped tests and further updates
  • Delete all repositories and snapshots in a method
  • Further updates to the rest API test runner
  • Add erroneously removed constants and gems
  • Updates to rest api yaml rspec tasks
  • The get_source endpoint should raise an error if the resource is not found
  • Rename method to clear data in tests and consolidate tasks into one method
  • Update api for 7.2