this approach has one pitfall:
merging indexes call optimize() two times (before and after merge)
Mordo, Aviran (EXP N-NANNATEK) wrote:
While optimizing you can create a new temp index (you can even use a
RAMDirectory - since it'll be fairly small), and index all the new documents
there. When you are finished with the optimizing just merge the temp into the
main index.
HTH
Aviran
http://www.aviransplace.com
-----Original Message-----
From: Eric Louvard [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 05, 2005 10:27 AM
To: java-user@lucene.apache.org
Subject: Re: IndexWriter.optimize() need to much time.
Of course I can acces IndexReader, but I need to acces IndexWriter during
optimization.
If I am using a 'temp-index' I need to merge it with the optimized index how
can I do it ?
Thanks.
Éric
Mordo, Aviran (EXP N-NANNATEK) wrote:
The index is available for search even during optimization, you should not have
any problem with that.
Aviran
http://www.aviransplace.com
-----Original Message-----
From: Eric Louvard [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 05, 2005 10:10 AM
To: java-user@lucene.apache.org
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]
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
regards,
Volodymyr Bychkoviak
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]