elasticsearch-dsl-py
elasticsearch-dsl-py copied to clipboard
to_dict() doesn't convert inner_hits
Maybe related to https://github.com/elastic/elasticsearch-dsl-py/issues/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.