Skip to content

Releases: elastic/elasticsearch-py

7.11.0-beta1

02 Feb 20:03
Compare
Choose a tag to compare
7.11.0-beta1 Pre-release
Pre-release

Client

Added

  • Added the X-Elastic-Client-Meta HTTP header and the meta_header parameter for controlling the header (#1473)
  • Added ElasticsearchWarning which is raised when the Warning 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 parameters node_id and parent_task to nodes and parent_task_id

Cluster

  • Changed cluster.delete_component_template, cluster.exists_component_template, and cluster.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 the indices.delete_data_stream and indices.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, and indices.simulate_template APIs moved from experimental to stable

Machine Learning

  • Added ml.upgrade_job_snapshot API
  • Added exclude_generated parameter to ml.get_data_frame_analytics, ml.get_datafeeds, ml.get_jobs, and ml.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 to transform.get_transform API

Watcher

  • Added watcher.query_watches API

7.10.1

09 Dec 17:27
Compare
Choose a tag to compare

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 of collections.abc.Mapping for Python 3.9 (#1443)

7.10.0

11 Nov 18:05
Compare
Choose a tag to compare

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 override aiohttp's pin of yarl. 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 for RequestsHttpConnection (#1394)
  • Fixed a typo in AsyncTransport where sniff_timeout was used instead of sniffer_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 and open_point_in_time methods

Security

  • Added security.clear_api_key_cache and security.grant_api_key methods

Machine Learning

  • Deprecated allow_no_jobs parameter of cat.ml_jobs and ml.close_job, ml.get_job_stats, ml.get_jobs, ml.get_overall_buckets methods in favor of allow_no_match parameter
  • Deprecated allow_no_datafeeds parameter of ml.get_datafeed_stats, ml.get_datafeeds, ml.stop_datafeed in favor of allow_no_match parameter
  • Deprecated include_model_definition parameter of ml.get_trained_models method in favor of include parameter

7.10.0-alpha2

20 Oct 20:52
Compare
Choose a tag to compare
7.10.0-alpha2 Pre-release
Pre-release

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)

Removed

  • Removed explicit yarl dependency from [async] extra to avoid issue where pip would override aiohttp's pin of yarl. 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 for RequestsHttpConnection (#1394)

7.10.0-alpha1

14 Oct 16:28
Compare
Choose a tag to compare
7.10.0-alpha1 Pre-release
Pre-release

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 _source with "_op_type": "update" bulk helpers (#1387)

Removed

  • Removed explicit yarl dependency from [async] extra to avoid issue where pip would override aiohttp's pin of yarl. 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 for RequestsHttpConnection (#1394)