Skip to content

Commit f882d48

Browse files
[8.0] Add 8.0.0 release notes to elastic.co/guide
Co-authored-by: Seth Michael Larson <[email protected]>
1 parent fd191ba commit f882d48

File tree

1 file changed

+116
-0
lines changed

1 file changed

+116
-0
lines changed

docs/guide/release-notes.asciidoc

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[[release-notes]]
22
== Release notes
33

4+
* <<rn-8-0-0>>
45
* <<rn-7-17-0>>
56
* <<rn-7-16-3>>
67
* <<rn-7-16-2>>
@@ -37,12 +38,127 @@
3738
* <<rn-7-0-0>>
3839

3940

41+
[discrete]
42+
[[rn-8-0-0]]
43+
=== 8.0.0 (2022-02-10)
44+
45+
[discrete]
46+
==== Added
47+
48+
- Added the top-level `.options()` method to `Elasticsearch` and `AsyncElasticsearch` for modifying transport options.
49+
- Added parameters corresponding to JSON request body fields for all APIs
50+
- Added `basic_auth` parameter for specifying username and password authentication
51+
- Added `bearer_auth` parameter for specifying an HTTP bearer token or service token
52+
- Added the `meta` property to `ApiError` to access the HTTP response metadata of an error.
53+
- Added a check that a compatible version of the `elastic-transport` package is installed.
54+
55+
[discrete]
56+
==== Changed
57+
58+
- Changed the transport layer to use the `elastic-transport` package
59+
- Changed user-defined `body` parameters to have semantic names (e.g `index(document={...})` instead of `index(body={...})`).
60+
- Changed responses to be objects with two properties, `meta` for response metadata (HTTP status, headers, node, etc) and `body` for a typed body.
61+
- Changed `AsyncElasticsearch` to always be available, regardless of whether `aiohttp` is installed
62+
- Changed exception hierarchy, the major change is a new exception `ApiError` which differentiates between an error that's raised from the transport layer (previously `elasticsearch.exceptions.TransportError`, now `elastic_transport.TransportError`) and one raised from the API layer
63+
- Changed the name of `JSONSerializer` to `JsonSerializer` for consistency with other serializer names. Added an alias to the old name for backwards compatibility
64+
- Changed the default mimetypes (`application/json`) to instead use compatibility mimetypes (`application/vnd.elasticsearch+json`) which always request for responses compatibility with version 8.x.
65+
66+
[discrete]
67+
==== Removed
68+
69+
- Removed support for Python 2.7 and Python 3.5, the library now supports only Python 3.6+
70+
- Removed the `elasticsearch.connection` module as all functionality has been moved to the `elastic-transport` package
71+
- Removed the default URL of `http://localhost:9200` due to Elasticsearch 8.0 default configuration being `https://localhost:9200`.
72+
The client's connection to Elasticsearch now must be specified with scheme, host, and port or with the `cloud_id` parameter
73+
- Removed the ability to use positional arguments with API methods. Going forward all API parameters must be keyword-only parameters
74+
- Removed the `doc_type`, `include_type_name`, and `copy_settings` parameters from many document and index APIs
75+
76+
[discrete]
77+
==== Deprecated
78+
79+
- Deprecated the `body` and `params` parameters on all APIs
80+
- Deprecated setting transport options `http_auth`, `api_key`, `ignore`, `request_timeout`, `headers`, and `opaque_id`
81+
All of these settings should instead be set via the `.options()` method
82+
- Deprecated the `elasticsearch.transport` and `elasticsearch.client` modules. These modules will be removed in a future version
83+
84+
[discrete]
85+
==== CAT
86+
87+
- Removed the deprecated `local` parameter from the `cat.indices`, `cat.nodes`, `cat.shards` API
88+
- Removed the deprecated `allow_no_datafeeds` parameter from the `cat.ml_datafeeds` API
89+
- Removed the deprecated `allow_no_jobs` parameter from the `cat.ml_jobs` API
90+
- Removed the deprecated `size` parameter from the `cat.thread_pool` API
91+
- Added the `time` parameter to the `cat.thread_pool` API
92+
93+
[discrete]
94+
==== Documents
95+
96+
- Removed the deprecated `size` parameter from the `delete_by_query` API
97+
- Removed the deprecated `size` parameter from the `update_by_query` API
98+
99+
[discrete]
100+
==== Indices
101+
102+
- Removed the deprecated `indices.flush_synced` API
103+
- Removed the deprecated `indices.freeze` API
104+
- Removed the deprecated `indices.get_upgrade` API
105+
- Removed the deprecated `indices.upgrade` API
106+
- Removed the deprecated `indices.exist_type` API
107+
- Removed the deprecated parameter `copy_settings` from the `indices.shrink` API
108+
- Deprecated the `verbose` parameter of the `indices.segments` API
109+
110+
[discrete]
111+
==== License / X-Pack
112+
113+
- Deprecated the `accept_enterprise` parameter of the `license.get` API
114+
- Deprecated the `accept_enterprise` parameter of the `xpack.info` API
115+
116+
[discrete]
117+
==== Machine Learning
118+
119+
- Added the **experimental** `ml.infer_trained_model_deployment` API
120+
- Added the **experimental** `ml.put_trained_model_definition_part` API
121+
- Added the **experimental** `ml.put_trained_model_vocabulary` API
122+
- Added the **experimental** `ml.start_trained_model_deployment` API
123+
- Added the **experimental** `ml.stop_trained_model_deployment` API
124+
- Added the `timeout` parameter to the `ml.delete_trained_model` API
125+
- Removed the deprecated `allow_no_jobs` parameter from the `ml.close_job` API
126+
- Removed the deprecated `ml.find_text_structure` API
127+
- Removed the deprecated `allow_no_datafeeds` parameter from the `ml.get_datafeed_stats` API
128+
- Removed the deprecated `allow_no_datafeeds` parameter from the `ml.get_datafeeds` API
129+
- Removed the deprecated `allow_no_jobs` parameter from the `ml.get_job_stats` API
130+
- Removed the deprecated `allow_no_jobs` parameter from the `ml.get_jobs` API
131+
- Removed the deprecated `allow_no_jobs` parameter from the `ml.get_overall_buckets` API
132+
133+
[discrete]
134+
==== Search
135+
136+
- Added the **experimental** `knn_search` API
137+
138+
[discrete]
139+
==== Searchable Snapshots
140+
141+
- Removed the deprecated `searchable_snapshots.repository_stats` API
142+
143+
[discrete]
144+
==== Snapshots
145+
146+
- Changed the `snapshot.delete` API to accept multiple snapshots
147+
148+
[discrete]
149+
==== Security
150+
151+
- Added the `security.enroll_kibana` API
152+
- Added the `security.enroll_node` API
153+
154+
40155
[discrete]
41156
[[rn-7-17-0]]
42157
=== 7.17.0 (2022-02-01)
43158

44159
* Client is compatible with Elasticsearch 7.17.0
45160

161+
46162
[discrete]
47163
[[rn-7-16-3]]
48164
=== 7.16.3 (2022-01-13)

0 commit comments

Comments
 (0)