Hi,

I just upgraded from solr-1.3-dev to 1.4-dev and I'm having issues with the location of the dataDir.

I configure solr through -Dsolr.solr.home= /u01/app/apptest/solr
In v1.3 the datadir is located in /u01/app/apptest/solr/data

However when I dorp the 1.4 war in place the dataDir is opened at /u01/app/apptest/apache-solr/bin/data
this is the tomcat installation dir.

This is the LOG from starting up tomcat:
INFO: using system property solr.solr.home: /u01/app/apptest/solr
Feb 26, 2009 11:17:09 AM org.apache.solr.core.SolrResourceLoader <init>
INFO: Solr home set to '/u01/app/apptest/solr/'
Feb 26, 2009 11:17:09 AM org.apache.solr.core.SolrResourceLoader createClassLoader
INFO: Reusing parent classloader
Feb 26, 2009 11:17:09 AM org.apache.solr.core.SolrConfig <init>
INFO: Loaded SolrConfig: solrconfig.xml
Feb 26, 2009 11:17:09 AM org.apache.solr.core.SolrCore <init>
INFO: Opening new SolrCore at /u01/app/apptest/solr/, dataDir=./data/

And this is from solr admin
cwd=/u01/app/apptest/apache-solr/bin
SolrHome=/u01/app/apptest/solr/

I don't have a solr.xml nor do I have a <dataDir /> configured in solrconfig.xml

Has the behavior changed from the dataDir being relative to solrHome, to being relative to the working directory?
Do I have to set this manually to the correct directory?


Thijs
  • dataDir configuration Thijs

Reply via email to