Releases: elastic/elasticsearch-py
Releases · elastic/elasticsearch-py
7.13.0
Client
Added
- Added support for compatibility header for Elasticsearch. If the environment variable
ELASTIC_CLIENT_APIVERSIONING=1is 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_segmentsparameter to thecat.nodesAPI
Snapshot Features
- Added the
features.reset_featuresexperimental API
Fleet
- Added the
fleet.global_checkpointsexpiremental API
Ingest
- Added the
ingest.geo_ip_statsAPI
Machine Learning
- Added the
ml.delete_trained_model_aliasAPI - Added the
ml.preview_data_frame_analyticsAPI - Added the
ml.put_trained_model_aliasAPI - 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_analyticsAPIs from beta to stable.
Nodes
- Added
include_unloaded_segmentsparameter tonode.statsAPI
Searchable Snapshots
- Added the
searchable_snapshots.cache_statsexperimental API
Security
- Added the
security.clear_cached_service_tokensbeta API - Added the
security.create_service_tokenbeta API - Added the
security.delete_service_tokenbeta API - Added the
security.get_service_accountsbeta API - Added the
security.get_service_credentialsbeta API
Shutdown
- Added the
shutdown.delete_nodeexperiemental API - Added the
shutdown.get_nodeexperimental API - Added the
shutdown.put_nodeexperimental API
Snapshots
- Added the
index_detailsparameter tosnapshot.getAPI
Text Structure
- Changed the
text_structure.find_structureAPI from experimental to stable
7.12.1
APIs
Text Structure
- Changed the
text_structure.find_text_structureAPI from experimental to stable
7.12.0
APIs
Autoscaling
- Changed
autoscaling.delete_autoscaling_policy,autoscaling.get_autoscaling_policy, andautoscaling.put_autoscaling_policyAPIs from experimental to stable
EQL
- Added
eql.get_statusAPI
Logash
- Added
logstash.delete_pipeline,logstash.get_pipeline, andlogstash.put_pipelineAPIs
Machine Learning
- Removed the experimental
ml.find_text_structureAPI
Searchable Snapshots
- Added
storageparameter to thesearchable_snapshots.mountAPI - Added
levelparameter to thesearchable_snapshots.statsAPI
Search
- Added the
min_compatible_shard_nodeparameter tosearch()
Text Structure
- Added experimental
text_structure.find_text_structureAPI
7.11.0
Client
Added
- Added the
X-Elastic-Client-MetaHTTP header and themeta_headerparameter for controlling the header (#1473) - Added
ElasticsearchWarningwhich is raised when theWarningHTTP header is returned from Elasticsearch.ElasticsearchDeprecationWarningis now an alias for this warning type (#1495)
APIs
Async Search
- Added the
async_search.statusAPI
Autoscaling
- Added the
autoscaling.get_autoscaling_capacityexperimental API - Removed the
autoscaling.get_autoscaling_decisionexperimental API
Cat
- Changed
cat.tasksAPI parametersnode_idandparent_tasktonodesandparent_task_id
Cluster
- Changed
cluster.delete_component_template,cluster.exists_component_template, andcluster.get_component_template,
cluster.put_component_templateAPIs from experimental to stable
EQL
- Changed
eql.delete,eql.get,eql.searchAPIs from beta to stable
Indices
- Added
indices.migrate_to_data_streamAPI - Added
indices.promote_data_streamAPI - Added
expand_wildcardsparameter to theindices.delete_data_streamandindices.get_data_streamAPIs - Changed
indices.delete_index_template,indices.exists_index_template,indices.get_index_template,indices.put_index_template,indices.simulate_index_template, andindices.simulate_templateAPIs moved from experimental to stable
Machine Learning
- Added
ml.upgrade_job_snapshotAPI - Added
exclude_generatedparameter toml.get_data_frame_analytics,ml.get_datafeeds,ml.get_jobs, andml.get_trained_modelsAPIs - 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_analyticsAPIs from experimental to beta
Rollup
- Added
rollup.rollupAPI
Transform
- Added
exclude_generatedparameter totransform.get_transformAPI
Watcher
- Added
watcher.query_watchesAPI
7.11.0-beta1
Client
Added
- Added the
X-Elastic-Client-MetaHTTP header and themeta_headerparameter for controlling the header (#1473) - Added
ElasticsearchWarningwhich is raised when theWarningHTTP header is returned from Elasticsearch.ElasticsearchDeprecationWarningis now an alias for this warning type (#1495)
APIs
Async Search
- Added the
async_search.statusAPI
Autoscaling
- Added the
autoscaling.get_autoscaling_capacityexperimental API - Removed the
autoscaling.get_autoscaling_decisionexperimental API
Cat
- Changed
cat.tasksAPI parametersnode_idandparent_tasktonodesandparent_task_id
Cluster
- Changed
cluster.delete_component_template,cluster.exists_component_template, andcluster.get_component_template,
cluster.put_component_templateAPIs from experimental to stable
EQL
- Changed
eql.delete,eql.get,eql.searchAPIs from beta to stable
Indices
- Added
indices.migrate_to_data_streamAPI - Added
indices.promote_data_streamAPI - Added
expand_wildcardsparameter to theindices.delete_data_streamandindices.get_data_streamAPIs - Changed
indices.delete_index_template,indices.exists_index_template,indices.get_index_template,indices.put_index_template,indices.simulate_index_template, andindices.simulate_templateAPIs moved from experimental to stable
Machine Learning
- Added
ml.upgrade_job_snapshotAPI - Added
exclude_generatedparameter toml.get_data_frame_analytics,ml.get_datafeeds,ml.get_jobs, andml.get_trained_modelsAPIs - 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_analyticsAPIs from experimental to beta
Rollup
- Added
rollup.rollupAPI
Transform
- Added
exclude_generatedparameter totransform.get_transformAPI
Watcher
- Added
watcher.query_watchesAPI
7.10.1
Client
Fixed
- Fixed issue where the Scan helper would fail if a
scrollresponse returned without a value for_shards.skipped(#1451) - Fixed handling of IPv6 hosts with a port in the computed
Connection.hostproperty (#1460) - Fixed documented task management API stability, should have been "experimental" (#1471)
Changed
- Changed deprecated
collections.Mappingin favor ofcollections.abc.Mappingfor 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
_sourcewith"_op_type": "update"bulk helpers (#1387) - Added API stability to doc-strings of API methods and documentation (#1410)
Removed
- Removed explicit
yarldependency 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_timeoutwas used instead ofsniffer_timeout(#1431, contributed by @HarrySky)
Basic APIs
Snapshot
- Added
snapshot.clonemethod
Index
- Added
require_aliasparameter to multiple index APIs
X-Pack APIs
Point in Time
- Added
close_point_in_timeandopen_point_in_timemethods
Security
- Added
security.clear_api_key_cacheandsecurity.grant_api_keymethods
Machine Learning
- Deprecated
allow_no_jobsparameter ofcat.ml_jobsandml.close_job,ml.get_job_stats,ml.get_jobs,ml.get_overall_bucketsmethods in favor ofallow_no_matchparameter - Deprecated
allow_no_datafeedsparameter ofml.get_datafeed_stats,ml.get_datafeeds,ml.stop_datafeedin favor ofallow_no_matchparameter - Deprecated
include_model_definitionparameter ofml.get_trained_modelsmethod in favor ofincludeparameter
7.10.0-alpha2
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
_sourcewith"_op_type": "update"bulk helpers (#1387)
Removed
- Removed explicit
yarldependency 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)
7.10.0-alpha1
Added
- Added support for Elasticsearch 7.10 APIs
- Added basic type stubs for static type checking and IDE auto-complete of API parameters (#1297)
- Added support for Optimistic Concurrency Control options (
_if_seq_no/_if_primary_term) to bulk helpers (#1387) - Added support for passing
_sourcewith"_op_type": "update"bulk helpers (#1387)
Removed
- Removed explicit
yarldependency 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)