Skip to content

Releases: elastic/elasticsearch-py

9.3.0

03 Feb 20:28
v9.3.0
adae2d6

Choose a tag to compare

Enhancements

  • Add pack_dense_vector helper function to pack dense vectors for efficient uploading (#3219)
  • New and updated ES|QL functions in the ES|QL query builder for 9.3 and Serverless (#3266)

API

  • Added cat.circuit_breaker API
  • Added experimental esql.get_view, esql.put_view and esql.delete_view APIs
  • Added experimental indices.get_sample_configuration, indices.put_sample_configuration, indices.delete_sample_configuration, indices.get_all_sample_configuration, indices.get_sample, indices.get_sample_stats APIs
  • Added inference.put_groq, inference.put_openshift_ai, inference.put_nvidia APIs
  • Added downsampling_method argument to indices.put_data_lifecycle API
  • Added return_documents and top_n arguments to inference.rerank API
  • Added close_job argument to ml.stop_datafeed API
  • Added certificate_identity to security.create_cross_cluster_api_key and security.update_cross_cluster_api_key APIs

Serverless-specific

  • Added project_routing argument to project.tags API

DSL

  • Added NumpyDenseVector field, with support for dense vectors based on numpy arrays (#3218)
  • Added ExponentialHistogram field
  • Added time_series_metric argument to Histogram field
  • Added on_disk_rescore argument from DenseVectorIndexOptions type
  • Added slices argument to UpdateByQueryResponse type

9.1.3

12 Jan 16:36
v9.1.3
9532aac

Choose a tag to compare

Enhancements

  • Instrument ping with OTel (#3160)
  • Make positional arguments in DSL generated classes explicit (#3233)
  • Add warnings for private APIs (#3212)

Bug fixes

  • ES|QL query builder: fix missing assignment (#3151)
  • Use relative imports to fix elasticsearch9 package imports (#3232)

API

  • Added transform.get_node_stats API
  • Added requests_per_second argument to delete_by_query_rethrottle, reindex_rethrottle and update_by_query_rethrottle APIs
  • Added allow_closed, allow_no_indices, expand_wildcards, ignore_throttled and ignore_available arguments to cat.segments API

DSL

  • Removed index_options argument from SemanticText field class
  • Removed visit_percentage argument from Knn query class

9.0.5

12 Jan 16:36
v9.0.5
9ee1814

Choose a tag to compare

  • ES|QL query builder: fix missing assignment (#3151)

9.2.1

23 Dec 14:38
v9.2.1
2022b70

Choose a tag to compare

Enhancements

  • Instrument ping with OTel (#3160)
  • Make positional arguments in DSL generated classes explicit (#3233)
  • Add warnings for private APIs (#3212)

Bug fixes

  • ES|QL query builder: fix missing assignment (#3151)
  • Use relative imports to fix elasticsearch9 package imports (#3232)

API

  • Added transform.get_node_stats API
  • Added requests_per_second argument to delete_by_query_rethrottle, reindex_rethrottle and update_by_query_rethrottle APIs
  • Added allow_closed, allow_no_indices, expand_wildcards, ignore_throttled and ignore_available arguments to cat.segments API
  • Added chunking_settings argument to inference.put_watsonxai API
  • Added id argument to ml.stop_trained_model_deployment API
  • Removed chunking_settings argument from inference.put_anthropic, inference.put_contextualai, inference.put_deepseek APIs

8.19.3

23 Dec 12:57
v8.19.3
c686c6a

Choose a tag to compare

Enhancements

  • Instrument ping with OTel (#3160)
  • Add warnings for private APIs (#3212)
  • Make positional arguments in DSL generated classes explicit (#3233)

Bug fixes

  • ES|QL query builder: fix missing assignment (#3151)
  • Use relative imports to fix elasticsearch9 package imports (#3232)

API

  • Added indices.delete_data_stream_options, indices.get_data_stream_options and indices.put_data_stream_options APIs
  • Added transform.get_node_stats API
  • Added requests_per_second argument to delete_by_query_rethrottle, reindex_rethrottle and update_by_query_rethrottle APIs
  • Added allow_closed, allow_no_indices, expand_wildcards, ignore_throttled and ignore_available arguments to cat.segments API
  • Added id argument to ml.stop_trained_model_deployment API

9.2.0

28 Oct 17:08
v9.2.0
03bef1e

Choose a tag to compare

Breaking change

DSL module is incompatible with Elasticsearch 9.0

Due to a change in how Elasticsearch 9.2 returns vectors, the DSL module in the Elasticsearch Python client 9.2.0 includes the exclude_vectors option in all search requests executed from a Document or AsyncDocument class. Because the exclude_vectors option does not exist in Elasticsearch 9.0, document queries issued with 9.2.0 or newer versions of the Elasticsearch Python client require a 9.1.0 or newer Elasticsearch server.

Enhancements

  • Support Trio when using the HTTPX async client (#3089)
  • Pydantic integration for the DSL module (#3086)
  • Add flush_after_seconds option to streaming_bulk() (#3064)
  • Add TS, FUSE and INLINE STATS commands to the ES|QL query builder (#3096)

Bug Fixes

  • DSL: support passing inner documents as AttrDict instances (#3080)
  • DSL: add some recently added field classes as top-level exports for the package (#3078)

API

  • Add streams namespace with streams.logs_disable, streams.logs_enable, streams.status APIs
  • Add inference.contextualai API
  • Add security.get_stats API
  • Add bytes and time parameters to various APIs in the cat namespace.
  • Add include_execution_metadata parameter to esql.async_query and esql.query APIs
  • Add index_template parameter to indices.simulate_index_template API
  • Add input_type parameter to inference.text_embedding API
  • Add field_access_pattern parameter to ingest.put_pipeline API
  • Removed unsupported size parameter from reindex API

Serverless-specific

  • Add project namespace with project.tags API
  • Add project_routing parameter to count, field_caps, msearch, msearch_template, open_point_in_time, search, search_mvt, search_template, async_search.submit, cat.count, eql.search, indices.resolve_index, sql.query APIs

DSL

  • New CartesianBounds, CartesianCentroid, ChangePoint aggregations
  • Add p_value parameter to SignificantTerms aggregation
  • Add fields parameter to SemanticText field
  • Add visit_percentage parameter to Knn query
  • Add sparse_vector field to SemanticTextIndexOptions type

Other

  • Add 3.14 to CI builds (#3103)
  • Drop Python 3.9 support (#3114)

9.1.2

28 Oct 17:08
v9.1.2
23bb050

Choose a tag to compare

Enhancements

  • Add flush_after_seconds option to streaming_bulk() (#3064)

Bug Fixes

  • DSL: support passing inner documents as AttrDict instances (#3080)
  • DSL: add some recently added field classes as top-level exports for the package (#3078)

API

  • Add streams namespace with streams.logs_disable, streams.logs_enable, streams.status APIs
  • Add bytes and time parameters to various APIs in the cat namespace.
  • Add index_template parameter to indices.simulate_index_template API
  • Add input_type parameter to inference.text_embedding API

DSL

  • New CartesianBounds, CartesianCentroid, ChangePoint aggregations
  • Add p_value parameter to SignificantTerms aggregation
  • Add index_options and fields parameters to SemanticText field
  • Add visit_percentage parameter to Knn query
  • Add on_disk_rescore field to DenseVectorIndexOptions type

Other

  • Add 3.14 to CI builds (#3103)dd

8.19.2

28 Oct 17:08
v8.19.2
8ebfd44

Choose a tag to compare

Enhancements

  • Add flush_after_seconds option to streaming_bulk() (#3064)

Bug Fixes

  • DSL: support passing inner documents as AttrDict instances (#3080)
  • DSL: add some recently added field classes as top-level exports for the package (#3078)

API

  • Add streams namespace with streams.logs_disable, streams.logs_enable, streams.status APIs
  • Add indices.get_data_stream_settings API
  • Add indices.put_data_stream_settings API
  • Add bytes and time parameters to various APIs in the cat namespace.
  • Add index_template parameter to indices.simulate_index_template API
  • Add input_type parameter to inference.text_embedding API
  • Removed unsupported size parameter from reindex API

DSL

  • New CartesianBounds, CartesianCentroid, ChangePoint aggregations
  • Add p_value parameter to SignificantTerms aggregation
  • Add fields parameter to SemanticText field

Other

  • Add 3.14 to CI builds (#3103)

9.1.1

12 Sep 13:28
v9.1.1
f92da62

Choose a tag to compare

Enhancements and Fixes

  • ES|QL query builder integration with the DSL module (#3058)
  • ES|QL query builder robustness fixes (#3017)
  • Fix ES|QL multi_match() signature (#3052)

API

  • Add support for ES|QL query builder objects to ES|QL Query and Async Query APIs
  • Add Transform Set Upgrade Mode API
  • Fix type of fields parameter of Term Vectors API to array of strings
  • Fix type of params parameter of SQL Query API to array

DSL

  • Preserve the skip_empty setting in to_dict() recursive serializations (#3041)
  • Add separator_group and separators attributes to ChunkingSettings type
  • Add primary attribute to ShardFailure type
  • Fix type of key attribute of ArrayPercentilesItem to float

9.0.4

12 Sep 13:24
v9.0.4
d281593

Choose a tag to compare

Enhancements and Fixes

  • ES|QL query builder integration with the DSL module (#3058)
  • ES|QL query builder robustness fixes (#3017)
  • Fix ES|QL multi_match() signature (#3052)

API

  • Add support for ES|QL query builder objects to ES|QL Query and Async Query APIs
  • Add Transform Set Upgrade Mode API
  • Fix type of fields parameter of Term Vectors API to array of strings
  • Fix type of params parameter of SQL Query API to array

DSL

  • Preserve the skip_empty setting in to_dict() recursive serializations (#3041)
  • Add primary attribute to ShardFailure type
  • Fix type of key attribute of ArrayPercentilesItem to float