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: sorting by score and an additional field
Date Thu, 04 Nov 2004 08:34:10 GMT
On Thursday 04 November 2004 03:52, Chris Fraschetti wrote:

> I can only get it to sort by one or the other... but when it does one,
> it does sort correctly, but together in {score, custom_field} only the
> first sort seems to apply.

Do you use real documents for that test? The score is a float value and 
it's hardly ever the same for two documents (unless you use very short 
test documents), so that's why the second field may not be used for 
sorting.

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