在Solr中倒塌之前
我在Solr中使用CollapSequeSporparser插件来跨一个公共字段崩溃结果。
引用官方索尔文档 -
此解析器将结果设置为每个组的单个文档,然后将结果设置为其余的搜索组件。因此,所有下游组件(刻面,突出显示等)都将与折叠结果集一起使用。
查询中有多个方面字段,对于一个特定的方面,我需要在崩溃发生之前以及对他人的往常情况之前进行刻面或聚合。我尝试使用标签和使用collapse.facet = facet。
有什么办法在Solr中做到这一点?我正在使用Solr-7.7.2。
提前致谢!
I am using CollapseQueryParser Plugin in Solr to collapse results across one common field.
Quoting the official Solr Documentation -
This parser collapses the result set to a single document per group before it forwards the result set to the rest of the search components. So all downstream components (faceting, highlighting, etc.) will work with the collapsed result set.
There are multiple facet fields in the query, and for one particular facet, I need to do the faceting or aggregation before the collapse happens and as usual for others. I tried excluding it with a tag and using collapse.facet=facet.before, but these didn't work.
Is there any way to do this in Solr? I am using Solr-7.7.2.
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如评论中所述,我找到了一种处理此问题的方法。将其发布给可能将来可能会遇到的人。
我必须单独标记倒塌查询,然后在需要排除的任何地方使用该标签,如下所示。
碰撞时 -
和faceTing--
As mentioned in the comments, I found a way to handle this. Posting this for someone who might encounter this in future.
I had to tag the collapse query seperately and then use that tag wherever i needed exclusion as shown below.
While collpsing -
And while faceting -