Solr on Tomcat, how to use an external data directory?

2010-05-29 Thread jlist9
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 pick

Re: Solr on Tomcat, how to use an external data directory?

2010-05-29 Thread K Wong
There are directions on this page under Tomcat on Windows > Multiple Solr apps: http://wiki.apache.org/solr/SolrTomcat I'm running a multicore install on RHEL5/Tomcat5.5 and I just followed the docs and it went fine. I'm not sure that I can be of much help other than pointing you to the relevant

Re: Solr on Tomcat, how to use an external data directory?

2010-05-29 Thread Abdelhamid ABID
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 wrote: > My solr index works fine with the embedded Jetty. I'm trying to move the > index to Tomcat. Followi

Re: Solr on Tomcat, how to use an external data directory?

2010-05-29 Thread jlist9
I only have one solr instance so I followed the "Single Solr Instance", which basically tells me to set -Dsolr.solr.home to the solr directory, which I did ... On Sat, May 29, 2010 at 2:32 PM, K Wong wrote: > There are directions on this page under Tomcat on Windows > Multiple Solr > apps: > > h

Re: Solr on Tomcat, how to use an external data directory?

2010-05-29 Thread Chris Hostetter
: Most likely you have missed to point data directory in solrconf.xml, : this should help : : http://wiki.apache.org/solr/SolrConfigXml#dataDir_parameter right .. double check what the dataDir setting looks like ... if it's unset it uses "data" in your solr instance directory, but if it is set,

Re: Solr on Tomcat, how to use an external data directory?

2010-05-29 Thread jlist9
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 wrote: > Most likely you have missed to point data directory in solrconf.xml, > this should help : > http://wiki.apache.org/solr/SolrC

Re: Solr on Tomcat, how to use an external data directory?

2010-05-29 Thread jlist9
You are right. Thanks Chris! On Sat, May 29, 2010 at 4:15 PM, Chris Hostetter wrote: > > : Most likely you have missed to point data directory in solrconf.xml, > : this should help : > : http://wiki.apache.org/solr/SolrConfigXml#dataDir_parameter > > right .. double check what the dataDir setting

Re: Solr on Tomcat, how to use an external data directory?

2010-05-30 Thread Abdelhamid ABID
.. and to unset dataDir just leave it blank ${solr.data.dir:} On Sun, May 30, 2010 at 12:15 AM, Chris Hostetter wrote: > > : Most likely you have missed to point data directory in solrconf.xml, > : this should help : > : http://wiki.apache.org/solr/SolrConfigXml#dataDir_parameter > > right .. dou

Re: Solr on Tomcat, how to use an external data directory?

2010-05-30 Thread jlist9
The JVM arg seems to overwrite that just fine: -Dsolr.data.dir=/opt/solr/example/data On Sun, May 30, 2010 at 12:14 AM, Abdelhamid ABID wrote: > .. and to unset dataDir just leave it blank > ${solr.data.dir:} > > On Sun, May 30, 2010 at 12:15 AM, Chris Hostetter > wrote: > >> >> : Most likely yo