I have Solr configured on Centos 5 with Tomcat 5. I'd like to have several solr instances on the machine that share the same solrconfig.xml file but override the data directory and set their own data location.
Is there some way to override the data directory in the Tomcat context file? I tried something below but it did not work. <?xml version="1.0" encoding="utf-8"?> <Context docBase="/opt/solr/example/apache-solr-1.3.0.war" debug="0" crossContext="true"> <Environment name="solr/home" type="java.lang.String" value="/opt/solr/example" override="true"/> <Environment name="solr/data/dir" type="java.lang.String" value="/opt/solr/example/data" override="true"/> </Context>