用于在top_hits上过滤的弹性搜索查询

时间:2016-07-11 06:38:11

标签: elasticsearch kibana sense

假设我有一个格式如下的表:

sdk_index {device_id, serve_count, event_time}

我想制作一个弹性搜索查询,它会给我

的结果

1. group by device id and take the max(event_time)

2. on the result of 1 check for rows with serve_count > 0 and return the count.

1 个答案:

答案 0 :(得分:1)

不允许对聚合进行分析。此功能请求已关闭:feature request for reducers