Skip to content

DeprecationWarning: Passing transport options in the API method is deprecated. Use 'Elasticsearch.options()' instead. #1971

Open
@winnie0101

Description

@winnie0101

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions