Update dependency elasticsearch to v8 #107
Closed
+1
−1
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:
==6.8.2
->==8.10.0
Release Notes
elastic/elasticsearch-py (elasticsearch)
v8.10.0
: 8.10.0Compare Source
v8.9.0
: Release 8.9.0Compare Source
cluster.info
APIinference_config
argument inml.put_trained_model
API 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
rank
parameter in search() endpoint 2d5434fv8.8.0
: 8.8.0Compare Source
include_defaults
parameter to thecluster.get_component_template
,indices.get_data_stream
, andindices.get_index_template
APIindices.delete_data_lifecycle
,indices.explain_data_lifecycle
,indices.get_data_lifecycle
, andindices.put_data_lifecycle
APIssearch_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.search
APIs.v8.7.0
: 8.7.0Compare Source
health_report
APItransform.schedule_now_transform
APIfrom_
request parameter to thetransform.start_transform
APIbuffer
,grid_agg
, andwith_labels
parameters to thesearch_mvt
APIallow_auto_create
parameter to thecluster.create_component_template
APIdelete_user_annotations
parameter to theml.delete_job
,ml.reset_job
APIstart
andend
parameters to theml.preview_datafeed
APIpriority
parameter to theml.start_datafeed
APIjob_id
parameter to theml.update_datafeed
APImodel_prune_window
parameter to theml.update_job
APIfeature_states
parameter to thesnapshot.restore_snapshot
APItimeout
parameter to thetransform.get_transform_stats
APIfrom_
parameter to thetransform.start_transform
APIinput
parameter of theml.put_trained_models
API from required to optionalcluster.create_component_template
API by removing the erroneously providedaliases
,mappings
, andsettings
parameters. Only thetemplate
parameter should be used for specifying component templates.v8.6.2
: 8.6.2Compare Source
v8.6.1
: 8.6.1Compare Source
expand_wildcards
,preference
, androuting
parameters to theopen_point_in_time
API.v8.6.0
: 8.6.0Compare Source
Core
fields
parameter of thefield_caps
API to be encoded in the HTTP request body.index
parameter of therank_eval
API to be optional.requests
parameter of therank_eval
API to be optional.CAT
time
parameter to thecat.indices
APIMachine Learning
model_id
parameter of theml.clear_trained_model_deployment_cache
API 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.downsample
API.Rollup
rollup.rollup
API.Snapshot
index_names
parameter to thesnapshot.get
API.Machine Learning
ml.clear_trained_model_deployment_cache
API.ml.put_trained_model_definition_part
API from experimental to stable.ml.put_trained_model_vocabulary
API from experimental to stable.ml.start_trained_model_deployment
API from experimental to stable.ml.stop_trained_model_deployment
API from experimental to stable.Security
with_limited_by
parameter to theget_api_key
API.with_limited_by
parameter to thequery_api_keys
API.with_profile_uid
parameter to theget_user
API.security.activate_user_profile
API from beta to stable.security.disable_user_profile
API from beta to stable.security.enable_user_profile
API from beta to stable.security.get_user_profile
API from beta to stable.security.suggest_user_profiles
API from beta to stable.security.update_user_profile_data
API from beta to stable.security.has_privileges_user_profile
API from experimental to stable.v8.4.3
: 8.4.3Compare Source
v8.4.2
: 8.4.2Compare Source
Documents
error_trace
,filter_path
,human
andpretty
parameters to theget_source
API.ext
parameter to thesearch
API.Async Search
ext
parameter to theasync_search.submit
API.Fleet
ext
parameter to thefleet.search
API.v8.4.1
: 8.4.1Compare Source
v8.4.0
: 8.4.0Compare Source
Documents
knn
parameter to thesearch
API.knn
parameter to theasync_search.submit
API.Machine Learning
cache_size
parameter to theml.start_trained_model_deployment
API.Security
security.update_api_key
API.v8.3.3
: 8.3.3Compare Source
v8.3.2
: 8.3.2Compare Source
Security
refresh
parameter to thesecurity.create_service_token
API.v8.3.1
: 8.3.1Compare Source
Security
security.has_privileges_user_profile
APIhint
parameter to the experimentalsecurity.suggest_user_profiles
APIv8.3.0
: 8.3.0Compare Source
v8.2.3
: 8.2.3Compare Source
Documents
routing
parameter to themsearch
API.CAT
cat.component_templates
API.Ingest
if_version
parameter to theingest.put_pipeline
API.Security
name
parameter for thesecurity.create_service_token
API from required to optional.refresh
parameter to thesecurity.create_service_token
API.access
parameter to thelabels
parameter in thesecurity.update_user_profile_data
API.Shutdown
timeout
andmaster_timeout
parameters to theshutdown.get_node
,shutdown.delete_node
, andshutdown.put_node
APIs.reason
,type
,allocation_delay
, andtarget_node_name
parameters to theshutdown.put_node
API.v8.2.2
: 8.2.2Compare Source
Client
v8.2.1
: 8.2.1Compare Source
Machine Learning
inference_config
parameter to theml.infer_trained_model_deployment
API.v8.2.0
: 8.2.0Compare Source
Client
requests.auth.BaseAuth
objects to thehttp_auth
parameter which was available in 7.x.Search
filter
parameter to the experimentalknn_search
APIDocuments
source
anddest
parameters for thereindex
API from optional to requiredIndices
indices.field_usage_stats
APIindices.modify_data_stream
APIfields
andtypes
parameters to thefield_caps
APIignore_unvailable
parameter to theopen_point_in_time
APImaster_timeout
andtimeout
parameters to theindices.delete
APIfeatures
parameter to theindices.get
APIMachine Learning
ml.get_memory_stats
APIMigrations
migrations.get_feature_upgrade_status
APImigrations.post_feature_upgrade
APINodes
nodes.clear_repositories_metering_archive
APInodes.get_repositories_metering_info
APISecurity
security.activate_user_profile
APIsecurity.disable_user_profile
APIsecurity.enable_user_profile
APIsecurity.get_user_profile
APIsecurity.suggest_user_profiles
APIsecurity.update_user_profile_data
APISQL
catalog
,index_using_frozen
,keep_alive
,keep_on_completion
,runtime_mappings
, andwait_for_completion_timeout
parameters to thesql.query
APIv8.1.3
: 8.1.3Compare Source
Client
v8.1.2
: 8.1.2Compare Source
Client
v8.1.1
: 8.1.1Compare Source
Documents
source
anddest
parameters of thereindex
API to be required.Mappings
fields
parameter of thefield_caps
API to be required.v8.1.0
: 8.1.0Compare Source
Transforms
transform.reset_transform
APIv8.0.1
: 8.0.1Compare Source
Client
sort
parameter of multiple APIs to serialize in the query string when using the shorthand formIndices
index
parameter to be required for theindices.field_usage_stats
APISQL
catalog
,keep_alive
,keep_on_completion
,params
,runtime_mappings
, andwait_for_completion_timeout
parameters to thesql.query
APIv8.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 toElasticsearch
andAsyncElasticsearch
for modifying transport options.basic_auth
parameter for specifying username and password authenticationbearer_auth
parameter for specifying an HTTP bearer token or service tokenmeta
property toApiError
to access the HTTP response metadata of an error.elastic-transport
package is installed.Changed
elastic-transport
packagebody
parameters to have semantic names (e.gindex(document={...})
instead ofindex(body={...})
).meta
for response metadata (HTTP status, headers, node, etc) andbody
for a typed body.AsyncElasticsearch
to always be available, regardless of whetheraiohttp
is installedApiError
which differentiates between an error that's raised from the transport layer (previouslyelasticsearch.exceptions.TransportError
, nowelastic_transport.TransportError
) and one raised from the API layerJSONSerializer
toJsonSerializer
for 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.connection
module as all functionality has been moved to theelastic-transport
packagehttp://localhost:9200
due to Elasticsearch 8.0 default configuration beinghttps://localhost:9200
.The client's connection to Elasticsearch now must be specified with scheme, host, and port or with the
cloud_id
parameterDeprecated
body
andparams
parameters on all APIshttp_auth
,api_key
,ignore
,request_timeout
,headers
, andopaque_id
All of these settings should instead be set via the
.options()
methodelasticsearch.transport
andelasticsearch.client
modules. These modules will be removed in a future versionAPI
doc_type
,include_type_name
, andcopy_settings
parameters from many document and index APIsCAT
local
parameter from thecat.indices
,cat.nodes
,cat.shards
APIallow_no_datafeeds
parameter from thecat.ml_datafeeds
APIallow_no_jobs
parameter from thecat.ml_jobs
APIsize
parameter from thecat.thread_pool
APItime
parameter to thecat.thread_pool
APIDocuments
size
parameter from thedelete_by_query
APIsize
parameter from theupdate_by_query
APIIndices
indices.flush_synced
APIindices.freeze
APIindices.get_upgrade
APIindices.upgrade
APIindices.exist_type
APIcopy_settings
from theindices.shrink
APIverbose
parameter of theindices.segments
APILicense / X-Pack
accept_enterprise
parameter of thelicense.get
APIaccept_enterprise
parameter of thexpack.info
APIMachine Learning
ml.infer_trained_model_deployment
APIml.put_trained_model_definition_part
APIml.put_trained_model_vocabulary
APIml.start_trained_model_deployment
APIml.stop_trained_model_deployment
APItimeout
parameter to theml.delete_trained_model
APIallow_no_jobs
parameter from theml.close_job
APIml.find_text_structure
APIallow_no_datafeeds
parameter from theml.get_datafeed_stats
APIallow_no_datafeeds
parameter from theml.get_datafeeds
APIallow_no_jobs
parameter from theml.get_job_stats
APIallow_no_jobs
parameter from theml.get_jobs
APIallow_no_jobs
parameter from theml.get_overall_buckets
APISearch
knn_search
APISearchable Snapshots
searchable_snapshots.repository_stats
APISnapshots
snapshot.delete
API to accept multiple snapshotsSecurity
security.enroll_kibana
APIsecurity.enroll_node
APIv7.17.9
: 7.17.9Compare Source
v7.17.8
: 7.17.8Compare Source
v7.17.7
: 7.17.7Compare Source
v7.17.6
: 7.17.6Compare Source
v7.17.5
: 7.17.5Compare Source
v7.17.4
: 7.17.4Compare Source
Client
v7.17.3
: 7.17.3Compare Source
Client
v7.17.2
: 7.17.2Compare Source
Client
v7.17.1
: 7.17.1Compare Source
Helpers
from
parameter to be rewritten tofrom_
when used with thescan
andasync_scan
helpers (https://github.com/elastic/elasticsearch-py/pull/1897)Transport
AiohttpHttpConnection
to not leak TLS connections when the socket isn't explicitly shutdown by the peer (https://github.com/elastic/elasticsearch-py/pull/1919)v7.17.0
: 7.17.0Compare Source
Machine Learning
ml.get_model_snapshot_upgrade_stats
APIbody
parameter to theml.forecast
andml.open_job
APIsTransform
timeout
parameter to thetransform.delete_transform
,transform.preview_transform
,transform.put_transform
,transform.update_transform
, andtransform.upgrade_transform
APIsv7.16.3
: 7.16.3Compare Source
Client
v7.16.2
: 7.16.2Compare Source
Client
v7.16.1
: 7.16.1Compare Source
Client
Transport
AIOHttpConnection
wouldn't log query parameters for URLs.v7.16.0
: 7.16.0Compare Source
Client
Deprecated
send_get_body_as
parameter. This parameter is no longer necessaryas APIs all use non-GET HTTP methods when using a body.
body
,params
, and other per-request parameters has been delayed beyond 8.0.0.Changed deprecation warnings to mention "future version" instead of 8.0.0.
Fixed
unicode
HTTP headers with the urllib3 HTTP clientscan
helper to always set thesort
andscroll
parametersAPI
Search
keep_alive
parameter of theopen_point_in_time
API to be requiredto reflect its required status within Elasticsearch
track_total_hits
parameter to thesearch_mvt
APIFleet
fleet.global_checkpoints
API from experimental to stablefleet.search
experimental APIfleet.msearch
experimental APIIndices
indices.modify_data_stream
APIIngest
if_version
parameter to theingest.put_pipeline
APIMigration
migration.get_feature_upgrade_status
APImigration.post_feature_upgrade
APIMachine Learning
defer_definition_decompression
parameter to theml.put_trained_model
APITransforms
transform.upgrade_transforms
APIv7.15.2
: 7.15.2Compare Source
Client
Nodes
metric
parameter of thenodes.info
API.v7.15.1
: 7.15.1Compare Source
Client
JSONSerializer.default()
whennumpy
andpandas
weren't installed.DeprecationWarning
for thebody
parameter to be a "removed in a future version" instead of "removed in 8.0" in line with the 8.0 roadmap.API
Search
index
parameter of theopen_point_in_time
API is now required, was optional.v7.15.0
: 7.15.0Compare Source
Client
We've recently announced our roadmap for 8.0.0 and have begun issuing deprecation warnings in the 7.x release stream to prepare users for upgrading to 8.0.0 when available.
Added
AsyncTransport
andAIOHttpConnection
MapboxVectorTileSerializer
for handling theapplication/vnd.mapbox-vector-tile
mimetype. Because this mimetype is binary rather than text the raw responsebytes
are forwarded from the serializer without decodingFixed
elasticsearch
module by delaying imports ofpandas
andnumpy
until later in the JSON serialization stage if necessaryAPIs
Search
search_mvt
experimental APIsearch
,scroll
, andclear_scroll
APIsbody
parameter of thesearch
,scroll
, andclear_scroll
APIsDocuments
update
APIdocument
parameter to thecreate
andindex
APIsbody
parameter of thecreate
,index
, andupdate
APIsIndices
indices.disk_usage
experimental APIindices.fields_usage_stats
experimental APIindices.create
APIbody
parameter of theindices.create
APIMachine Learning
ignore_unavailable
,allow_no_indices
,ignore_throttled
, andexpand_wildcards
parameters to theml.put_job
APINodes
nodes.clear_repositories_metering_archive
experimental APInodes.get_repositories_metering_info
experimental APIshards
option to theindex_metric
parameter of thenodes.stats
APIdoc_type
parameter of thenodes.hot_threads
API, instead use thetype
parameterSecurity
security.query_api_keys
APILicense
doc_type
parameter of thelicense.post_start_trial
API, instead use thetype
parameterv7.14.2
: 7.14.2Compare Source
Client
v7.14.1
: 7.14.1Compare Source
Client
v7.14.0
: 7.14.0Compare Source
Client
Added
UnsupportedProductError
exception will be raised.APIs
Search
Added the
terms_enum
beta APIRemoved the
query_and_fetch
anddfs_query_and_fetch
options in thesearch_type
parameter to themsearch
,msearch_template
andsearch_template
APIsIndex Lifecycle Management
ilm.migrate_to_data_tiers
APIMachine Learning
ml.reset_job
APISecurity
security.saml_authenticate
APIsecurity.saml_complete_logout
APIsecurity.saml_invalidate
APIsecurity.saml_logout
APIsecurity.saml_prepare_authentication
APIsecurity.saml_service_provider_metadata
APISQL
sql.delete_async
APIsql.get_async
APIsql.get_async_status
APISnapshots
include_repository
parameter tosnapshot.get
APIrarely_abort_writes
parameter to thesnapshot.repository_analyze
APIv7.13.4
: 7.13.4Compare Source
Client
v7.13.3
: 7.13.3Compare Source
Client
Fixed
NameError
would be raised on Python 2.7 and 3.4 when a connection error would have otherwise been raised.v7.13.2
: 7.13.2Compare Source
Client
Fixed
Transport.perform_request()
now properly reraisesRecursionError
(Contributed by @hmilkovi)AIOHttpConnection
no longer sendsAccept-Encoding: gzip, deflate
whenhttp_compress=None
.Instead now sends no
Accept-Encoding
header.APIs
Snapshot
snapshot.repository_analyze
APIv7.13.1
: 7.13.1Compare Source
Client
v7.13.0
: 7.13.0Compare Source
Client
Added
ELASTIC_CLIENT_APIVERSIONING=1
is set the client will send the headers Accept and Content-Type with the following value:application/vnd.elasticsearch+json;compatible-with=7
.APIs
Cat
include_unloaded_segments
parameter to thecat.nodes
APISnapshot Features
features.reset_features
experimental APIFleet
fleet.global_checkpoints
expiremental APIIngest
ingest.geo_ip_stats
APIMachine Learning
ml.delete_trained_model_alias
APIml.preview_data_frame_analytics
APIml.put_trained_model_alias
APIml.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_analytics
APIs from beta to stable.Nodes
include_unloaded_segments
parameter tonode.stats
APISearchable Snapshots
searchable_snapshots.cache_stats
experimental APISecurity
security.clear_cached_service_tokens
beta APIsecurity.create_service_token
beta APIsecurity.delete_service_token
beta APIsecurity.get_service_accounts
beta APIsecurity.get_service_credentials
beta APIShutdown
shutdown.delete_node
experiemental APIshutdown.get_node
experimental APIshutdown.put_node
experimental APISnapshots
index_details
parameter tosnapshot.get
APIText Structure
text_structure.find_structure
API from experimental to stablev7.12.1
: 7.12.1Compare Source
APIs
Text Structure
text_structure.find_text_structure
API from experimental to stablev7.12.0
: 7.12.0Compare Source
APIs
Autoscaling
autoscaling.delete_autoscaling_policy
,autoscaling.get_autoscaling_policy
, andautoscaling.put_autoscaling_policy
APIs from experimental to stableEQL
eql.get_status
APILogash
logstash.delete_pipeline
,logstash.get_pipeline
, andlogstash.put_pipeline
APIsMachine Learning
ml.find_text_structure
APISearchable Snapshots
storage
parameter to thesearchable_snapshots.mount
APIlevel
parameter to thesearchable_snapshots.stats
APISearch
min_compatible_shard_node
parameter tosearch()
Text Structure
text_structure.find_text_structure
APIv7.11.0
: 7.11.0Compare Source
Client
Added
X-Elastic-Client-Meta
HTTP header and themeta_header
parameter for controlling the header (#1473)ElasticsearchWarning
which is raised when theWarning
HTTP header is returned from Elasticsearch.ElasticsearchDeprecationWarning
is now an alias for this warning type (#1495)APIs
Async Search
async_search.status
APIAutoscaling
autoscaling.get_autoscaling_capacity
experimental APIautoscaling.get_autoscaling_decision
experimental APICat
cat.tasks
API parametersnode_id
andparent_task
tonodes
andparent_task_id
Cluster
cluster.delete_component_template
,cluster.exists_component_template
, andcluster.get_component_template
,cluster.put_component_template
APIs from experimental to stableEQL
eql.delete
,eql.get
,eql.search
APIs from beta to stableIndices
indices.migrate_to_data_stream
APIindices.promote_data_stream
APIexpand_wildcards
parameter to theindices.delete_data_stream
andindices.get_data_stream
APIsindices.delete_index_template
,indices.exists_index_template
,indices.get_index_template
,indices.put_index_template
,indices.simulate_index_template
, andindices.simulate_template
APIs moved from experimental to stableMachine Learning
ml.upgrade_job_snapshot
APIexclude_generated
parameter toml.get_data_frame_analytics
,ml.get_datafeeds
,ml.get_jobs
, andml.get_trained_models
APIsml.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 betaRollup
rollup.rollup
APITransform
exclude_generated
parameter totransform.get_transform
APIWatcher
watcher.query_watches
APIv7.10.1
: 7.10.1Compare Source
Client
Fixed
scroll
response returned without a value for_shards.skipped
(#1451)Connection.host
property (#1460)Changed
collections.Mapping
in favor ofcollections.abc.Mapping
for Python 3.9 (#1443)v7.10.0
Compare Source
Client
Added
_if_seq_no
/_if_primary_term
) to bulk helpers (#1387)_source
with"_op_type": "update"
bulk helpers (#1387)Removed
yarl
dependency 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
Connection.log_request_failure()
call would receive the compressed HTTP body rather than uncompressed when an error is raised forRequestsHttpConnection
(#1394)sniff_timeout
was used instead ofsniffer_timeout
(#1431, contributed by @HarrySky)Basic APIs
Snapshot
snapshot.clone
methodIndex
require_alias
parameter to multiple index APIsX-Pack APIs
Point in Time
close_point_in_time
andopen_point_in_time
methodsSecurity
security.clear_api_key_cache
andsecurity.grant_api_key
methodsMachine Learning
allow_no_jobs
parameter ofcat.ml_jobs
andml.close_job
,ml.get_job_stats
,ml.get_jobs
,ml.get_overall_buckets
methods in favor ofallow_no_match
parameterallow_no_datafeeds
parameter ofml.get_datafeed_stats
,ml.get_datafeeds
,ml.stop_datafeed
in favor ofallow_no_match
parameterinclude_model_definition
parameter ofml.get_trained_models
method in favor ofinclude
parameterv7.9.1
Compare Source
v7.9.0
Compare Source
v7.8.1
Compare Source
v7.8.0
Compare Source
v7.7.1
Compare Source
v7.7.0
Compare Source
v7.6.0
Compare Source
v7.5.1
Compare Source
v7.1.0
Compare Source
v7.0.5
Compare Source
v7.0.4
Compare Source
v7.0.3
Compare Source
v7.0.2
Compare Source
v7.0.1
Compare Source
v7.0.0
Compare Source
Configuration
📅 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 Mend Renovate. View repository job log here.