You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by clico <cl...@mairie-marseille.fr> on 2009/10/07 10:27:27 UTC
datadir configuration
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.
Re: datadir configuration
Posted by Noble Paul നോബിള് नोब्ळ् <no...@corp.aol.com>.
the jndi variables are not picked up for placeholder replacement.
On Wed, Oct 7, 2009 at 5:44 PM, clico <cl...@mairie-marseille.fr> wrote:
>
> I tried this in my context.xml
> It doesn't work
> <Environment
> name="solr/home"
> type="java.lang.String"
> value="D:\workspace\solr\home"
> override="true" />
> <Environment
> name="solr.data.dir"
> type="java.lang.String"
> value="D:workspace\solr\datas"
> override="true" />
>
> --
> View this message in context: http://www.nabble.com/datadir-configuration-tp25782469p25783937.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>
--
-----------------------------------------------------
Noble Paul | Principal Engineer| AOL | http://aol.com
Re: datadir configuration
Posted by clico <cl...@mairie-marseille.fr>.
I tried this in my context.xml
It doesn't work
<Environment
name="solr/home"
type="java.lang.String"
value="D:\workspace\solr\home"
override="true" />
<Environment
name="solr.data.dir"
type="java.lang.String"
value="D:workspace\solr\datas"
override="true" />
--
View this message in context: http://www.nabble.com/datadir-configuration-tp25782469p25783937.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: datadir configuration
Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
On Wed, Oct 7, 2009 at 2:56 PM, clico <cl...@mairie-marseille.fr> wrote:
>
> What do I put in
> <dataDir>${solr.foo.data.dir:/default/path/to/datadir}</dataDir>
> ?
>
> What is /default/path/to/datadir?
>
>
Solr variables are written like:
${variable_name:default_value}
If you are configuring the dataDir as an environment variable, you can
remove the default value.
--
Regards,
Shalin Shekhar Mangar.
Re: datadir configuration
Posted by clico <cl...@mairie-marseille.fr>.
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 <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.
>>
>>
>
>
--
View this message in context: http://www.nabble.com/datadir-configuration-tp25782469p25783320.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: datadir configuration
Posted by Gasol Wu <ga...@gmail.com>.
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.
>
>