Hi,

add JAVA_OPTS variable in TOMCAT_HOME/bin/catalina.sh like below,
JAVA_OPTS="$JAVA_OPTS -Dsolr.home=/opt/solr
-Dsolr.foo.data.dir=/opt/solr/data"

solr.data.dir must mapping to <dataDir> in solrconfig.xml

here is example (solrconfig.xml):
<dataDir>${solr.foo.data.dir:/default/path/to/datadir}</dataDir>

On Wed, Oct 7, 2009 at 4:27 PM, clico <cl...@mairie-marseille.fr> wrote:

>
> hello
> As I try to deploy my app on a tomcat server, I'd like to custome datadir
> variable outside the solrconfig.xml file.
>
> Is there a way to custom it in a context file?
>
> Thanks
> --
> View this message in context:
> http://www.nabble.com/datadir-configuration-tp25782469p25782469.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>

Reply via email to