Skip to content

Commit 3362dae

Browse files
committed
Release 7.6.0
1 parent 021d041 commit 3362dae

File tree

7 files changed

+66
-9
lines changed

7 files changed

+66
-9
lines changed

CHANGELOG.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,60 @@
1+
## 7.6.0
2+
3+
### Client
4+
5+
- Support for Elasticsearch version `7.6`.
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.
7+
8+
#### API Key Support
9+
The client now supports API Key Authentication, check "Authentication" on the [transport README](https://github.com/elastic/elasticsearch-ruby/tree/7.x/elasticsearch-transport#authentication) for information on how to use it.
10+
11+
#### X-Opaque-Id Support
12+
13+
The client now supports identifying running tasks with X-Opaque-Id. Check [transport README](https://github.com/elastic/elasticsearch-ruby/tree/7.x/elasticsearch-transport#identifying-running-tasks-with-x-opaque-id) for information on how to use X-Opaque-Id.
14+
15+
#### Faraday migrated to 1.0
16+
17+
We're now using version 1.0 of Faraday:
18+
- The client initializer was modified but this should not disrupt final users at all, check [this commit](https://github.com/elastic/elasticsearch-ruby/commit/0fdc6533f4621a549a4cb99e778bbd827461a2d0) for more information.
19+
- Migrated error checking to remove the deprecated `Faraday::Error` namespace.
20+
- **This change is not compatible with [Typhoeus](https://github.com/typhoeus/typhoeus)**. The latest release is 1.3.1, but it's [still using the deprecated `Faraday::Error` namespace](https://github.com/typhoeus/typhoeus/blob/v1.3.1/lib/typhoeus/adapters/faraday.rb#L100). 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.
21+
- 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.
22+
23+
Reference: [Upgrading - Faraday 1.0](https://github.com/lostisland/faraday/blob/master/UPGRADING.md)
24+
25+
[Pull Request](https://github.com/elastic/elasticsearch-ruby/pull/808)
26+
27+
### API
28+
29+
#### API Changes:
30+
- `cat.indices`: argument `bytes` options were: `b,k,m,g` and are now `b,k,kb,m,mb,g,gb,t,tb,p,pb`.
31+
- `delete_by_query`: New parameter `analyzer` - The analyzer to use for the query string.
32+
- `indices.put_template`: Removed parameters: `timeout`, `flat_settings`.
33+
- `msearch_template`: New Parameter `ccs_minimize_roundtrips` - Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution.
34+
- `rank_eval`: New parameter `search_type` - Search operation type (options: `query_then_fetch,dfs_query_then_fetch`).
35+
- `search_template`: New parameter `ccs_minimize_roundtrips` - Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution.
36+
37+
#### New API endpoints:
38+
- `get_script_context`
39+
- `get_script_languages`
40+
41+
#### Warnings:
42+
Synced flush is deprecated and will be removed in 8.0.
43+
44+
### X-Pack
45+
46+
#### New API endpoints:
47+
- `ml/delete_trained_model`
48+
- `ml/explain_data_frame_analytics`
49+
- `ml/get_trained_models`
50+
- `ml/get_trained_models_stats`
51+
- `ml/put_trained_model`
52+
53+
#### API changes:
54+
- `license/get`: Added parameter `accept_enterprise`.
55+
- `ml/delete_data_frame_analytics` Added parameter `force`.
56+
- `monitoring/bulk` - Removed parameter `system_version`.
57+
158
## 7.5.0
259

360
- Support for Elasticsearch 7.5.

elasticsearch-api/lib/elasticsearch/api/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
module Elasticsearch
66
module API
7-
VERSION = "7.5.0"
7+
VERSION = "7.6.0"
88
end
99
end

elasticsearch-transport/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Currently these libraries will be automatically detected and used:
3737
- [HTTPClient](https://rubygems.org/gems/httpclient)
3838
- [Net::HTTP::Persistent](https://rubygems.org/gems/net-http-persistent)
3939

40-
**Note on [Typhoeus](https://github.com/typhoeus/typhoeus)**: Typhoeus is compatible and will be automatically detected too. However, the latest release (v1.3.1 at the moment of writing this) is not compatible with Faraday 1.0. [It still uses the deprecated `Faraday::Error` namespace](https://github.com/typhoeus/typhoeus/blob/v1.3.1/lib/typhoeus/adapters/faraday.rb#L100). If you want to use it with this gem, we suggest getting `master` from GitHub, since this has been fixed for v1.4.0. We'll update this if/when v1.4.0 is released.a
40+
**Note on [Typhoeus](https://github.com/typhoeus/typhoeus)**: Typhoeus is compatible and will be automatically detected too. However, the latest release (v1.3.1 at the moment of writing this) is not compatible with Faraday 1.0. [It still uses the deprecated `Faraday::Error` namespace](https://github.com/typhoeus/typhoeus/blob/v1.3.1/lib/typhoeus/adapters/faraday.rb#L100). If you want to use it with this gem, we suggest getting `master` from GitHub, since this has been fixed for v1.4.0. We'll update this if/when v1.4.0 is released.
4141

4242
For detailed information, see example configurations [below](#transport-implementations).
4343

@@ -336,8 +336,8 @@ Then, create a new client, and the _Patron_ gem will be used as the "driver":
336336

337337
client = Elasticsearch::Client.new
338338

339-
client.transport.connections.first.connection.builder.handlers
340-
# => [Faraday::Adapter::Patron]
339+
client.transport.connections.first.connection.builder.adapter
340+
# => Faraday::Adapter::Patron
341341

342342
10.times do
343343
client.nodes.stats(metric: 'http')['nodes'].values.each do |n|

elasticsearch-transport/lib/elasticsearch/transport/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
module Elasticsearch
66
module Transport
7-
VERSION = "7.5.0"
7+
VERSION = "7.6.0"
88
end
99
end

elasticsearch-xpack/lib/elasticsearch/xpack/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
module Elasticsearch
66
module XPack
7-
VERSION = "7.5.0"
7+
VERSION = "7.6.0"
88
end
99
end

elasticsearch/elasticsearch.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ Gem::Specification.new do |s|
2727

2828
s.required_ruby_version = '>= 2.4'
2929

30-
s.add_dependency 'elasticsearch-transport', '7.5.0'
31-
s.add_dependency 'elasticsearch-api', '7.5.0'
30+
s.add_dependency 'elasticsearch-transport', '7.6.0'
31+
s.add_dependency 'elasticsearch-api', '7.6.0'
3232

3333
s.add_development_dependency 'bundler'
3434

elasticsearch/lib/elasticsearch/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
# See the LICENSE file in the project root for more information
44

55
module Elasticsearch
6-
VERSION = "7.5.0"
6+
VERSION = "7.6.0"
77
end

0 commit comments

Comments
 (0)