From 576084d69a8bdc56fc8436d271c051479bda7a30 Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Sat, 19 Mar 2011 10:35:10 +0000 Subject: [PATCH] use config directly git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1083154 13f79535-47bb-0310-9956-ffa450edef68 --- lucene/src/java/org/apache/lucene/index/DocumentsWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/src/java/org/apache/lucene/index/DocumentsWriter.java b/lucene/src/java/org/apache/lucene/index/DocumentsWriter.java index caf24b09e9b..85e28174fe6 100644 --- a/lucene/src/java/org/apache/lucene/index/DocumentsWriter.java +++ b/lucene/src/java/org/apache/lucene/index/DocumentsWriter.java @@ -278,7 +278,7 @@ final class DocumentsWriter { DocumentsWriter(IndexWriterConfig config, Directory directory, IndexWriter writer, FieldInfos fieldInfos, BufferedDeletesStream bufferedDeletesStream) throws IOException { this.directory = directory; this.writer = writer; - this.similarityProvider = writer.getConfig().getSimilarityProvider(); + this.similarityProvider = config.getSimilarityProvider(); this.maxThreadStates = config.getMaxThreadStates(); this.fieldInfos = fieldInfos; this.bufferedDeletesStream = bufferedDeletesStream;