Woops -- that was not intentional.
It should be called for both additions and deletions, so, it's safe
to fix it in your local IndexWriter.java, and I'll open a Jira, add a
unit test and fix it in Lucene.
Thanks for raising this!
Mike
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]