无论才能、知识多么卓著,如果缺乏热情,则无异纸上画饼充饥,无补于事。

minDocCount设置为0无效

Elasticsearch | 作者 ruyanxiang | 发布于2017年11月28日 | 阅读数:5130

我在聚合中把minDocCount设置为0,但是文档数为0的桶没有聚合出来,和设置为1的效果是一样的

AggregationBuilder aggregationBuilder = AggregationBuilders.terms("deals")
                        .field("dealid")
                        .size(dealIds.size()) 
                        .minDocCount(0)
                        .order(Terms.Order.count(false));
 
已邀请:

要回复问题请先登录注册