Solr 3.4 group.truncate 不适用于构面查询
当使用分组与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
,那么计数是相同的,正如我所期望的 - 但不幸的是我只对分组结果感兴趣。
谢谢!
When using Grouping with group.truncate=true
, The following simple facet query:
facet.query=Monitor_id:[380000 TO 400000]
Doesn't give the same number as the nGroups
result for the equivalent filter query:
fq=Monitor_id:[380000 TO 400000]
I thought they should be the same - from the Wiki page:
group.truncate: If true, facet counts are based on the most relevant document of each group matching the query.
What am I doing wrong?
If I turn off group.truncate
then the counts are the same, as I'd expect - but unfortunately I'm only interested in the grouped results.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这不是一个错误,而是一个缺失的功能,如 SOLR-2863。正如问题 Lucene 需要支持矩阵分组面计数中所述。可以在 LUCENE-3097 中跟踪此功能。
This is not a bug, but a missing feature as has been described in SOLR-2863. As described in the issue Lucene needs to support matrix grouped facet counts. This feature can be tracked in LUCENE-3097.