Hello,World

es 有没有 快速distinct 摸个字段 而不需要统计数量 doc_count 的方式

Elasticsearch | 作者 wright | 发布于2020年02月22日 | 阅读数:2031

es 有没有 快速distinct 摸个字段 而不需要统计数量 doc_count 的方式
 
还是说 distinct 只能用  aggregations  按字段 统计。
 
只是想想简单的 实现类似  select distinct name  where a=b; 
 并不需要 去做统计 那么耗时的 操作。
 
es有没有 对应的快速一点功能
已邀请:

liuxg - Elastic

赞同来自: Scool

请问一下cardinality是你需要的吗?
https://www.elastic.co/guide/e ... .html

oliver_zhang

赞同来自:

折叠功能

要回复问题请先登录注册