Skip to content

Commit

Permalink
🚑 Hot fix (#1118)
Browse files Browse the repository at this point in the history
  • Loading branch information
damm89 authored Jan 10, 2024
1 parent 15320aa commit c46f4db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/src/zac/elasticsearch/searches.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,9 @@ def count_by_iot_in_zaak(zaak: str) -> Dict[str, int]:
# elasticsearch-dsl does not support multiterm aggregation yet - workaround.
s.aggs.bucket("parent", "terms", field="informatieobjecttype.catalogus")
s.aggs["parent"].bucket(
"child", "terms", field="informatieobjecttype.omschrijving__keyword"
"child", "terms", field="informatieobjecttype.omschrijving.keyword"
)

results = [bucket.to_dict() for bucket in s.execute().aggregations.parent.buckets]
results = factory(ParentAggregation, results)
iots_found = {}
Expand Down

0 comments on commit c46f4db

Please sign in to comment.