On May 15, 2006, at 3:26 PM, Yonik Seeley wrote:
On 5/15/06, Michael Levy <[EMAIL PROTECTED]> wrote:
I'd like to use Solr for a number of separate projects running on a
single Tomcat instance; I thought I would have Solr running a
separate
webapp for each project.
I understand that the default location for the solrconfig.xml and
schema.xml files and for the index are under Tomcat's
current-working-directory/solr/conf
I am hoping I can change the default location for each webapp.
Thanks!
It's not yet possible, but see this thread:
http://www.mail-archive.com/solr-dev@lucene.apache.org/msg00298.html
It looks like JNDI offers the easiest portable way.
The main SolrServlet would then need to be modified to do a JNDI
lookup and base config off of that.
The way I did it is I unpacked the WAR and put my config files into
WEB-INF/classes/. Then I individually edit each app's solrconfig.xml
and specify a unique path for the index directory. This may not be
for everyone, but since I had to unpack the WAR anyway...
-MB