Skip to content

to_dict() doesn't convert inner_hits #1520

Closed
@command-tab

Description

@command-tab

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions