lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clico <cl...@mairie-marseille.fr>
Subject Re: datadir configuration
Date Wed, 07 Oct 2009 09:26:35 GMT

What do I put in
<dataDir>${solr.foo.data.dir:/default/path/to/datadir}</dataDir>
?

What is /default/path/to/datadir?



Gasol Wu wrote:
> 
> 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 <clico@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.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/datadir-configuration-tp25782469p25783320.html
Sent from the Solr - User mailing list archive at Nabble.com.


Mime
View raw message