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: adding documents while optimizing?
Date Thu, 19 Nov 2009 12:55:35 GMT
It's fine to do so, and you should see good concurrency (and if you
don't, please report back!).

But, note that the semantics of optimize() is that it only ensures
those segments present when the call started are the ones that will be
merged down to one.

Any newly created segments (eg flushing the docs you're adding) will
not be optimized away.

Mike

On Thu, Nov 19, 2009 at 5:42 AM, vsevel <v.sevel@lombardodier.com> wrote:
>
> Hi,
>
> is this a good idea/possible to continue writing events to an index while
> optimizing it, in 2 differents threads, in the same process, using the same
> writer?
>
> thanks,
> vince
> --
> View this message in context: http://old.nabble.com/adding-documents-while-optimizing--tp26421269p26421269.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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