Hits should be sorted according to score. Getting the first document should give you the one with the highest score.

Dennis

Nils Höller wrote:
Hi,

this is a short beginner question:

I am searching for something in my program
Hits hits = MySearcher.search(queryStr, 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

Nils


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to