From abc0272884a94fab4fe6f0f82f5838f2a07d5a7b Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Fri, 19 Sep 2014 09:11:17 +0000 Subject: [PATCH] LUCENE-4246: clarify IW.close change git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1626152 13f79535-47bb-0310-9956-ffa450edef68 --- lucene/CHANGES.txt | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt index aa814439ce5..452f86df886 100644 --- a/lucene/CHANGES.txt +++ b/lucene/CHANGES.txt @@ -53,13 +53,9 @@ API Changes * LUCENE-5527: The Collector API has been refactored to use a dedicated Collector per leaf. (Shikhar Bhushan, Adrien Grand) -* LUCENE-4246: IndexWriter.close now discards any changes and always - closes, even if it throws an exception. If matchVersion is < - LUCENE_50 yet there were uncommitted changes or still-running - merges, then a RuntimeException will be thrown indicating changes - were lost (but the writer will still be closed). Finally, a new - shutdown method was added to do what close used to do (flush, wait - for merges, commit, close). +* LUCENE-4246: IndexWriter.close now always closes, even if it throws + an exception. The new IndexWriterConfig.setCommitOnClose (default + true) determines whether close() should commit before closing. * LUCENE-5608, LUCENE-5565: Refactor SpatialPrefixTree/Cell API. Doesn't use Strings as tokens anymore, and now iterates cells on-demand during indexing instead of