Client
Added
- Added support for Elasticsearch 7.10 APIs
- Added basic type stubs for static type checking and IDE auto-complete of API parameters (#1297, #1406)
- Added support for Optimistic Concurrency Control options (
_if_seq_no
/_if_primary_term
) to bulk helpers (#1387) - Added support for passing
_source
with"_op_type": "update"
bulk helpers (#1387) - Added API stability to doc-strings of API methods and documentation (#1410)
Removed
- Removed explicit
yarl
dependency from[async]
extra to avoid issue where pip would overrideaiohttp
's pin ofyarl
. This was not a problem if you install with--use-feature=2020-resolver
. Users should see no changes. (#1401)
Fixed
- Fixed bug where
Connection.log_request_failure()
call would receive the compressed HTTP body rather than uncompressed when an error is raised forRequestsHttpConnection
(#1394) - Fixed a typo in AsyncTransport where
sniff_timeout
was used instead ofsniffer_timeout
(#1431, contributed by @HarrySky)
Basic APIs
Snapshot
- Added
snapshot.clone
method
Index
- Added
require_alias
parameter to multiple index APIs
X-Pack APIs
Point in Time
- Added
close_point_in_time
andopen_point_in_time
methods
Security
- Added
security.clear_api_key_cache
andsecurity.grant_api_key
methods
Machine Learning
- Deprecated
allow_no_jobs
parameter ofcat.ml_jobs
andml.close_job
,ml.get_job_stats
,ml.get_jobs
,ml.get_overall_buckets
methods in favor ofallow_no_match
parameter - Deprecated
allow_no_datafeeds
parameter ofml.get_datafeed_stats
,ml.get_datafeeds
,ml.stop_datafeed
in favor ofallow_no_match
parameter - Deprecated
include_model_definition
parameter ofml.get_trained_models
method in favor ofinclude
parameter