aggs 如下例子,按areaName分组,分别取createdOn的最小值、最大值,对adCount求和 GET /advertising/_doc/_search { "size":0, "aggs":{ "GROUP_BY_AREA":{ "terms":{ "field":"areaName" }, "aggs":{