标签: elasticsearch-sql

elasticsearch中对应的SQL聚合查询

我研究了elasticsearch聚合查询,但找不到它是否支持多个聚合函数。换句话说,我想知道elasticsearch是否可以生成与此Sql聚合查询等效的内容:

  SELECT account_no, transaction_type, count(account_no), sum(amount), max(amount) FROM index_name GROUP BY account_no, transaction_type Having count(account_no) > 10
Run Code Online (Sandbox Code Playgroud)

如果是,怎么办?谢谢。

aggregate-functions elasticsearch elasticsearch-aggregation elasticsearch-sql

1
推荐指数
1
解决办法
2043
查看次数