lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: Can I warm-up my search for it's performance?
Date Sun, 11 Dec 2005 06:20:37 GMT
Yes you can.  Just open an IndexReader/Searcher, say in a separate
thread, run a search on it, and then swap your previous
IndexReader/Searcher with the warm one.  If you use sorting, make your
"background query" with the sort option, so the FieldCaches get
populated and warmed up.

Otis

--- Cheolgoo Kang <appler@gmail.com> wrote:

> Hi,
> 
> I'm running an index on FSDirectory with 0.4M documents with each of
> 7 fields.
> 
> When I open an IndexReader and an IndexSearcher, the average search
> time with hits of 0.2M items (yeah, very common word) takes about
> 150~250 msec and it's pretty good. But the first time just after
> opening IndexReader or IndexSearcher, search with the same keyword
> takes about 3~4 secs (10 times more than the average) and this makes
> our search system looks slow.
> 
> I think it could be the caching issue with OS and file system.
> 
> Any way, can I warm our IndexSearcher or IndexReader up to reduce
> this problem?
> 
> --
> Cheolgoo
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message