Re: Clarification about IndexWriter.deleteDocuments and flush.

2008-01-21 Thread Cam Bazz
Thanks Michael, > Right, if you disable it (as above), it won't flush by count but > rather by RAM. I had made a test case monitoring ram usage and never flushing manually - (with disabled autoflush) and I think it wont flush itself when it reaches a certain buffered ram. Having read the source

Re: Clarification about IndexWriter.deleteDocuments and flush.

2008-01-21 Thread Michael McCandless
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

Clarification about IndexWriter.deleteDocuments and flush.

2008-01-21 Thread Cam Bazz
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); But I have taken a peek at the IndexWriter