##// END OF EJS Templates
report stat: fix filter clause in agg
ergo -
Show More
@@ -33,10 +33,12 b' class ReportStatService(BaseService):'
33 33 "aggs": {
34 34 "sub_agg": {"value_count": {"field": "tags.group_id.values"}}
35 35 },
36 "filter": [
36 "filter": {
37 "and": [
37 38 {"terms": {"resource_id": [resource_id]}},
38 39 {"exists": {"field": "tags.group_id.values"}},
39 ],
40 ]
41 },
40 42 }
41 43 },
42 44 "query": {
General Comments 0
You need to be logged in to leave comments. Login now