I'm using es python client elasticsearch-dsl-py
.
def post()
query = Search().query(some_query)
response = query.execute()
return response
The code raised errors because response
was a generator, while I hope it returned a json object.
So I wanna know if there was a method to serialize response
into json.