Im使用ES 1.4.当我执行聚合时,结果也返回命中数组.有没有办法只返回聚合?
有可能的.您应该在Url中输入附加的参数(?search_type = count).看看这里:
@H_301_5@
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-aggregations.html#_returning_only_aggregation_results
原文链接:https://www.f2er.com/javaschema/281897.html