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

查看:94
本文介绍了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查询语法,它将返回构面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?

推荐答案

是的,您可以直接使用任何 indexed 字段.但是,除非您根据数据类型配置构面字段.

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.

Faceting.当用户选择构面值时使用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:

  • http://lucene.apache.org/solr/tutorial.html
  • http://www.lucidimagination.com/Community/Hear-from-the-Experts/Podcasts-and-Videos/Solr-Tutorial

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

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