使用 shuf 来打乱一个文件中的行或是选择文件中一个随机的行。

ES count(distinct X) 对某字段去重统计总数

Elasticsearch | 作者 junnan2014 | 发布于2017年08月21日 | 阅读数:8782

类似于SQL:select count(distinct userid) uc from post;
ES 该怎么解?(cardinality,不精确,有点坑啊!!!)
 
 
已邀请:

huangzhiqian - 213

赞同来自:

0.5%以内够了

要回复问题请先登录注册