mirror of https://github.com/apache/lucene.git
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:
parent
9f5b8ad035
commit
9e07dfce5d
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue