Solr 和构面搜索 [英] Solr and facet search

查看:25
本文介绍了Solr 和构面搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在您设置架构时是否内置了构面搜索,或者您是否需要做一些事情来设置它?

Does facet searching come built in when you setup your schema or do you have to do some things to set this up?

对于您设置为可排序的所有字段,它基本上是开箱即用的吗?

Does it basically work out of the box on all the fields that you have setup to be sortable?

那你只要使用 fq 查询语法,它就会返回 facet xml 和搜索结果?

then you just use the fq query syntax and it will return the facet xml along with the search results?

有没有一篇关于这方面的好文章对您有所帮助?

Is there a nice article on this that helped you first time around?

推荐答案

是的,您可以对任何索引字段开箱即用.但是,在您根据您的数据类型配置分面字段之前,它可能不会给您预期的结果.

Yes, you can facet any indexed field out of the box. However it might not give you the results you expect until you configure faceting fields according to your data types.

分面是通过 facet.* 参数启用和使用的,而不是 fq.fq 在用户选择一个构面值时使用.

Faceting is enabled and used through the facet.* parameters, not fq. fq is used when the user selects a facet value.

一些不错的 Solr 教程:

Some good Solr tutorials:

这篇关于Solr 和构面搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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