Re: Auto commit when flush

2012-06-27 Thread Shai Erera
You could extend IndexWriter to AutoCommitIndexWriter and override flush() to call super.flush() then commit() (or simply just commit()). I haven't tested it but I think it should work. However, make sure you understand the implications of commit() -- it's heavier than just flush. Perhaps you can

Re: Auto commit when flush

2012-06-27 Thread Li Li
flush is not commit. On Thu, Jun 28, 2012 at 2:42 PM, Aditya wrote: > Hi Ram, > > I guess IndexWriter.SetMaxBufferedDocs will help... > > Regards > Aditya > www.findbestopensource.com > > > On Wed, Jun 27, 2012 at 11:25 AM, Ramprakash Ramamoorthy < > youngestachie...@gmail.com> wrote: > >> Dear,

Re: Auto commit when flush

2012-06-27 Thread Aditya
Hi Ram, I guess IndexWriter.SetMaxBufferedDocs will help... Regards Aditya www.findbestopensource.com On Wed, Jun 27, 2012 at 11:25 AM, Ramprakash Ramamoorthy < youngestachie...@gmail.com> wrote: > Dear, > >I am using Lucene for my log search tool. Is there a way I can > automatically