【问题标题】:Solr group query records mismatchSolr 组查询记录不匹配
【发布时间】:2012-01-18 09:36:25
【问题描述】:

我在 solr 中发起了一个组查询,下面是我的查询

http://localhost:8983/solr/select/?q=to_domain:"gmail.com"+AND+主机名:"服务器名"+AND+log_date:[2011-12-08T00:00:00Z+TO+2011-12-10T23:59%:9Z]&group =true&group.field=id&group.limit=10&rows=100000

查询成功触发,我在结果中得到以下内容

<int name="matches">71133</int>

问题是现在当我计算 groupValue 部分时,它是 70311

任何想法为什么会出现这种差异?

【问题讨论】:

    标签: solr


    【解决方案1】:

    &lt;int name="matches"&gt;71133&lt;/int&gt; 为您提供记录总数,而不是组数。

    在请求参数中使用group.ngroups=true 为您提供响应中的组数。

    【讨论】:

      猜你喜欢
      • 2014-02-08
      • 1970-01-01
      • 1970-01-01
      • 2023-03-22
      • 1970-01-01
      • 2017-03-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多