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 <[EMAIL PROTECTED]> 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: [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