groupby elasticsearch
GET usertag/usertag/_search { "query": { "match": { "tagname": "春节" } }, "size": 0, "aggs": { "myname1": { "terms": { "field": "id.keyword" }, "aggs": { "myname2": { "terms": { "field": "username.keyword" } } } } } }
GET usertag/usertag/_search { "query": { "match": { "tagname": "春节" } }, "size": 0, "aggs": { "myname1": { "terms": { "field": "id.keyword" }, "aggs": { "myname2": { "terms": { "field": "username.keyword" } } } } } }