Cam Bazz wrote:

Hello,

When we delete documents from index - will it autoflush when count of
deleted documents reach a certain value. I am controlling my own flush
operation, and I have disabled autoflush by:

writer.setMaxBufferedDocs(IndexWriter.DISABLE_AUTO_FLUSH);

By default (in 2.3) the writer only flushes when RAM usage hit 16 MB. It should not flush due to # buffered docs nor # buffered delete terms, and, that method call shouldn't be necessary since it's already the default.


But I have taken a peek at the IndexWriter and the DocumentWriter source codes and from what I understand delete will flush the index when it reaches
a certain threshold.
But I am not sure if that will happen when the autoflush is disabled.

Right, if you disable it (as above), it won't flush by count but rather by RAM.

Also when deleted documents trigger a flush, that will be a cumulative flush
that flushes all the addDocs as well? is this correct?

Yes whenever a flush occurs (due to any trigger) both buffered docs and buffered deletes are flushed.

Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to