From 14f400b2026d41507ff4bddcea15805b3971629c 2019-03-26 23:03:10 From: Marcin Lulek Date: 2019-03-26 23:03:10 Subject: [PATCH] elasticsearch: 5.x fixes --- diff --git a/backend/src/appenlight/models/services/report_stat.py b/backend/src/appenlight/models/services/report_stat.py index 4ab4b45..87d3377 100644 --- a/backend/src/appenlight/models/services/report_stat.py +++ b/backend/src/appenlight/models/services/report_stat.py @@ -31,7 +31,7 @@ class ReportStatService(BaseService): "aggs": { "reports": { "aggs": { - "sub_agg": {"value_count": {"field": "tags.group_id.values"}} + "sub_agg": {"value_count": {"field": "tags.group_id.values.keyword"}} }, "filter": { "bool": {