You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All APIs will emit deprecation warnings for positional argument use in 7.15.0.
The following APIs will start emitting deprecation warnings regarding the body parameters. This list may change leading up to the 7.15.0 release.
search
index
create
update
scroll
clear_scroll
search_mvt
indices.create
The following APIs will start emitting deprecation warnings regarding doc_type parameters.
nodes.hot_threads
license.post_start_trial
What is being deprecated?
Starting in 7.15.0 the following features will be deprecated and are scheduled for removal in 9.0.0:
Positional arguments for APIs are deprecated
Using keyword arguments has always been recommended when using the client but now starting in 7.15.0 using any positional arguments will emit a deprecation warning.
✅ Supported usage:
es.search(index="index", ...)
❌ Deprecated usage:
es.search("index", ...)
The text was updated successfully, but these errors were encountered:
This affects most *_postgres2es.py scripts but should be a simple fix.
Example:
dsra_postgres2es.py Line 46: if es.indices.exists("opendrr_" + view):
will have to change to: if es.indices.exists(index="opendrr_" + view):
anthonyfok
changed the title
Deprication warning for positional arguments in ElasticSearch Python module
Deprecation warning for positional arguments in ElasticSearch Python module
Oct 15, 2021
from elastic/elasticsearch-py#1698:
Which APIs are effected?
All APIs will emit deprecation warnings for positional argument use in 7.15.0.
The following APIs will start emitting deprecation warnings regarding the body parameters. This list may change leading up to the 7.15.0 release.
The following APIs will start emitting deprecation warnings regarding doc_type parameters.
What is being deprecated?
Starting in 7.15.0 the following features will be deprecated and are scheduled for removal in 9.0.0:
Positional arguments for APIs are deprecated
Using keyword arguments has always been recommended when using the client but now starting in 7.15.0 using any positional arguments will emit a deprecation warning.
✅ Supported usage:
es.search(index="index", ...)
❌ Deprecated usage:
es.search("index", ...)
The text was updated successfully, but these errors were encountered: