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 <[email protected]> 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: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to