From: Daniel Naber <[EMAIL PROTECTED]>
Reply-To: java-user@lucene.apache.org
To: java-user@lucene.apache.org
Subject: Re: how to chang lucene's default sort algorithm?
Date: Mon, 23 May 2005 19:33:40 +0200

On Monday 23 May 2005 15:30, luqun lou wrote:

>         I am a beginner of IR.I want to use Lucene with BM25
> algorithm,but i dont know how to change its default sort algorithm?

Implement your own Similarity class derived from Similarity and activate it
using setSimilarity(mySmilarity).
But the BM25 algorithm needs each document length and average document length,how can i get this numbers. i look at the indexreader class,it dont provide this number or interface?

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/


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

Reply via email to