lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roberto Franchini <>
Subject Re: Replicator: how to use it?
Date Mon, 24 Mar 2014 16:31:25 GMT
On Thu, Mar 20, 2014 at 8:47 AM, Shai Erera <> wrote:
>> Even if the commit is called just before the close, the close triggers
>> a last commit.
> That seems wrong. If you do writer.commit() and them immediately
> writer.close(), and there are no changes to the writer in between (i.e. a
> thread comes in and adds/updates/deletes a document), then close() should
> not create a new commit point. Do you see that it does?

I've added a waitForMerges call before the last commit, then I close the writer:

            replicator. replicate(new IndexRevision(writer));

Now it works.
Thank you very much for the support.
Roberto Franchini
The impossible is inevitable.           
Tel +39.011.562.71.15 skype:ro.franchini tw:@robfrankie

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message