lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: How do you know when index.optimize has finished ?
Date Fri, 28 Jan 2011 11:34:04 GMT
You can call IW.waitForMerges().

Mike

On Fri, Jan 28, 2011 at 4:16 AM, Paul Taylor <paul_t100@fastmail.fm> wrote:
> I'm building six different indexes in series, at the end of building an
> index I call optimize() and then close() the writer, then move onto the next
> one.
> I build them in series because they are extracting the data from a database
> and I don't want to overload the database.
> However the optimization takes a while and because that does'nt effect the
> db I want to start building the next index whilst the optimize of the last
> one is being done by using optimize(false), but if I do this how do I know
> when the optimization is finished so I can close the writer ?
>
> thanks Paul
>
> ---------------------------------------------------------------------
> 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