Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

Add system property setting to allow data directory to be overridden

Erik Hatcher88bf24b0009d
diff --git a/example/solr/conf/solrconfig.xml b/example/solr/conf/solrconfig.xml
index 1b16d88d4b7..c8d62ecbd3d 100755
--- a/example/solr/conf/solrconfig.xml
+++ b/example/solr/conf/solrconfig.xml
@@ -29,9 +29,8 @@
<!-- Used to specify an alternate directory to hold all index data
other than the default ./data under the Solr home.
If replication is in use, this should match the replication configuration. -->
- <!--
- <dataDir>./solr/data</dataDir>
- -->
+ <dataDir>${solr.data.dir:./solr/data}</dataDir>
+
<indexDefaults>
<!-- Values here affect all index writers and act as a default unless overridden. -->