lucene sorting
0 posts in topic
Flat View  Flat View

Posted By:   Anonymous
Posted On:   Tuesday, April 4, 2006 05:35 AM


I'd like to sort results in a different way.

I need to change the sorting to use also a field in the document. Something like: newScore = (score * documentField).

Then use the newScore to sort results.

For example: give a bit more relevance to the recent document.

myScore = (luceneScore * doc.get("timestamp") )

I've tried to use the example in the "lucene in action" book (chapter 6), but I don't understand how to get the lucene score of the document implementing SortComparatorSource or working with scoreDocComparator.
About | Sitemap | Contact