lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "luqun lou" <>
Subject Re: how to chang lucene's default sort algorithm?
Date Tue, 24 May 2005 01:32:05 GMT

>From: Daniel Naber <>
>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!

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message