You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Furkan KAMACI <fu...@gmail.com> on 2013/11/18 01:53:51 UTC
Datadir Could not Set via System Properties?
I have removed the line of *dataDir* from my schema.xml and I have not a
property defined as *dataDir *at my old style solr.xml. I have that line of
codes:
System.setProperty("solr.data.dir", "/home/somewhere/data");
CoreContainer coreContainer = CoreContainer.createAndLoad(solrHomePath,
solrConfigFile);
solrServer = new EmbeddedSolrServer(coreContainer, "collection1"); // An
embedded server with a RAMDirectoryFactory
However data directory is created at default place rather then I've set via
System properties. Any ideas?