首页 > 代码库 > groupby elasticsearch

groupby elasticsearch

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

  

groupby elasticsearch