Skip to content

Commit

Permalink
Fix bad facet count
Browse files Browse the repository at this point in the history
Use the correct ES value instead of the sum of all facets for each
  • Loading branch information
stefanw committed Dec 8, 2023
1 parent 7c42f87 commit 1b5707d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion froide/helper/search/queryset.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def get_aggregations(self):
return {
"fields": {
k: [
[i["key"], self.response["aggregations"][k]["doc_count"]]
[i["key"], i["doc_count"]]
for i in self.response["aggregations"][k][k]["buckets"]
]
for k in self.response["aggregations"]
Expand Down

0 comments on commit 1b5707d

Please sign in to comment.