
lucene at mikemccandless
Nov 19, 2009, 4:55 AM
Post #2 of 2
(345 views)
Permalink
|
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 [at] lombardodier> 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 [at] lucene > For additional commands, e-mail: java-user-help [at] lucene > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe [at] lucene For additional commands, e-mail: java-user-help [at] lucene
|