lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <>
Subject Re: Performance for search when I need all Hits
Date Mon, 19 Jan 2004 17:21:48 GMT
If you need all search results, use a HitCollector rather than Hits.  
Look at the variants of the method.  I suspect you 
will see the speed with the HitCollector match what you see with your 
Hits tricks if not even faster.


On Jan 19, 2004, at 10:35 AM, Hanjo Riege wrote:

> Hi all,
> i have a question about the performance:
> if i need all the results (about 2000 Hits) of a search and read them 
> from first to last then it needs about 3000 ms.
> After a short look at the method Hits.getMoreDocs(int i) i decided to 
> read the last doc first. Now it needs only 1000 ms to read them all.
> It seems that the Method is not optimized for getting all the results.
> Is this a point for improvement or do i miss something?
> regards
> Hanjo
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message