Paul Tomblin schrieb:
On Fri, Aug 28, 2009 at 6:42 AM, Shalin Shekhar
Mangar<shalinman...@gmail.com> wrote:
Ok, I've spotted the problem - while SolrHome is in the right place,
it's still looking for the data in
/Users/ptomblin/apache-tomcat-6.0.20/solr/data/

How can I changed that?


One easy way is to hard code that location into solrconfig.xml ?

The conf file says:
 <dataDir>${solr.data.dir:./solr/data}</dataDir>
That indicates to me that there is some way to override that default
./solr/data involving something called solr.data.dir, but I don't know
if that's an environment variable, or a system property, or what.

hi Paul,

it can be specified in the many ways solr.home can.
e.g. on startup add -Dsolr.data.dir=/path/to/your/data/dir

or replace/extend the value in solrconfig.xml.

the default is in solr.home/data, imho.

Cheers,
Chantal




--
http://www.linkedin.com/in/paultomblin

--
Chantal Ackermann

Reply via email to