From ffb1558e916555327f85c507aa5dfb352520d6e1 Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Thu, 6 Dec 2012 15:41:24 +0000 Subject: [PATCH] don't call ensureOpen() twice for updateDocument git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1417951 13f79535-47bb-0310-9956-ffa450edef68 --- lucene/core/src/java/org/apache/lucene/index/IndexWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/core/src/java/org/apache/lucene/index/IndexWriter.java b/lucene/core/src/java/org/apache/lucene/index/IndexWriter.java index 3c2a2c5cddf..1d63338be9f 100644 --- a/lucene/core/src/java/org/apache/lucene/index/IndexWriter.java +++ b/lucene/core/src/java/org/apache/lucene/index/IndexWriter.java @@ -1424,7 +1424,7 @@ public class IndexWriter implements Closeable, TwoPhaseCommit { */ public void updateDocument(Term term, IndexDocument doc) throws IOException { ensureOpen(); - updateDocument(term, doc, getAnalyzer()); + updateDocument(term, doc, analyzer); } /**