Skip to content

Switch from elasticsearch-dsl-py dependency to elasticsearch-py (it has been merged into a single package) #491

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
violuke opened this issue Apr 22, 2025 · 5 comments · May be fixed by #492

Comments

@violuke
Copy link

violuke commented Apr 22, 2025

See https://github.com/elastic/elasticsearch-dsl-py/releases/tag/v8.18.0

@safwanrahman
Copy link
Collaborator

Thanks a lot @violuke. Need to see the migration guide to port it.

@violuke
Copy link
Author

violuke commented Apr 22, 2025

I've started looking at this in my fork. It's not fully tested yet and needs Elasticsearch v9 too. If I get time for more progress, I'll let you know how it goes, but it's a starting point. The migration should be pretty simple as the code was just copied into the other python package.

@Lodimup
Copy link

Lodimup commented Apr 22, 2025

Thanks @violuke !

@Lodimup
Copy link

Lodimup commented Apr 22, 2025

@safwanrahman the migration guide looks very simple https://elasticsearch-dsl.readthedocs.io/en/latest/#elasticsearch-dsl

Uninstall the elasticsearch-dsl package
Make sure you have version 8.18.0 or newer of the elasticsearch package installed
Replace elasticsearch_dsl with elasticsearch.dsl in your imports

@violuke
Copy link
Author

violuke commented Apr 22, 2025

I've made my fork into a PR and allowed maintainer edits in case it's helpful, see #492.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants