Hoss, The comment at the end:
'Alternately: you can specifiy the solr.data.dir system property at run time' should yield the exact result I'm looking for - runtime configuration of multiple instances. Thanks for the full reply. Regards, Tracy On Jul 18, 2010, at 3:23 PM, Chris Hostetter wrote: > : I think the history of that might involve back compat issues. > > Correct. > > Tracy: the *default* location for dataDir, if you have nothing specified > in your solrconfig.xml is to be relative your Solr Home ... but if you > specify a path, that path is resolved relative the CWD. > > One of the use cases for this is to have the same solr home dire used by > many instances of Solr, each with a distinct data dir (but you can just > change the working dir) > > If you look ta the trunk version of solr, the example dataDir config looks > like this... > > <dataDir>${solr.data.dir:}</dataDir> > > ...which results in a no dataDir being specified (unless you set the > solr.data.dir system property). But in the releases up to an including > 1.4.1 a differnet (poorer) choice was made for the example value. > > : > "Used to specify an alternate directory to hold all index data other > : > than the default ./data under the Solr home.". > > I agree, that wording is somwhat confusing -- particularly since the > config then specifies a value which will usualy be the data dir in the > default solr home dir if solr.solr.home is *not* specified -- but that > value is not the "default" > > Bottom Line: if you change your solrconfig.xml to use the syntax i listed > above, it should do what you want. Alternately: you can specifiy the > solr.data.dir system property at run time, and have total control over > where the data dir is at runtime, indepndent of where the solr home dir > is. > > -Hoss >