lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <>
Subject Re: IndexWriter.doAfterFlush()
Date Tue, 11 Mar 2008 17:52:57 GMT

Woops -- that was not intentional.

It should be called for both additions and deletions, so, it's safe  
to fix it in your local, and I'll open a Jira, add a  
unit test and fix it in Lucene.

Thanks for raising this!


Mark Ferguson wrote:

> Hi everyone,
> I have written an extension of IndexWriter which overrides its
> doAfterFlush() method. I had no problems with this in Lucene 2.2 but I
> noticed that in Lucene 2.3 the behavior of doFlush() has been  
> changed so as
> to only call doAfterFlush() on deletions rather than on both  
> deletions and
> additions to the index. I am wondering what the reasoning behind  
> this is and
> if it is safe for me to modify IndexWriter for myself locally to  
> call the
> method on additions as well.
> Thank you,
> Mark

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

View raw message