Releases: elastic/elasticsearch-py
Releases · elastic/elasticsearch-py
7.13.3
Client
Fixed
NameError
would be raised on Python 2.7 and 3.4 when a connection error would have otherwise been raised.
7.13.2
Client
Fixed
Transport.perform_request()
now properly reraisesRecursionError
(Contributed by @hmilkovi)AIOHttpConnection
no longer sendsAccept-Encoding: gzip, deflate
whenhttp_compress=None
.
Instead now sends noAccept-Encoding
header.
APIs
Snapshot
- Added the
snapshot.repository_analyze
API
7.13.1
Client
- Client is compatible with Elasticsearch 7.13.1
7.13.0
Client
Added
- Added support for compatibility header for Elasticsearch. If the environment variable
ELASTIC_CLIENT_APIVERSIONING=1
is set the client will send the headers Accept and Content-Type with the following value:application/vnd.elasticsearch+json;compatible-with=7
.
APIs
Cat
- Added the
include_unloaded_segments
parameter to thecat.nodes
API
Snapshot Features
- Added the
features.reset_features
experimental API
Fleet
- Added the
fleet.global_checkpoints
expiremental API
Ingest
- Added the
ingest.geo_ip_stats
API
Machine Learning
- Added the
ml.delete_trained_model_alias
API - Added the
ml.preview_data_frame_analytics
API - Added the
ml.put_trained_model_alias
API - Changed the
ml.delete_data_frame_analytics
,ml.delete_trained_model
,ml.explain_data_frame_analytics
,ml.get_data_fram_analytics
,ml.get_data_frame_analytics_stats
,ml.get_trained_models
,ml.get_trained_models_stats
,ml.put_trained_model
,ml.start_data_frame_analytics
,ml.stop_data_frame_analytics
,ml.update_data_frame_analytics
APIs from beta to stable.
Nodes
- Added
include_unloaded_segments
parameter tonode.stats
API
Searchable Snapshots
- Added the
searchable_snapshots.cache_stats
experimental API
Security
- Added the
security.clear_cached_service_tokens
beta API - Added the
security.create_service_token
beta API - Added the
security.delete_service_token
beta API - Added the
security.get_service_accounts
beta API - Added the
security.get_service_credentials
beta API
Shutdown
- Added the
shutdown.delete_node
experiemental API - Added the
shutdown.get_node
experimental API - Added the
shutdown.put_node
experimental API
Snapshots
- Added the
index_details
parameter tosnapshot.get
API
Text Structure
- Changed the
text_structure.find_structure
API from experimental to stable
7.12.1
APIs
Text Structure
- Changed the
text_structure.find_text_structure
API from experimental to stable
7.12.0
APIs
Autoscaling
- Changed
autoscaling.delete_autoscaling_policy
,autoscaling.get_autoscaling_policy
, andautoscaling.put_autoscaling_policy
APIs from experimental to stable
EQL
- Added
eql.get_status
API
Logash
- Added
logstash.delete_pipeline
,logstash.get_pipeline
, andlogstash.put_pipeline
APIs
Machine Learning
- Removed the experimental
ml.find_text_structure
API
Searchable Snapshots
- Added
storage
parameter to thesearchable_snapshots.mount
API - Added
level
parameter to thesearchable_snapshots.stats
API
Search
- Added the
min_compatible_shard_node
parameter tosearch()
Text Structure
- Added experimental
text_structure.find_text_structure
API
7.11.0
Client
Added
- Added the
X-Elastic-Client-Meta
HTTP header and themeta_header
parameter for controlling the header (#1473) - Added
ElasticsearchWarning
which is raised when theWarning
HTTP header is returned from Elasticsearch.ElasticsearchDeprecationWarning
is now an alias for this warning type (#1495)
APIs
Async Search
- Added the
async_search.status
API
Autoscaling
- Added the
autoscaling.get_autoscaling_capacity
experimental API - Removed the
autoscaling.get_autoscaling_decision
experimental API
Cat
- Changed
cat.tasks
API parametersnode_id
andparent_task
tonodes
andparent_task_id
Cluster
- Changed
cluster.delete_component_template
,cluster.exists_component_template
, andcluster.get_component_template
,
cluster.put_component_template
APIs from experimental to stable
EQL
- Changed
eql.delete
,eql.get
,eql.search
APIs from beta to stable
Indices
- Added
indices.migrate_to_data_stream
API - Added
indices.promote_data_stream
API - Added
expand_wildcards
parameter to theindices.delete_data_stream
andindices.get_data_stream
APIs - Changed
indices.delete_index_template
,indices.exists_index_template
,indices.get_index_template
,indices.put_index_template
,indices.simulate_index_template
, andindices.simulate_template
APIs moved from experimental to stable
Machine Learning
- Added
ml.upgrade_job_snapshot
API - Added
exclude_generated
parameter toml.get_data_frame_analytics
,ml.get_datafeeds
,ml.get_jobs
, andml.get_trained_models
APIs - Changed
ml.delete_data_frame_analytics
,ml.delete_trained_model
,ml.explain_data_frame_analytics
,ml.get_data_frame_analytics
,ml.get_data_frame_analytics_stats
,ml.get_trained_models
,ml.get_trained_models_stats
,ml.put_data_frame_analytics
,ml.put_trained_model
,ml.start_data_frame_analytics
,ml.stop_data_frame_analytics
,ml.update_data_frame_analytics
APIs from experimental to beta
Rollup
- Added
rollup.rollup
API
Transform
- Added
exclude_generated
parameter totransform.get_transform
API
Watcher
- Added
watcher.query_watches
API
7.11.0-beta1
Client
Added
- Added the
X-Elastic-Client-Meta
HTTP header and themeta_header
parameter for controlling the header (#1473) - Added
ElasticsearchWarning
which is raised when theWarning
HTTP header is returned from Elasticsearch.ElasticsearchDeprecationWarning
is now an alias for this warning type (#1495)
APIs
Async Search
- Added the
async_search.status
API
Autoscaling
- Added the
autoscaling.get_autoscaling_capacity
experimental API - Removed the
autoscaling.get_autoscaling_decision
experimental API
Cat
- Changed
cat.tasks
API parametersnode_id
andparent_task
tonodes
andparent_task_id
Cluster
- Changed
cluster.delete_component_template
,cluster.exists_component_template
, andcluster.get_component_template
,
cluster.put_component_template
APIs from experimental to stable
EQL
- Changed
eql.delete
,eql.get
,eql.search
APIs from beta to stable
Indices
- Added
indices.migrate_to_data_stream
API - Added
indices.promote_data_stream
API - Added
expand_wildcards
parameter to theindices.delete_data_stream
andindices.get_data_stream
APIs - Changed
indices.delete_index_template
,indices.exists_index_template
,indices.get_index_template
,indices.put_index_template
,indices.simulate_index_template
, andindices.simulate_template
APIs moved from experimental to stable
Machine Learning
- Added
ml.upgrade_job_snapshot
API - Added
exclude_generated
parameter toml.get_data_frame_analytics
,ml.get_datafeeds
,ml.get_jobs
, andml.get_trained_models
APIs - Changed
ml.delete_data_frame_analytics
,ml.delete_trained_model
,ml.explain_data_frame_analytics
,ml.get_data_frame_analytics
,ml.get_data_frame_analytics_stats
,ml.get_trained_models
,ml.get_trained_models_stats
,ml.put_data_frame_analytics
,ml.put_trained_model
,ml.start_data_frame_analytics
,ml.stop_data_frame_analytics
,ml.update_data_frame_analytics
APIs from experimental to beta
Rollup
- Added
rollup.rollup
API
Transform
- Added
exclude_generated
parameter totransform.get_transform
API
Watcher
- Added
watcher.query_watches
API
7.10.1
Client
Fixed
- Fixed issue where the Scan helper would fail if a
scroll
response returned without a value for_shards.skipped
(#1451) - Fixed handling of IPv6 hosts with a port in the computed
Connection.host
property (#1460) - Fixed documented task management API stability, should have been "experimental" (#1471)
Changed
- Changed deprecated
collections.Mapping
in favor ofcollections.abc.Mapping
for Python 3.9 (#1443)
7.10.0
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