【问题标题】:Apache Solr - Wrong facet countApache Solr - 错误的方面计数
【发布时间】:2013-07-15 20:07:59
【问题描述】:

Solr 3.6 中是否存在任何已知问题,在分组时,过滤查询 (fq) 与分面一起应用时,分面计数返回错误。

如果我有疑问:

..indent=on&wt=json&start=0&rows=500&q=*:*&group=true&group.truncate=true&group.ngroups=true&group.field=Id&facet=true&facet.mincount=1&facet.field={!ex=filed1}field1&
facet.field={!ex=filed2}field2

如果用户在 field1 上过滤,那么我有以下查询:

...indent=on&wt=json&start=0&rows=500&q=*:*&fq={!tag=dt}field1:value&group=true&group.truncate=true&group.ngroups=true&group.field=Id&facet=true&facet.mincount=1&facet.field={!ex=dt}field1&facet.field={!ex=dt}field2

我注意到每个查询返回的结果中的方面计数不同。

谢谢,

【问题讨论】:

  • 也发布你的结果数据..
  • 在结果中 field1 和 field2 的数字不同。在第一个结果中:它是 3, 4。第二个查询的结果是 2, 0
  • 你能看看有没有空面回来吗?

标签: apache solr lucene


【解决方案1】:

这里似乎有两个问题:

  1. 您在 !ex 查询中将 field1 拼写为 filed1
  2. 您正在使用 !ex 本地参数,但没有使用 corresponding !tag parameter

【讨论】:

  • 即使进行了这些更改,仍然看到错误的方面计数。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-01-18
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多