类似Digg的搜索结果排名与Lucene / Solr? [英] Digg-like search result ranking with Lucene / Solr?

查看:145
本文介绍了类似Digg的搜索结果排名与Lucene / Solr?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Solr进行搜索。



我有一个整数字段为 popular 的文档。



我想通过常规全文搜索
相关性和流行度的组合对结果进行排名。

有点像在digg中进行搜索 - 结果
的排名是基于搜索相关性以及
发布的发布数量。

我没有任何具体的排名算法。但是这个
可以用solr完成吗?

解决方案

href =http://wiki.apache.org/solr/FunctionQuery =noreferrer> http://wiki.apache.org/solr/FunctionQuery


I'm using Solr for search.

I have documents that have an integer field "popularity".

I want to rank results by a combination of normal fulltext search relevance and popularity.

It's kinda like search in digg - result ranking is based on the search relevance as well as how many digs a posting has.

I don't have any specific ranking algorithm in mind. But is this something that can be done with solr?

解决方案

Solr's FunctionQuery is exactly what you need:

http://wiki.apache.org/solr/FunctionQuery

这篇关于类似Digg的搜索结果排名与Lucene / Solr?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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