Digg-like search result ranking with Lucene / Solr?
Asked Answered
D

1

2

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?

Denounce answered 3/1, 2010 at 22:53 Comment(0)
D
6

Solr's FunctionQuery is exactly what you need:

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

Dithyrambic answered 4/1, 2010 at 14:29 Comment(1)
would be good if you could add an example your self based on the original question :)Ambiguous

© 2022 - 2024 — McMap. All rights reserved.