lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jlist9 <jli...@gmail.com>
Subject Re: Solr on Tomcat, how to use an external data directory?
Date Sun, 30 May 2010 01:38:05 GMT
Thanks! I tried that and it worked. It turned out that I also need to set
-Dsolr.data.dir=/opt/solr/example/data

On Sat, May 29, 2010 at 3:07 PM, Abdelhamid  ABID <aeh.abid@gmail.com> wrote:
> Most likely you have missed to point data directory in solrconf.xml,
> this should help :
> http://wiki.apache.org/solr/SolrConfigXml#dataDir_parameter
>
> On Sat, May 29, 2010 at 9:48 PM, jlist9 <jlist9@gmail.com> wrote:
>
>> My solr index works fine with the embedded Jetty. I'm trying to move the
>> index to Tomcat. Following the wiki page
>> http://wiki.apache.org/solr/SolrTomcat,
>> I put this line in setenv.bat:
>>
>> set JAVA_OPTS=%JAVA_OPTS% "-Dfile.encoding=UTF-8"
>> "-Dsolr.solr.home=D:\opt\solr\example"
>>
>> Tomcat seems to be picking it up. If I point it to a non-existent
>> directory or an empty
>> directory, Tomcat complains about it in console log.
>>
>> However, the /solr/admin/stats.jsp page still shows that solr is using a
>> default
>> directory, which is unsurprisingly located in tomcat bin dir:
>>
>> readerDir : org.apache.lucene.store.SimpleFSDirectory@D
>> :\Java\apache-tomcat-6.0.20\bin\solr\data\index
>>
>> Any idea what else I need to do to use an external solr index
>> directory in Tomcat?
>>
>> Thanks,
>> Jack
>>
>
>
>
> --
> Abdelhamid ABID
> Software Engineer- J2EE / WEB
>

Mime
View raw message