lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antony Bowesman <>
Subject Re: How to improve performance of large numbers of successive searches?
Date Thu, 10 Apr 2008 21:26:58 GMT
Chris McGee wrote:
> These tips have significantly improved the time to build the directory and 
> search it. However, I have noticed that when I perform term queries using 
> a searcher many times in rapid succession and iterate over all of the hits 
> it can take a significant time. To perform 1000 term query searches each 
> with around 2000 hits it takes well over a minute. The time seems to vary 

If you are searching using Hits = then you should use a 
HitCollector, or the TopDocs method instead.  Iterating over Hits will cause the 
search to be remade every 100 hits.


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

View raw message