lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nils Höller <>
Subject getting the maximum Hits doc
Date Thu, 04 Jan 2007 20:14:43 GMT

this is a short beginner question:

I am searching for something in my program
Hits hits =, searchRes.indexPath); 

Now I only want the Document with the highest score.

Is there a better way, then iterating through all hits?
The Hits objects seems to be not sorted.

Thanks for your help


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

View raw message