You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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!
For example:
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.The text was updated successfully, but these errors were encountered: