Releases: elastic/elasticsearch-py
Releases · elastic/elasticsearch-py
9.3.0
Enhancements
- Add
pack_dense_vectorhelper 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_breakerAPI - Added experimental
esql.get_view,esql.put_viewandesql.delete_viewAPIs - 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_statsAPIs - Added
inference.put_groq,inference.put_openshift_ai,inference.put_nvidiaAPIs - Added
downsampling_methodargument toindices.put_data_lifecycleAPI - Added
return_documentsandtop_narguments toinference.rerankAPI - Added
close_jobargument toml.stop_datafeedAPI - Added
certificate_identitytosecurity.create_cross_cluster_api_keyandsecurity.update_cross_cluster_api_keyAPIs
Serverless-specific
- Added
project_routingargument toproject.tagsAPI
DSL
- Added
NumpyDenseVectorfield, with support for dense vectors based on numpy arrays (#3218) - Added
ExponentialHistogramfield - Added
time_series_metricargument toHistogramfield - Added
on_disk_rescoreargument fromDenseVectorIndexOptionstype - Added
slicesargument toUpdateByQueryResponsetype
9.1.3
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
elasticsearch9package imports (#3232)
API
- Added
transform.get_node_statsAPI - Added
requests_per_secondargument todelete_by_query_rethrottle,reindex_rethrottleandupdate_by_query_rethrottleAPIs - Added
allow_closed,allow_no_indices,expand_wildcards,ignore_throttledandignore_availablearguments tocat.segmentsAPI
DSL
- Removed
index_optionsargument fromSemanticTextfield class - Removed
visit_percentageargument fromKnnquery class
9.0.5
9.2.1
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
elasticsearch9package imports (#3232)
API
- Added
transform.get_node_statsAPI - Added
requests_per_secondargument todelete_by_query_rethrottle,reindex_rethrottleandupdate_by_query_rethrottleAPIs - Added
allow_closed,allow_no_indices,expand_wildcards,ignore_throttledandignore_availablearguments tocat.segmentsAPI - Added
chunking_settingsargument toinference.put_watsonxaiAPI - Added
idargument toml.stop_trained_model_deploymentAPI - Removed
chunking_settingsargument frominference.put_anthropic,inference.put_contextualai,inference.put_deepseekAPIs
8.19.3
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
elasticsearch9package imports (#3232)
API
- Added
indices.delete_data_stream_options,indices.get_data_stream_optionsandindices.put_data_stream_optionsAPIs - Added
transform.get_node_statsAPI - Added
requests_per_secondargument todelete_by_query_rethrottle,reindex_rethrottleandupdate_by_query_rethrottleAPIs - Added
allow_closed,allow_no_indices,expand_wildcards,ignore_throttledandignore_availablearguments tocat.segmentsAPI - Added
idargument toml.stop_trained_model_deploymentAPI
9.2.0
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_secondsoption tostreaming_bulk()(#3064) - Add
TS,FUSEandINLINE STATScommands to the ES|QL query builder (#3096)
Bug Fixes
- DSL: support passing inner documents as
AttrDictinstances (#3080) - DSL: add some recently added field classes as top-level exports for the package (#3078)
API
- Add
streamsnamespace withstreams.logs_disable,streams.logs_enable,streams.statusAPIs - Add
inference.contextualaiAPI - Add
security.get_statsAPI - Add
bytesandtimeparameters to various APIs in thecatnamespace. - Add
include_execution_metadataparameter toesql.async_queryandesql.queryAPIs - Add
index_templateparameter toindices.simulate_index_templateAPI - Add
input_typeparameter toinference.text_embeddingAPI - Add
field_access_patternparameter toingest.put_pipelineAPI - Removed unsupported
sizeparameter fromreindexAPI
Serverless-specific
- Add
projectnamespace withproject.tagsAPI - Add
project_routingparameter tocount,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.queryAPIs
DSL
- New
CartesianBounds,CartesianCentroid,ChangePointaggregations - Add
p_valueparameter toSignificantTermsaggregation - Add
fieldsparameter toSemanticTextfield - Add
visit_percentageparameter toKnnquery - Add
sparse_vectorfield toSemanticTextIndexOptionstype
Other
9.1.2
Enhancements
- Add
flush_after_secondsoption tostreaming_bulk()(#3064)
Bug Fixes
- DSL: support passing inner documents as
AttrDictinstances (#3080) - DSL: add some recently added field classes as top-level exports for the package (#3078)
API
- Add
streamsnamespace withstreams.logs_disable,streams.logs_enable,streams.statusAPIs - Add
bytesandtimeparameters to various APIs in thecatnamespace. - Add
index_templateparameter toindices.simulate_index_templateAPI - Add
input_typeparameter toinference.text_embeddingAPI
DSL
- New
CartesianBounds,CartesianCentroid,ChangePointaggregations - Add
p_valueparameter toSignificantTermsaggregation - Add
index_optionsandfieldsparameters toSemanticTextfield - Add
visit_percentageparameter toKnnquery - Add
on_disk_rescorefield toDenseVectorIndexOptionstype
Other
- Add 3.14 to CI builds (#3103)dd
8.19.2
Enhancements
- Add
flush_after_secondsoption tostreaming_bulk()(#3064)
Bug Fixes
- DSL: support passing inner documents as
AttrDictinstances (#3080) - DSL: add some recently added field classes as top-level exports for the package (#3078)
API
- Add
streamsnamespace withstreams.logs_disable,streams.logs_enable,streams.statusAPIs - Add
indices.get_data_stream_settingsAPI - Add
indices.put_data_stream_settingsAPI - Add
bytesandtimeparameters to various APIs in thecatnamespace. - Add
index_templateparameter toindices.simulate_index_templateAPI - Add
input_typeparameter toinference.text_embeddingAPI - Removed unsupported
sizeparameter fromreindexAPI
DSL
- New
CartesianBounds,CartesianCentroid,ChangePointaggregations - Add
p_valueparameter toSignificantTermsaggregation - Add
fieldsparameter toSemanticTextfield
Other
- Add 3.14 to CI builds (#3103)
9.1.1
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
fieldsparameter of Term Vectors API to array of strings - Fix type of
paramsparameter of SQL Query API to array
DSL
- Preserve the
skip_emptysetting into_dict()recursive serializations (#3041) - Add
separator_groupandseparatorsattributes toChunkingSettingstype - Add
primaryattribute toShardFailuretype - Fix type of
keyattribute ofArrayPercentilesItemto float
9.0.4
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
fieldsparameter of Term Vectors API to array of strings - Fix type of
paramsparameter of SQL Query API to array
DSL
- Preserve the
skip_emptysetting into_dict()recursive serializations (#3041) - Add
primaryattribute toShardFailuretype - Fix type of
keyattribute ofArrayPercentilesItemto float