Skip to content
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

to_dict() doesn't convert inner_hits #1520

Open
command-tab opened this issue Jul 28, 2021 · 0 comments
Open

to_dict() doesn't convert inner_hits #1520

command-tab opened this issue Jul 28, 2021 · 0 comments
Labels
Category: Bug Something isn't right Priority: High

Comments

@command-tab
Copy link

Maybe related to #291, I'm attempting to dump my elasticsearch-dsl response by calling to_dict(), but it doesn't appear to walk the entire structure. inner_hits appear to be Response instances, but calling to_dict() on the top-level response doesn't convert them. Why does it convert hits but not inner_hits? Is there a simple way to convert the entire response without having to pick apart the structure and manually call to_dict() as needed?

I'm using Python 3.8 and elasticsearch-dsl 7.4.0.

Thanks so much for this library! ❤️ It's incredibly useful.

@srikanthmanvi srikanthmanvi added the Category: Bug Something isn't right label Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Bug Something isn't right Priority: High
Projects
None yet
Development

No branches or pull requests

3 participants