SOLR-465: use non-deprecated SolrIndexWriter constructor

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@769816 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2009-04-29 16:22:25 +00:00
parent 9f5b8ad035
commit 9e07dfce5d
1 changed files with 1 additions and 1 deletions

View File

@ -384,7 +384,7 @@ public final class SolrCore implements SolrInfoMBean {
log.warn(logid+"Solr index directory '" + dirFile + "' doesn't exist."
+ " Creating new index...");
SolrIndexWriter writer = new SolrIndexWriter("SolrCore.initIndex",getIndexDir(), true, schema, solrConfig.mainIndexConfig);
SolrIndexWriter writer = new SolrIndexWriter("SolrCore.initIndex", getIndexDir(), getDirectoryFactory(), true, schema, solrConfig.mainIndexConfig);
writer.close();
}