lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Baranczak <>
Subject Re: Separate config and index per webapp
Date Mon, 15 May 2006 19:59:47 GMT
On May 15, 2006, at 3:26 PM, Yonik Seeley wrote:

> On 5/15/06, Michael Levy <> 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:
> 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...


View raw message