I am using pyes 0.19.1 with the same problem, but I can get one field from the result set.
Replace this line:
resultset = ES.search(query=q, indices='oolong', fields=["name"])
to that:
resultset = ES.search(query=q, indices='oolong', fields="name")
This works for me. However, I did not understand how to get multiple fields. When I pass the list to the fields, it always returns empty dictionaries.
source share