使用 Solr 4 提供相关搜索 [英] Offer related searches using Solr 4

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

问题描述

如何在搜索结果页面上显示相关搜索建议..

How to display a Related Searches suggestions on a Search Result page..

例如,如果我正在搜索 SSL,我想建议.. SSL 证书、SSL 密封、使用 SSL 的安全站点、高级 SSL 证书作为建议...

So for example, if I'm searching for SSL, I want to suggest.. SSL Certificates, SSL Seal, Secure Site using SSL, Premium SSL Certificate as a suggestions...

这是可以使用 Solr 开发的东西吗?当我们使用 Solr 4.0 执行搜索时.

Is this something which can be developed using Solr? As we're performing searches using Solr 4.0.

推荐答案

Solr 不为以前的搜索提供开箱即用的建议.
因此,如果您想使用 Solr 建议相关搜索,您必须索引之前的搜索,然后将它们作为自动建议提供.
您可以在执行搜索时执行此操作,也可以为此挖掘查询日志.
该方法可以使用普通搜索,正如我从您的示例中看到的那样,您试图仅在执行的先前搜索的内容中查找 SSL.

Solr does not provide Out of the Box suggestions for previous searches.
SO if you want to suggest related searches with Solr, you have to index the previous searches and then provide them as Auto suggestion.
You can do it as the search is performed or mine the query logs for the same.
The approach can be using normal search as I see from you example where you are trying to look only for SSL in the content of the previous search performed.

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

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