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 Vadim B <Ma...@unterderbruecke.de> on 2007/07/04 15:31:22 UTC
differen locations for config files and Data files if using Java
System Properties
Hi,
Since today I am using the trunk version of solr and i was facing a strange
problem.
in Version 1.2 the data dir was created in C:/Dev/solr/data/
now it is in WorkingDir/solr/data/index
My Java System Property is -Dsolr.solr.home=C:/Dev/solr/
in solrconf.xml I found this entry, which is now uncomented
<dataDir>${solr.data.dir:./solr/data}</dataDir>
before it was
<!--
<dataDir>./solr/data</dataDir>
-->
Don't know if this is the desired behaviour. How should I change the entry
not to have the data in the working directory and not to uncomment the entry
!
--
View this message in context: http://www.nabble.com/differen-locations-for-config-files-and-Data-files-if-using-Java-System-Properties-tf4024460.html#a11431018
Sent from the Solr - User mailing list archive at Nabble.com.
Re: differen locations for config files and Data files if using Java System Properties
Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Jul 4, 2007, at 12:00 PM, Ryan McKinley wrote:
>
>> in solrconf.xml I found this entry, which is now uncomented
>> <dataDir>${solr.data.dir:./solr/data}</dataDir> before it was
>> <!--
>> <dataDir>./solr/data</dataDir>
>> -->
>> Don't know if this is the desired behaviour. How should I change
>> the entry
>> not to have the data in the working directory and not to uncomment
>> the entry
>> !
>
> Just comment out the dataDir bit and the path will be relative to
> solr home. If you leave it in, it will be relative to the running
> directory so use an absolute path.
>
> I ran in to this problem a while ago... we talked about changing
> it, but i don't think anything has happened yet.
>
> http://www.nabble.com/Re%3A-svn-commit%3A-r544356----lucene-solr-
> trunk-example-solr-conf-solrconfig.xml-tf3905591.html#a11073210
Sorry... I'm in the midst of lots of personal stuff for the next few
weeks. I'm happy however you want to change it, Ryan. It's just an
example configuration, so having the system property substitution in
there is not necessary - just figured it'd be handy. If its causing
more trouble than its worth by all means take it out (or wait and nag
me again in a few weeks).
Erik
Re: differen locations for config files and Data files if using Java
System Properties
Posted by Ryan McKinley <ry...@gmail.com>.
> in solrconf.xml I found this entry, which is now uncomented
> <dataDir>${solr.data.dir:./solr/data}</dataDir>
> before it was
> <!--
> <dataDir>./solr/data</dataDir>
> -->
>
> Don't know if this is the desired behaviour. How should I change the entry
> not to have the data in the working directory and not to uncomment the entry
> !
Just comment out the dataDir bit and the path will be relative to solr
home. If you leave it in, it will be relative to the running directory
so use an absolute path.
I ran in to this problem a while ago... we talked about changing it, but
i don't think anything has happened yet.
http://www.nabble.com/Re%3A-svn-commit%3A-r544356----lucene-solr-trunk-example-solr-conf-solrconfig.xml-tf3905591.html#a11073210
ryan
Re: differen locations for config files and Data files if using Java
System Properties
Posted by Chris Hostetter <ho...@fucit.org>.
: in solrconf.xml I found this entry, which is now uncomented
: <dataDir>${solr.data.dir:./solr/data}</dataDir>
: before it was
: <!--
: <dataDir>./solr/data</dataDir>
: -->
:
: Don't know if this is the desired behaviour. How should I change the entry
: not to have the data in the working directory and not to uncomment the entry
that file is an *example* of what a solrconfig.xml might look like, it
serves as a good starting point for you to make your own solrconfig.xml to
customize -- but when upgrading solr you should not throw out your
existing solrconfig.xml and use the latest example (anymore then you
should throw away your schema.xml)
keep using your old solrconfig.xml and everything will be fine.
-Hoss