: The default solrconfig.xml seems to suggest ${solr.data.dir} can be used.
: So I am hoping there is another pre-defined variable like this that points to
: the solr core directory.

there's nothing special about solr.data.dir ... it's used i nthe example 
configs as a convinient way to let you override it on the command line 
when running the example, otherwise it defaults to the empty string which 
triggers the default dataDir logic (ie: ./data in the instanceDir)...

  <dataDir>${solr.data.dir:}</dataDir>

: <charFilter class="com.basistech.rlp.solr.RCLUNormalizeCharFilterFactory"
:           rlpContext="solr/conf/rlp-context-rclu.xml"/>
: 
: This only works if Solr is started from $SOLR_HOME/example, as it is relative
: to the current working directory.

if your factories are using the SolrResourceLoader.openResource to load 
those files then you can change that to just be 
'rlpContext="rlp-context-rclu.xml"' 
and it will just plain work -- the SolrResourceLoader is 
SolrCloud/ZooKeeper aware, and in stadalone mode checks the conf dir, 
the classpath, and as a last resort attempts to resolve it as an relative 
path -- if your custom factories just call "new File(rlpContext)" on the 
string, then you're stuck using absolute paths, or needing to define 
system properties at runtime.


-Hoss

Reply via email to