lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mordo, Aviran (EXP N-NANNATEK)" <aviran.mo...@lmco.com>
Subject RE: IndexWriter.optimize() need to much time.
Date Wed, 05 Oct 2005 14:33:36 GMT
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:eric.louvard@hauk-sasko.de] 
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:eric.louvard@hauk-sasko.de]
>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: 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
>
>
>
>
>  
>



---------------------------------------------------------------------
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