daniel rosher <daniel.rosher <at> hotonline.com> writes: > > Hi, > > This can be achieved by implementing your own implementation of the > SortComparitorSource interface. > > Section 6.1 of Lucene in Action will help you here. > > We currently use this method to alter the ranking of documents depending > on the age of the document by multiplying the current score by a cached > function f(D) ~ age_of_document_D, so that final score = doc.score*f(D); > > Regards, > Dan > Hi Dan,
By implementing SortComparitorSource, did you recount all the hits scores? If the returned documents number is big, will it be a performance issue? Regards, Xiong --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]