You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2006/10/28 01:35:26 UTC

[Solr Wiki] Update of "SolrTomcat" by HossMan

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The following page has been changed by HossMan:
http://wiki.apache.org/solr/SolrTomcat

------------------------------------------------------------------------------
  
  This is only an issue when sending non-ascii characters in a query request... no configuration is needed for Solr/Tomcat to return non-ascii chars in a response, or accept non-ascii chars in an HTTP-POST body.
  
- === Example Install ===
+ === Simple Example Install ===
  If you are having problems with the setup, try the following sequence of shell commands to download and install both Tomcat and Solr.  Substitute todays date in the Solr download file name.
  
  {{{
@@ -39, +39 @@

  #note that the startup.sh script is run from the directory containing your solr home ./solr
  #since the solr webapp looks for $CWD/solr by default.
  }}}
+ 
+ === Configuring Solr Home with JNDI ===
+ 
+ A Tomcat context fragments can be used to configure the JNDI property needed to specify your Solr Home directory.
+ 
+ Just put a context fragment file under $CATALINA_HOME/conf/Catalina/localhost that looks something like this...
+ 
+ $ cat /tomcat55/conf/Catalina/localhost/solr.xml
+ {{{
+ <Context docBase="f:/solr.war" debug="0" crossContext="true" >
+    <Environment name="solr/home" type="java.lang.String" value="f:/my/solr/home" override="true" />
+ </Context>
+ }}}
+ 
  
  === Multiple Solr Webapps ===
  Tomcat context fragments make configuring multiple Solr webapps in a single Tomcat server easy.