Just use 2 different indices? One temp one that is being optimized and one
current being used. Then switch the paths on your application when the temp
one is ready.

----- Original Message -----
From: "Eric Louvard" <[EMAIL PROTECTED]>
To: <java-user@lucene.apache.org>
Sent: Wednesday, October 05, 2005 3:10 PM
Subject: IndexWriter.optimize() need to much time.


> Hello,
>
> my problem is that IndexWriter.optimize() take 20 minutes. OK it is not
> a lot of time, but I can't allow me to block the system such a long time
> :-(.
> I don't know when I can take the time for optimize().
>
> Has someone allready find a workarround for this problem ?
> Is it possible to make a sleep in the 'optimize() while' so that the
> index is avaible for another Thread ? Would it be usefull ?
>
> thanks
>     Éric.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


                
___________________________________________________________ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to