JVM properties restrict you to a single implementation within a jvm. For instance if you want multiple instances of solr running with the same schema, with different data dir's in the one app server. You'll have to have several copies of solrconfig and schema.xml. By using context environment, I can have multiple contexts like pjaol:~/tmp/locallucene/solr/tomcat-conf pjaol$ more solr.xml <Context docBase="/Users/pjaol/tmp/locallucene/solr/solr.war" debug="0" crossContext="true" allowLinking="true"> <Environment name="solr/home" type="java.lang.String" value="/Users/pjaol/tmp/locallucene/solr" override="true" /> <Environment name="solr/data/dir" type="java.lang.String" value="/Users/pjaol/tmp/locallucene/solr/partitions/data" override="true"/> </Context> pjaol:~/tmp/locallucene/solr/tomcat-conf pjaol$ more solr1.xml <Context docBase="/Users/pjaol/tmp/locallucene/solr/solr.war" debug="0" crossContext="true" allowLinking="true" > <Environment name="solr/home" type="java.lang.String" value="/Users/pjaol/tmp/locallucene/solr" override="true" /> <Environment name="solr/data/dir" type="java.lang.String" value="/Users/pjaol/tmp/locallucene/solr/partitions/data1" override="true"/> </Context> Changing just the solr/data/dir for each instance. And in my solrconfig.xml <dataDir>${env/solr/data/dir:./solr/data}</dataDir> It certainly makes development & operations easier. P Mike Klaas wrote: I use jvm system properties for this; they seem to work well. -- Patrick O'Leary You see, wire telegraph is a kind of a very, very long cat. You pull his tail in New York and his head is meowing in Los Angeles. Do you understand this? And radio operates exactly the same way: you send signals here, they receive them there. The only difference is that there is no cat. - Albert Einstein ![]() |
- Two Solr Webapps, one folder for the index data? Jörg Kiegeland
- Re: Two Solr Webapps, one folder for the index data? patrick o'leary
- Re: Two Solr Webapps, one folder for the index d... Jörg Kiegeland
- Re: Two Solr Webapps, one folder for the ind... Chris Hostetter
- Re: Two Solr Webapps, one folder for the index d... Mike Klaas
- Re: Two Solr Webapps, one folder for the ind... patrick o'leary
- Re: Two Solr Webapps, one folder for the index d... Chris Hostetter
- RE: Two Solr Webapps, one folder for the ind... Arnone, Anthony
- RE: Two Solr Webapps, one folder for the... Chris Hostetter
- Re: Two Solr Webapps, one folder for the index data? Otis Gospodnetic