lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vis <>
Subject Re: SOLR / Tomcat JNDI Settings
Date Wed, 28 Nov 2007 18:18:51 GMT

Thanks a lot Hossman; this solved it for me.

Essential for me was to understand that I had to create a solr.xml file in
see hereunder in the quote an example.

The docbase should point to the .war file somewhere on my system.
The value-attribute for the <Environment name="solr/home" value="...."  ....  
/> should point to a directory where tomcat can create the lucene/solr index
files.  That home directory should also contain the conf directory from the
example in the solr distribution.

And that was it.

hossman wrote:
> <!--
> An example of declaring a specific tomcat context file that
> points at our solr.war (anywhere we want it) and a Solr Home
> directory (any where we want it) using JNDI.
> We could have multiple context files like this, with different
> names (and different Solr Home settings) to support multiple
> indexes on one box.
> -->
> <Context
>   docBase="/var/tmp/ac-demo/apache-solr-1.2.0/dist/apache-solr-1.2.0.war"
>   debug="0"
>   crossContext="true" >
>   <Environment name="solr/home"
>                value="/var/tmp/ac-demo/books-solr-home/"
>                type="java.lang.String"
>                override="true" />
> </Context>

View this message in context:
Sent from the Solr - User mailing list archive at

View raw message