lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Naber <>
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:


(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.



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

View raw message