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
Description:
Using opaque_id in the scroll_kwargs parameter of scan helper function causes wrong DeprecationWarning:
DeprecationWarning: Passing transport options in the API method is deprecated. Use 'Elasticsearch.options()' instead.
Expected behavior:
Passing transport options from scroll_kwargs to Elasticsearch.options() handles scan helper internally. I expect that the opaque_id parameter will be passed to Elasticsearch.options() along with other parameters.
Steps to reproduce:
from elasticsearch8.helpers import scan
...
result = scan(
elastic,
index=index,
query={"query": query_body, "sort": sort},
scroll_kwargs={"opaque_id": "app-name"},
)
Description:
Using opaque_id in the scroll_kwargs parameter of scan helper function causes wrong DeprecationWarning:
DeprecationWarning: Passing transport options in the API method is deprecated. Use 'Elasticsearch.options()' instead.
Expected behavior:
Passing transport options from scroll_kwargs to Elasticsearch.options() handles scan helper internally. I expect that the
opaque_id parameter will be passed to Elasticsearch.options() along with other parameters.
Steps to reproduce:
Elasticsearch version:
Elasticsearch 8.7.1
elasticsearch8 8.7.0
The text was updated successfully, but these errors were encountered: