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