I'll make sure no indexing is started before the optimization is done.
Most likely Sunday will be the optimization day for the indexes and every
other night the documents will be added to the index.

Only searching will be available through the web service while optimizing,
but this should not be a problem as an IndexReader will be opened, not a
second IndexWriter.

Ross

-----Original Message-----
From: Dan Armbrust [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 02, 2005 3:10 PM
To: java-user@lucene.apache.org
Subject: Re: how long should optimizing take


You should be careful, however, not to end up with two VM instances each 
trying to open an index writer at the same time - one of them is going 
to fail.

Aka, if someone using your web interface tries to add a new document to 
the index while you have the optimizer running standalone, the web 
interface is not going to be able to get a lock on the index to add the 
documents. 

Dan

Angelov, Rossen wrote:

>Thanks for the suggestion, Jian Chen's idea is very similar too.
>Probably optimizing that often is not necessary and not that critical for
>speeding up the searches.
>
>I'll try changing the index process not to optimize at all and execute the
>optimization independently of the indexing on a weekly bases.
>
>Ross
>
>  
>
>  
>

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


"This communication is intended solely for the addressee and is
confidential and not for third party unauthorized distribution."

Reply via email to