在多值 Solr 字段上向下钻取(组合、通过方面)

发布于 2024-11-24 04:24:20 字数 712 浏览 4 评论 0原文

我希望深入研究包含(空格)分隔的单词列表的多值字段;但在深入研究的每一步仍然返回各个方面。

示例表
ID,属性(多值字段)
1、《黄绿广场》
2、《黄圆紫》
3、《黄紫》
4,“绿色” - 并不重要,只是显示存在不包含黄色的属性

我能够深入了解第一个属性 >(“黄色”),并通过构面返回以下属性:
黄色 (3) - 从显示中省略;但无论如何都返回了
紫色 (2)
绿色 (1)
回合 (1)
Square (1)

返回以下结果:1, 2, 3

所以我期望的是,如果我应用第二个属性(“紫色”),我会得到以下:
紫色 (2) - 从显示中省略;但无论如何都返回了
黄色 (2) - 从显示中省略;但无论如何都返回了
Round (1)

返回以下结果: 2, 3

我们遇到的问题是,一旦应用了第二个方面属性,我们就会得到我们期望的结果;但所有方面都会消失(即使是属性方面之外的方面)。

我希望能够深入到单个记录;在本例中将应用“Round”,并获取记录 ID 2。

任何帮助将不胜感激; solr 文档并没有真正帮助(也没有任何书籍)。

I'm looking to drill down on a multivalued field that contains (space) delimited list of words; but still returning facets at each step of the drill-down.

Example Table
ID, Properties (multivalued field)
1, "Yellow Green Square"
2, "Yellow Round Purple"
3, "Yellow Purple"
4, "Green" - Doesn't really matter, just showing there are properties that don't contain Yellow.

I am able to drill down on the first property ("Yellow"), and have the the following properties return, via facet:
Yellow (3) - Omitted From Display; but returned regardless
Purple (2)
Green (1)
Round (1)
Square (1)

And the following results returned: 1, 2, 3

So what I expect is that if I apply the second property ("Purple"), I get the following:
Purple (2) - Omitted From Display; but returned regardless
Yellow (2) - Omitted From Display; but returned regardless
Round (1)

And the following results returned: 2, 3

The issue we're running into is that once the 2nd facet property is applied, we get the results we are expecting; but all the facets disappear (even ones outside of the property facet).

I'd like to be able to drill down to a single record; which in this case would to apply "Round", and getting record ID 2.

Any help would be greatly appreciate; the documentation solr hasn't really helped (nor have any of the books).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文