Update dependency elasticsearch to v9 #17
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
~=7.10.0->~=9.2.1Release Notes
elastic/elasticsearch-py (elasticsearch)
v9.2.1: 9.2.1Compare Source
Enhancements
Bug fixes
elasticsearch9package imports (#3232)API
transform.get_node_statsAPIrequests_per_secondargument todelete_by_query_rethrottle,reindex_rethrottleandupdate_by_query_rethrottleAPIsallow_closed,allow_no_indices,expand_wildcards,ignore_throttledandignore_availablearguments tocat.segmentsAPIchunking_settingsargument toinference.put_watsonxaiAPIidargument toml.stop_trained_model_deploymentAPIchunking_settingsargument frominference.put_anthropic,inference.put_contextualai,inference.put_deepseekAPIsDSL
on_disk_scoreargument fromDenseVectorIndexOptionstypev9.2.0: 9.2.0Compare Source
Enhancements
flush_after_secondsoption tostreaming_bulk()(#3064)TS,FUSEandINLINE STATScommands to the ES|QL query builder (#3096)Bug Fixes
AttrDictinstances (#3080)API
streamsnamespace withstreams.logs_disable,streams.logs_enable,streams.statusAPIsinference.contextualaiAPIsecurity.get_statsAPIbytesandtimeparameters to various APIs in thecatnamespace.include_execution_metadataparameter toesql.async_queryandesql.queryAPIsindex_templateparameter toindices.simulate_index_templateAPIinput_typeparameter toinference.text_embeddingAPIfield_access_patternparameter toingest.put_pipelineAPIsizeparameter fromreindexAPIServerless-specific
projectnamespace withproject.tagsAPIproject_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.queryAPIsDSL
CartesianBounds,CartesianCentroid,ChangePointaggregationsp_valueparameter toSignificantTermsaggregationfieldsparameter toSemanticTextfieldvisit_percentageparameter toKnnqueryon_disk_rescorefield toDenseVectorIndexOptionstypesparse_vectorfield toSemanticTextIndexOptionstypeOther
v9.1.3Compare Source
v9.1.2: 9.1.2Compare Source
Enhancements
flush_after_secondsoption tostreaming_bulk()(#3064)Bug Fixes
AttrDictinstances (#3080)API
streamsnamespace withstreams.logs_disable,streams.logs_enable,streams.statusAPIsbytesandtimeparameters to various APIs in thecatnamespace.index_templateparameter toindices.simulate_index_templateAPIinput_typeparameter toinference.text_embeddingAPIDSL
CartesianBounds,CartesianCentroid,ChangePointaggregationsp_valueparameter toSignificantTermsaggregationindex_optionsandfieldsparameters toSemanticTextfieldvisit_percentageparameter toKnnqueryon_disk_rescorefield toDenseVectorIndexOptionstypeOther
v9.1.1: 9.1.1Compare Source
Enhancements and Fixes
multi_match()signature (#3052)API
fieldsparameter of Term Vectors API to array of stringsparamsparameter of SQL Query API to arrayDSL
skip_emptysetting into_dict()recursive serializations (#3041)separator_groupandseparatorsattributes toChunkingSettingstypeprimaryattribute toShardFailuretypekeyattribute ofArrayPercentilesItemto floatv9.1.0: 9.1.0Compare Source
Enhancements
APIs
if_primary_term,if_seq_noandop_typefrom Create APImaster_timeoutfrom Ingest Get Ip Location Database APIapplication,priviledgeandusernamefrom the Security Get User APItype_query_stringtotypein License Post Start Trial APIrequire_data_streamto Index APIsettings_filterto Cluster Get Component Template APIcauseto Cluster Put Component Template APImaster_timeoutto Cluster State APIccs_minimize_roundtripsto EQL Search APIkeep_aliveandkeep_on_completionto ES|QL Async Query APIformatto ES|QL Async Query Get APIallow_no_indices,expand_wildcardsandignore_availableto Indices Recovery APIinput_typeto Inference APItimeoutto all Inference Put APIstask_settingsto Put HuggingFace APIrefreshto Security Grant API Key APIwait_for_completionto the Snapshot Delete APIstateto Snapshot Get APIrefreshto Synonyms Put Synonym, Put Synonym Rule and Delete Synonym Rule APIsDSL
copy_tooption in DSL field declarations correctly (Fixes #2992) (#2993)index_optionsto SparseVector typekeyto FiltersBucket typeOther changes
v9.0.5Compare Source
v9.0.4: 9.0.4Compare Source
Enhancements and Fixes
multi_match()signature (#3052)API
fieldsparameter of Term Vectors API to array of stringsparamsparameter of SQL Query API to arrayDSL
skip_emptysetting into_dict()recursive serializations (#3041)primaryattribute toShardFailuretypekeyattribute ofArrayPercentilesItemto floatv9.0.3: 9.0.3Compare Source
Enhancements
APIs
if_primary_term,if_seq_noandop_typefrom Create APIstored_fieldsfrom Get Source APImaster_timeoutfrom Ingest Get Ip Location Database APIapplication,priviledgeandusernamefrom the Security Get User APItype_query_stringtotypein License Post Start Trial APIrequire_data_streamto Index APIsettings_filterto Cluster Get Component Template APIcauseto Cluster Put Component Template APIccs_minimize_roundtripsto EQL Search APIkeep_aliveandkeep_on_completionto ES|QL Async Query APIformatto ES|QL Async Query Get APIallow_no_indices,expand_wildcardsandignore_availableto Indices Recovery APItimeoutto all Inference Put APIsrefreshto Security Get User Profile APIwait_for_completionto the Snapshot Delete APIDSL
copy_tofield option correctly (Fixes #2992) (#2993)keyto FiltersBucket typev9.0.2: 9.0.2Compare Source
DSL
rescore_vectortoDenseVectorIndexOptionsv9.0.1: 9.0.1Compare Source
v9.0.0: 9.0.0Compare Source
Elasticsearch()options (#2840)url_prefixanduse_ssloptions (#2797)param()in Python DSL methods (#2861)simulatesub-client documentation (#2749)verbosefrom Index segments APIinclude_model_definitionfrom Get trained model configuration info APIwait_for_active_shardsfrom experimental Get field usage stats APIhardto Delete connector APIinclude_deletedto Get and List Connector APIsmaster_timeoutto Migrate to data tiers routing APIsmaster_timeoutto the Alias exists and Get alias APIs.expand_wildcardsto Create snapshot APIaccess_tokentotokenin Logout of OpenID Connect APIinclude_source_on_errorto Create, Index, Update and Bulk APIstimeoutto Resolve Cluster APIadaptive_allocationsbody field to Start and Update a trained model deployment APIindex_template_subtitutionstoindex_template_substitutionsin Simulate data ingestion API* Addif_primary_term,if_seq_no,op_type,require_aliasandrequire_data_streamto Create APImax_concurrent_shard_requeststo Open point in time APIlocalandflat_settingsto Check index templates APIreopento Update index settings APIresourceto Reload search analyzer APIlazyto Roll over to a new index APIcauseandcreateto Simulate index template APIsignore_malformed,script,on_script_errorandtime_series_dimensionto Boolean fieldindexto GeoShape fieldsearch_inference_idto SemanticText fieldv8.19.3: 8.19.3Compare Source
Enhancements
Bug fixes
elasticsearch9package imports (#3232)API
indices.delete_data_stream_options,indices.get_data_stream_optionsandindices.put_data_stream_optionsAPIstransform.get_node_statsAPIrequests_per_secondargument todelete_by_query_rethrottle,reindex_rethrottleandupdate_by_query_rethrottleAPIsallow_closed,allow_no_indices,expand_wildcards,ignore_throttledandignore_availablearguments tocat.segmentsAPIidargument toml.stop_trained_model_deploymentAPIv8.19.2: 8.19.2Compare Source
Enhancements
flush_after_secondsoption tostreaming_bulk()(#3064)Bug Fixes
AttrDictinstances (#3080)API
streamsnamespace withstreams.logs_disable,streams.logs_enable,streams.statusAPIsindices.get_data_stream_settingsAPIindices.put_data_stream_settingsAPIbytesandtimeparameters to various APIs in thecatnamespace.index_templateparameter toindices.simulate_index_templateAPIinput_typeparameter toinference.text_embeddingAPIsizeparameter fromreindexAPIDSL
CartesianBounds,CartesianCentroid,ChangePointaggregationsp_valueparameter toSignificantTermsaggregationfieldsparameter toSemanticTextfieldOther
v8.19.1: 8.19.1Compare Source
Enhancements and Fixes
multi_match()signature (#3052)API
expand_wildcardsparameter to Snapshot Create APIparamsparameter of SQL Query API to arrayfieldsparameter of Term Vectors API to array of stringsDSL
skip_emptysetting into_dict()recursive serializations (#3041)ChunkingSettingstypeSemanticTextIndexOptionstypeexclude_vectorsattribute toSourceFiltertypeSparseVectorIndexOptionstypeexecution_hintattribute toTDigesttypeprimaryattribute toShardFailuretypekeyattribute ofArrayPercentilesItemto floatv8.19.0: 8.19.0Compare Source
Enhancements
API updates
if_primary_term,if_seq_noandop_typefrom Create APIstored_fieldsfrom Get Source APImin_compatible_shard_nodefrom Async Search Submit APImaster_timeoutfrom Cat Aliases APImaster_timeoutfrom Ingest Get Ip Location Database APIapplication,priviledgeandusernamefrom the Security Get User APItype_query_stringtotypein License Post Start Trial APIrequire_data_streamto Index APIsettings_filterto Cluster Get Component Template APIcauseto Cluster Put Component Template APIccs_minimize_roundtripsto EQL Search APIkeep_aliveandkeep_on_completionto ES|QL Async Query APIformatto ES|QL Async Query Get APIallow_no_indices,expand_wildcardsandignore_availableto Indices Recovery APIinput_typeto Inference APItimeoutto all Inference Put APIsrefreshto Security Get User Profile APIwait_for_completionto the Snapshot Delete APIDSL Updates
copy_tooption in DSL field declarations correctly (Fixes #2992) (#2994)keyto FiltersBucket typev8.18.1: 8.18.1Compare Source
inference.inferenceAPIs that were removed by mistakeCountedKeywordandPassthroughfieldsrescore_vectorto Knn querybbq_flatandbbq_hnswvector index typesscriptandon_script_errortoDateandDateNanosfieldsv8.18.0: 8.18.0Compare Source
Elasticsearch-DSL <https://github.com/elastic/elasticsearch-dsl-py/>_ package (#2736)param()in Python DSL methods (#2861)simulatesub-client documentation (#2749)wait_for_active_shardsfrom experimental Get field usage stats APIaccess_tokentotokenin Logout of OpenID Connect APIinclude_source_on_errorto Create, Index, Update and Bulk APIstimeoutto Resolve Cluster APIadaptive_allocationsbody field to Start and Update a trained model deployment APIindex_template_subtitutionstoindex_template_substitutionsin Simulate data ingestion API* Addif_primary_term,if_seq_no,op_type,require_aliasandrequire_data_streamto Create APImax_concurrent_shard_requeststo Open point in time APIlocalandflat_settingsto Check index templates APIreopento Update index settings APIresourceto Reload search analyzer APIlazyto Roll over to a new index APIcauseandcreateto Simulate index template APIsignore_malformed,script,on_script_errorandtime_series_dimensionto Boolean fieldindexto GeoShape fieldsearch_inference_idto SemanticText fieldv8.17.2: 8.17.2Compare Source
8.17.2 (2025-03-04)
keep_aliveto Submit async search APIinclude_ccs_metadatato ES|QL query APIv8.17.1: 8.17.1Compare Source
8.17.1 (2025-01-23)
timeoutandmaster_timeoutto Snapshot lifecycle management (SLM) APIsallow_partial_search_resultsto SQL search APIthrottle_period_in_millisto Create or update watch APIv8.17.0: 8.17.0Compare Source
8.17.0 (2024-12-13)
allow_partial_search_resultsto the Open Point in Time APIkeep_aliveto the Get async search status APIkeep_alive,pre_filter_shard_sizeandscrollparameters from the Submit async search API. They were never supported.master_timeoutandtimeoutto all autoscaling policy APIsmaster_timeoutto the Alias exists and Get alias APIslist_executed_pipelinesandrequire_data_streamto Bulk APIinclude_model_definitionto Get trained models APImetato Create data frame analytics APIaggsto Create datafeeds APIallow_no_indices,expand_wildcards,ignore_throttledandignore_unavailableto Create anomaly detection jobs APIv8.16.0: 8.16.0Compare Source
8.16.0 (2024-11-12)
BulkIndexErrorandScanErrorserializable (#2669, contributed by @seagrine)traceis missing fromopentelemetrypackage (#2694, contributed by @nicoloboschi)nodesparameter in Task management API (contributed by @margaretpearce)data_stream_nameandsettingsto Delete auto-follow pattern APImax_samples_per_keyto Get async EQL status APIlifecycleand remove unuseddata_retentionanddownsampling parametersfrom Put data stream lifecycle APIinclude_remotesand removeflat_settingsfrom Cluster stats APIremote_indicesto Create or update application privileges and Create or update roles APIsv8.15.1: 8.15.1Compare Source
8.15.1 (2024-09-08)
qparameter to Update by Query APIallow_no_indicesandignore_unavailableparameters to Resolve index APIv8.15.0: 8.15.0Compare Source
dry_runandforceparameters to the Perform inference APIv8.14.0: 8.14.0Compare Source
node_pool_classoverride (#2581, contributed by @tallakh)retrieverto the Search APIdeprecatedand removedallow_auto_createfrom the Create or update component template APIallow_auto_create,cause,deprecated,ignore_missing_component_templatesandmaster_timeoutto the Create or update index template APIcause, removedflat_settingsandtimeoutfrom the Create or update index template legacy APIcompletionandreranktask types to the Inference APIsqueryandtimeoutparameters to the Perform inference APItyped_keysto the Search Application Search APIwith_profile_uidto the Get API key information and Query API key information APIsv8.13.2: 8.13.2Compare Source
ml.update_trained_model_deploymentAPIv8.13.1: 8.13.1Compare Source
force_synthetic_sourceto the Get APIwait_for_completionto the Create trained model APItyped_keysto the Query API key information APIv8.13.0: 8.13.0Compare Source
orjson(a fast, correct JSON library) serialization support (#2493)text_structure.test_grok_patternAPIindices.resolve_clusterAPImodel_idparameter toinference_idin theinferenceAPIssynonymsAPIs from experimental to stable.v8.12.1: 8.12.1Compare Source
v8.12.0: 8.12.0Compare Source
bodyparameter again (see #2383 for details)active_onlyparameter tosecurity.get_api_keyAPIexpirationparameter tosecurity.update_api_keyAPIv8.11.1: 8.11.1Compare Source
role_templatestosecurity.put_role_mappingAPIv8.11.0: 8.11.0Compare Source
scoresparameter to create trained model vocabulary APIdelete_dest_indexparameter to delete transform APIv8.10.1: 8.10.1Compare Source
bodyparameter (#2302)v8.10.0: 8.10.0Compare Source
v8.9.0: 8.9.0Compare Source
cluster.infoAPIinference_configargument inml.put_trained_modelAPI to reflect an improvement in the specificationv8.8.2: 8.8.2Compare Source
Client is compatible with Elasticsearch 8.8.2
v8.8.1: 8.8.1Compare Source
rankparameter in search() endpoint 2d5434fv8.8.0: 8.8.0Compare Source
include_defaultsparameter to thecluster.get_component_template,indices.get_data_stream, andindices.get_index_templateAPIindices.delete_data_lifecycle,indices.explain_data_lifecycle,indices.get_data_lifecycle, andindices.put_data_lifecycleAPIssearch_application.delete,search_application.delete_behavioral_analytics,search_application.get,search_application.get_behavioral_analytics,search_application.list,search_application.put,search_application.put_behavioral_analytics, andsearch_application.searchAPIs.v8.7.0: 8.7.0Compare Source
health_reportAPItransform.schedule_now_transformAPIfrom_request parameter to thetransform.start_transformAPIbuffer,grid_agg, andwith_labelsparameters to thesearch_mvtAPIallow_auto_createparameter to thecluster.create_component_templateAPIdelete_user_annotationsparameter to theml.delete_job,ml.reset_jobAPIstartandendparameters to theml.preview_datafeedAPIpriorityparameter to theml.start_datafeedAPIjob_idparameter to theml.update_datafeedAPImodel_prune_windowparameter to theml.update_jobAPIfeature_statesparameter to thesnapshot.restore_snapshotAPItimeoutparameter to thetransform.get_transform_statsAPIfrom_parameter to thetransform.start_transformAPIinputparameter of theml.put_trained_modelsAPI from required to optionalcluster.create_component_templateAPI by removing the erroneously providedaliases,mappings, andsettingsparameters. Only thetemplateparameter should be used for specifying component templates.v8.6.2: 8.6.2Compare Source
v8.6.1: 8.6.1Compare Source
expand_wildcards,preference, androutingparameters to theopen_point_in_timeAPI.v8.6.0: 8.6.0Compare Source
Core
fieldsparameter of thefield_capsAPI to be encoded in the HTTP request body.indexparameter of therank_evalAPI to be optional.requestsparameter of therank_evalAPI to be optional.CAT
timeparameter to thecat.indicesAPIMachine Learning
model_idparameter of theml.clear_trained_model_deployment_cacheAPI to be required.v8.5.3: 8.5.3Compare Source
v8.5.2: 8.5.2Compare Source
v8.5.1: 8.5.1Compare Source
v8.5.0: 8.5.0Compare Source
Indices
indices.downsampleAPI.Rollup
rollup.rollupAPI.Snapshot
index_namesparameter to thesnapshot.getAPI.Machine Learning
ml.clear_trained_model_deployment_cacheAPI.ml.put_trained_model_definition_partAPI from experimental to stable.ml.put_trained_model_vocabularyAPI from experimental to stable.ml.start_trained_model_deploymentAPI from experimental to stable.ml.stop_trained_model_deploymentAPI from experimental to stable.Security
with_limited_byparameter to theget_api_keyAPI.with_limited_byparameter to thequery_api_keysAPI.with_profile_uidparameter to theget_userAPI.security.activate_user_profileAPI from beta to stable.security.disable_user_profileAPI from beta to stable.security.enable_user_profileAPI from beta to stable.security.get_user_profileAPI from beta to stable.security.suggest_user_profilesAPI from beta to stable.security.update_user_profile_dataAPI from beta to stable.security.has_privileges_user_profileAPI from experimental to stable.v8.4.3: 8.4.3Compare Source
v8.4.2: 8.4.2Compare Source
Documents
error_trace,filter_path,humanandprettyparameters to theget_sourceAPI.extparameter to thesearchAPI.Async Search
extparameter to theasync_search.submitAPI.Fleet
extparameter to thefleet.searchAPI.v8.4.1: 8.4.1Compare Source
v8.4.0: 8.4.0Compare Source
Documents
knnparameter to thesearchAPI.knnparameter to theasync_search.submitAPI.Machine Learning
cache_sizeparameter to theml.start_trained_model_deploymentAPI.Security
security.update_api_keyAPI.v8.3.3: 8.3.3Compare Source
v8.3.2: 8.3.2Compare Source
Security
refreshparameter to thesecurity.create_service_tokenAPI.v8.3.1: 8.3.1Compare Source
Security
security.has_privileges_user_profileAPIhintparameter to the experimentalsecurity.suggest_user_profilesAPIv8.3.0: 8.3.0Compare Source
v8.2.3: 8.2.3Compare Source
Documents
routingparameter to themsearchAPI.CAT
cat.component_templatesAPI.Ingest
if_versionparameter to theingest.put_pipelineAPI.Security
nameparameter for thesecurity.create_service_tokenAPI from required to optional.refreshparameter to thesecurity.create_service_tokenAPI.accessparameter to thelabelsparameter in thesecurity.update_user_profile_dataAPI.Shutdown
timeoutandmaster_timeoutparameters to theshutdown.get_node,shutdown.delete_node, andshutdown.put_nodeAPIs.reason,type,allocation_delay, andtarget_node_nameparameters to theshutdown.put_nodeAPI.v8.2.2: 8.2.2Compare Source
Client
v8.2.1: 8.2.1Compare Source
Machine Learning
inference_configparameter to theml.infer_trained_model_deploymentAPI.v8.2.0: 8.2.0Compare Source
Client
requests.auth.BaseAuthobjects to thehttp_authparameter which was available in 7.x.Search
filterparameter to the experimentalknn_searchAPIDocuments
sourceanddestparameters for thereindexAPI from optional to requiredIndices
indices.field_usage_statsAPIindices.modify_data_streamAPIfieldsandtypesparameters to thefield_capsAPIignore_unvailableparameter to theopen_point_in_timeAPImaster_timeoutandtimeoutparameters to theindices.deleteAPIfeaturesparameter to theindices.getAPIMachine Learning
ml.get_memory_statsAPIMigrations
migrations.get_feature_upgrade_statusAPImigrations.post_feature_upgradeAPINodes
nodes.clear_repositories_metering_archiveAPInodes.get_repositories_metering_infoAPISecurity
security.activate_user_profileAPIsecurity.disable_user_profileAPIsecurity.enable_user_profileAPIsecurity.get_user_profileAPIsecurity.suggest_user_profilesAPIsecurity.update_user_profile_dataAPISQL
catalog,index_using_frozen,keep_alive,keep_on_completion,runtime_mappings, andwait_for_completion_timeoutparameters to thesql.queryAPIv8.1.3: 8.1.3Compare Source
Client
v8.1.2: 8.1.2Compare Source
Client
v8.1.1: 8.1.1Compare Source
Documents
sourceanddestparameters of thereindexAPI to be required.Mappings
fieldsparameter of thefield_capsAPI to be required.v8.1.0: 8.1.0Compare Source
Transforms
transform.reset_transformAPIv8.0.1: 8.0.1Compare Source
Client
sortparameter of multiple APIs to serialize in the query string when using the shorthand formIndices
indexparameter to be required for theindices.field_usage_statsAPISQL
catalog,keep_alive,keep_on_completion,params,runtime_mappings, andwait_for_completion_timeoutparameters to thesql.queryAPIv8.0.0: 8.0.0Compare Source
For information on how migrate your application from v7.x to v8.0.0 you can read the migration guide here.
Client
Added
.options()method toElasticsearchandAsyncElasticsearchfor modifying transport options.basic_authparameter for specifying username and password authenticationbearer_authparameter for specifying an HTTP bearer token or service tokenmetaproperty toApiErrorto access the HTTP response metadata of an error.elastic-transportpackage is installed.Changed
elastic-transportpackagebodyparameters to have semantic names (e.gindex(document={...})instead ofindex(body={...})).metafor response metadata (HTTP status, headers, node, etc) andbodyfor a typed body.AsyncElasticsearchto always be available, regardless of whetheraiohttpis installedApiErrorwhich differentiates between an error that's raised from the transport layer (previouslyelasticsearch.exceptions.TransportError, nowelastic_transport.TransportError) and one raised from the API layerJSONSerializertoJsonSerializerfor consistency with other serializer names. Added an alias to the old name for backwards compatibilityapplication/json) to instead use compatibility mimetypes (application/vnd.elasticsearch+json) which always request for responses compatibility with version 8.x.Removed
elasticsearch.connectionmodule as all functionality has been movedConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.