Skip to content

Deprecation warnings in elasticsearch 8.12.0 with current version 8.12.0 of this library #1711

Closed
@robinmuhia

Description

@robinmuhia

The current latest version of elastic search -dsl has numerous deprecation warnings with regards to passing of the body parameter and transport options to elasticsearch. I am willing to contribute to fix the current implementation to match elasticsearch library's recommendations if no one is on it at the time. A snippet of such warnings is found below:

DeprecationWarning: The 'body' parameter is deprecated and will be removed in a future version. Instead use individual parameters.
    es.search(index=self._index, body=self.to_dict(), **self._params).body,
DeprecationWarning: Passing transport options in the API method is deprecated. Use 'Elasticsearch.options()' instead.
    return self._get_connection(using).indices.delete(index=self._name, **kwargs)

I have read the contributing guidelines which state i first have to open an issue before contributing.

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