lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Naber <daniel.na...@t-online.de>
Subject Re: Poor Lucene Ranking for Short Text
Date Wed, 27 Oct 2004 19:14:23 GMT
On Wednesday 27 October 2004 20:20, Kevin A. Burton wrote:

> http://www.peerfear.org/rss/permalink/2004/10/26/PoorLuceneRankingForSho
>rtText/

(Kevin complains about shorter documents ranked higher)

This is something that can easily be fixed. Just use a Similarity 
implementation that extends DefaultSimilarity and that overwrites 
lengthNorm: just return 1.0f there. You need to use that Similarity for 
indexing and searching, i.e. it requires reindexing.

Regards
 Daniel

-- 
http://www.danielnaber.de

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message