mirror of
https://github.com/apache/lucene.git
synced 2025-03-01 13:59:12 +00:00
SOLR-1041 -- dataDir is not set relative to solr home
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@748970 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2484c0efe7
commit
e40fc9ffad
@ -117,7 +117,7 @@ public class CoreContainer
|
|||||||
// perform compatibility init
|
// perform compatibility init
|
||||||
cores = new CoreContainer(new SolrResourceLoader(instanceDir));
|
cores = new CoreContainer(new SolrResourceLoader(instanceDir));
|
||||||
SolrConfig cfg = solrConfigFilename == null ? new SolrConfig() : new SolrConfig(solrConfigFilename);
|
SolrConfig cfg = solrConfigFilename == null ? new SolrConfig() : new SolrConfig(solrConfigFilename);
|
||||||
CoreDescriptor dcore = new CoreDescriptor(cores, "", ".");
|
CoreDescriptor dcore = new CoreDescriptor(cores, "", instanceDir);
|
||||||
SolrCore singlecore = new SolrCore(null, null, cfg, null, dcore);
|
SolrCore singlecore = new SolrCore(null, null, cfg, null, dcore);
|
||||||
abortOnConfigurationError = cfg.getBool(
|
abortOnConfigurationError = cfg.getBool(
|
||||||
"abortOnConfigurationError", abortOnConfigurationError);
|
"abortOnConfigurationError", abortOnConfigurationError);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user