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


On Thu, 2007-03-15 at 10:21 +0000, xiong wrote:
> Hi there,
> 
> Just like google: the more user clicks of search results,
>  the higher rank they are.
> 
> How to implement this in lucene?
> 
> I've read the javadoc of org.apache.lucene.search package,
>  but still dont know how.
> 
> Some sample code will be great.
> 
> Thanks in advance,
> 
> Xiong
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> <<This email has been scanned for virus and spam content>>
Daniel Rosher
Developer


d: 0207 3489 912
t: 0870 2020 121
f: 0870 2020 131
m: 
http://recruiter.hotonline.com/






- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - - - - - - - - - - - - -
This message is sent in confidence for the addressee only. It may contain 
privileged 
information. The contents are not to be disclosed to anyone other than the 
addressee. 
Unauthorised recipients are requested to preserve this confidentiality and to 
advise 
us of any errors in transmission. Thank you.


This message has been scanned for viruses by BlackSpider MailControl - 
www.blackspider.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to