Return-Path: Delivered-To: apmail-lucene-java-commits-archive@www.apache.org Received: (qmail 40728 invoked from network); 2 Apr 2009 20:17:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Apr 2009 20:17:21 -0000 Received: (qmail 45426 invoked by uid 500); 2 Apr 2009 20:17:20 -0000 Delivered-To: apmail-lucene-java-commits-archive@lucene.apache.org Received: (qmail 45372 invoked by uid 500); 2 Apr 2009 20:17:20 -0000 Mailing-List: contact java-commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-commits@lucene.apache.org Received: (qmail 45363 invoked by uid 99); 2 Apr 2009 20:17:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Apr 2009 20:17:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Apr 2009 20:17:18 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id BC1A1238896D; Thu, 2 Apr 2009 20:16:57 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r761414 - /lucene/java/trunk/src/java/org/apache/lucene/index/IndexWriter.java Date: Thu, 02 Apr 2009 20:16:57 -0000 To: java-commits@lucene.apache.org From: mikemccand@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090402201657.BC1A1238896D@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mikemccand Date: Thu Apr 2 20:16:57 2009 New Revision: 761414 URL: http://svn.apache.org/viewvc?rev=761414&view=rev Log: make it clear that IW.commit() commits all changes, not just added/deleted docs Modified: lucene/java/trunk/src/java/org/apache/lucene/index/IndexWriter.java Modified: lucene/java/trunk/src/java/org/apache/lucene/index/IndexWriter.java URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/IndexWriter.java?rev=761414&r1=761413&r2=761414&view=diff ============================================================================== --- lucene/java/trunk/src/java/org/apache/lucene/index/IndexWriter.java (original) +++ lucene/java/trunk/src/java/org/apache/lucene/index/IndexWriter.java Thu Apr 2 20:16:57 2009 @@ -3592,12 +3592,13 @@ } /** - *

Commits all pending updates (added & deleted - * documents) to the index, and syncs all referenced index - * files, such that a reader will see the changes and the - * index updates will survive an OS or machine crash or - * power loss. Note that this does not wait for any - * running background merges to finish. This may be a + *

Commits all pending changes (added & deleted + * documents, optimizations, segment merges, added + * indexes, etc.) to the index, and syncs all referenced + * index files, such that a reader will see the changes + * and the index updates will survive an OS or machine + * crash or power loss. Note that this does not wait for + * any running background merges to finish. This may be a * costly operation, so you should test the cost in your * application and do it only when really necessary.

*