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
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,
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