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); } /**