使用 Grouping with 时group.truncate=true
,以下简单的方面查询:
facet.query=Monitor_id:[380000 TO 400000]
给出的数字与nGroups
等效过滤器查询的结果不同:
fq=Monitor_id:[380000 TO 400000]
我认为它们应该是相同的 - 来自Wiki 页面:
group.truncate: If true, facet counts are based on the most relevant document of each group matching the query.
我究竟做错了什么?
如果我关闭,group.truncate
那么计数是相同的,正如我所期望的 - 但不幸的是,我只对分组结果感兴趣。
谢谢!