标签: elasticsearch elasticsearch-dsl
我怎样才能在elasticsearch中写这个:
SELECT avg(sum) FROM ( SELECT sum(rev) as sum FROM table GROUP BY user_id )