Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E87DFD2A8 for ; Wed, 27 Jun 2012 05:55:40 +0000 (UTC) Received: (qmail 18079 invoked by uid 500); 27 Jun 2012 05:55:39 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 17931 invoked by uid 500); 27 Jun 2012 05:55:38 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 17920 invoked by uid 99); 27 Jun 2012 05:55:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jun 2012 05:55:38 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of youngestachiever@gmail.com designates 74.125.83.48 as permitted sender) Received: from [74.125.83.48] (HELO mail-ee0-f48.google.com) (74.125.83.48) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jun 2012 05:55:30 +0000 Received: by eekb45 with SMTP id b45so254720eek.35 for ; Tue, 26 Jun 2012 22:55:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=mptZOtrcVlPu0eMg17cCU3BU6EXDSNK5ifHuoDxSm6g=; b=qznpyJzj4r+IBkfxKX9W8W83UgR1nI/6PW/+Iqz04c9OmRaz8/WMUx9paQZlZeNhLn IegfKXIvdjuuk/LDi/E4F6pVyzmEXRj9m7lp3rCza+MABZxQYbNETcSK4BelBHsUe9SX O6E571Jfc9OMiZ0eTKrinPy3S+jvNjbgJHQucDPD+1yuI6uJEulN2SRRQLwXGVz6Vtol T5jbEKSum1HhSuKi3y5AucE6vkglsG6rc/w/wZsA0ucsRffTuA5CZ9VpIz44OTW5nbOH HhbKzRvPBS1ZDY7J5yslxYZkH2TPQ1yhgv2AOJY2ysqr3T3b/DvTWYmVJwG8u0fd18bo C1dg== MIME-Version: 1.0 Received: by 10.14.39.5 with SMTP id c5mr1025378eeb.42.1340776510551; Tue, 26 Jun 2012 22:55:10 -0700 (PDT) Received: by 10.14.216.65 with HTTP; Tue, 26 Jun 2012 22:55:10 -0700 (PDT) Date: Wed, 27 Jun 2012 11:25:10 +0530 Message-ID: Subject: Auto commit when flush From: Ramprakash Ramamoorthy To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=bcaec52be595a278ac04c36ddb0a --bcaec52be595a278ac04c36ddb0a Content-Type: text/plain; charset=ISO-8859-1 Dear, I am using Lucene for my log search tool. Is there a way I can automatically 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 manually calculated frequent intervals irrespective of the flushes the only way? I wish the autocommit feature was not deprecated. -- With Thanks and Regards, Ramprakash Ramamoorthy, Engineer Trainee, Zoho Corporation. +91 9626975420 --bcaec52be595a278ac04c36ddb0a--