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
When I use Search(index='test').filter('term', test='test').params(opaque_id='test',).execute(), I want to distinguish different search requests.
However, this triggers a DeprecationWarning: Passing transport options in the API method is deprecated. Use 'Elasticsearch.options()' instead.
Is it possible to fix this to avoid the warning?
It's is my package version:
elasticsearch: 8.15.1
elasticsearch-dsl: 8.15.4
The text was updated successfully, but these errors were encountered:
@winnie0101 If you pass an Elasticsearch client instance explicitly to your searches, then you can configure your options as recommended in the deprecation warning.
When I use
Search(index='test').filter('term', test='test').params(opaque_id='test',).execute()
, I want to distinguish different search requests.However, this triggers a
DeprecationWarning: Passing transport options in the API method is deprecated. Use 'Elasticsearch.options()' instead.
Is it possible to fix this to avoid the warning?
It's is my package version:
elasticsearch: 8.15.1
elasticsearch-dsl: 8.15.4
The text was updated successfully, but these errors were encountered: