I am using Lucene/Solr for my log search tool. Is there a way I can perform a commit operation on my IndexWriter when a particular set of docs is flushed from memory to the disk. My RamBufferSize is 24Mb and MergeFactor is 10.
Or is calling commit in frequent intervals irrespective of the flushes the only way? I wish the autocommit feature was not deprecated.
You might consider using the commitWithin feature of Solr. This will hand off the commit responsibilities to Solr.
I use this quite frequently when adding documents to help keep my as close to NRT (near real time) as I can, without the need for issuing commits at frequent intervals.