Digg-like search result ranking with Lucene / Solr?

ε祈祈猫儿з 提交于 2019-12-08 03:06:04

问题


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?


回答1:


Solr's FunctionQuery is exactly what you need:

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



来源:https://stackoverflow.com/questions/1996668/digg-like-search-result-ranking-with-lucene-solr

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!