在 Solr 中进行分层分面的方法? [英] Ways to do hierarchial faceting in Solr?

查看:19
本文介绍了在 Solr 中进行分层分面的方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果文档被列为 Book>Fiction>Sci-fi,则当您的构面查询为Book"、Book>Fiction"、Book>Fiction>Sci-fi"时,它必须是可搜索的.

If a doc is listed as Book>Fiction>Sci-FI, it must be searchable when your facet query is "Book", "Book>Fiction", "Book>Fiction>Sci-fi".

上网查了一下,想到的方法是:

I searched the Internet and the methods I came up with are:

1 在索引时间将Book>Fiction>Sci-fi"拆分为Book"、Book>Fiction"、Book>Fiction>Sci-fi"并存储它们在同一领域.

1 Split the "Book>Fiction>Sci-FI" into "Book", "Book>Fiction", "Book>Fiction>Sci-fi" at index-time itself and store them in same field.

2 有单独的字段 cat、sub_cat、sub_sub_cat.将类别拆分为相应的字段并使用 Pivot facets http://wiki.apache.org/solr/SimpleFacetParameters#Pivot_.28ie_Decision_Tree.29_Faceting

2 Have separate fields cat, sub_cat, sub_sub_cat. Split the catogories into corresponding fields and use Pivot facets http://wiki.apache.org/solr/SimpleFacetParameters#Pivot_.28ie_Decision_Tree.29_Faceting

还有哪些其他方法可以处理层次分面,以便它们可以支持任何复杂的查询?

What are other ways to do hierarchial facets, so that they can support any complex queries?

推荐答案

检查 http://wiki.apache.org/solr/HierarchicalFaceting

它提到了你提到的选项以及更多.

Its mentioned the options mentioned by you and some more.

如果您可以使用 Solr 4.0,Pivot facets 是层次分面的解决方案

Pivot facets is the solution for hierarchy faceting if you can use Solr 4.0

如果升级有问题,可以勾选@http://www.lucidimagination.com/why-lucid/webinars/mastering-power-faceted-search(类似于您的选项 1)

If you have issues upgrading, you can check the option @ http://www.lucidimagination.com/why-lucid/webinars/mastering-power-faceted-search (similar to option 1 of yours)

这篇关于在 Solr 中进行分层分面的方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆