Open
Description
For example:
resp = MyModel.__elasticsearch__.search(query)
resp.aggregations
# Search is conducted
resp.response
# The same search is run again
I see others have had a similar issue before. It appears the issue is that .aggregations
calls .raw_response
which executes the query, and then .response
re-executes the query. Is there any reason not to implement this patch? I see there was a concern about thread-safety.
Activity
picandocodigo commentedon Feb 1, 2021
Hi @aburkard,
Thanks for reporting this, I'll be working on this library soon after the release of the Elastic stack 7.11 and I'll take a look at this issue.
Cheers!