use config directly

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1083154 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2011-03-19 10:35:10 +00:00
parent 3dcbc2cc16
commit 576084d69a
1 changed files with 1 additions and 1 deletions

View File

@ -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;