Re: getting the maximum Hits doc

2007-01-05 Thread Nils Höller
Am Donnerstag, den 04.01.2007, 14:38 -0600 schrieb Dennis Kubes: > Hits should be sorted according to score. Getting the first document > should give you the one with the highest score. > > Dennis Hi thanks for your comment, I found the mistake. Now the Hits are sorted. Nils > > Nils Höl

Re: getting the maximum Hits doc

2007-01-05 Thread Erik Hatcher
Maybe your MySearcher is doing something different than the "Hits IndexSearcher.search()" method? On Jan 4, 2007, at 3:38 PM, Dennis Kubes wrote: 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

Re: getting the maximum Hits doc

2007-01-04 Thread Dennis Kubes
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); N

getting the maximum Hits doc

2007-01-04 Thread Nils Höller
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.