lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "SolrJetty" by HossMan
Date Tue, 07 Nov 2006 01:13:16 GMT
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/SolrJetty

------------------------------------------------------------------------------
- Describe SolrJetty here.
+ == Solr with Jetty ==
+  * Solr runs fine with [http://jetty.mortbay.org/jetty5/ Jetty], as illustrated by the `solr/example`
application.  See the instructions in the generic [wiki:SolrInstall Solr installation] page
for basic setup info
+  * For non-trivial installations, [http://jetty.mortbay.org/jetty5/plus/index.html JettyPlus]
is recommended.
  
+ === Configuring Solr Home with JNDI ===
+ 
+ Jetty Plus provides an addEnvEntry for configuring the JNDI property needed to specify your
Solr Home directory.
+ 
+ To do this, use an "addWebApplication" that looks something like this...
+ 
+ {{{
+   <Call name="addWebApplication">
+     <Arg>/solr/*</Arg>
+     <Arg>/your/path/to/the/solr.war</Arg>
+     <Set name="extractWAR">true</Set> 
+     <Set name="defaultsDescriptor">org/mortbay/jetty/servlet/webdefault.xml</Set>
+ 
+     <Call name="addEnvEntry">
+       <Arg>solr/home</Arg>
+       <Arg type="String">/your/path/to/your/solr/home/dir</Arg>
+     </Call>
+   </Call>
+ }}}
+ 
+ 
+ === Multiple Solr Webapps ===
+ 
+ Multiple solr instances can be run in a single Jetty Plus server by using multiple "addWebApplication"
Call blocks with different values for the `solr/home` JNDI parameter...
+ 
+ 
+ {{{
+   <Call name="addWebApplication">
+     <Arg>/solr1/*</Arg>
+     <Arg>/your/path/to/the/solr.war</Arg>
+     <Set name="extractWAR">true</Set> 
+     <Set name="defaultsDescriptor">org/mortbay/jetty/servlet/webdefault.xml</Set>
+ 
+     <Call name="addEnvEntry">
+       <Arg>solr/home</Arg>
+       <Arg type="String">/your/path/to/your/solr/home/dir</Arg>
+     </Call>
+   </Call>
+ 
+   <Call name="addWebApplication">
+     <Arg>/solr2/*</Arg>
+     <Arg>/your/path/to/the/solr.war</Arg>
+     <Set name="extractWAR">true</Set> 
+     <Set name="defaultsDescriptor">org/mortbay/jetty/servlet/webdefault.xml</Set>
+ 
+     <Call name="addEnvEntry">
+       <Arg>solr/home</Arg>
+       <Arg type="String">/your/path/to/your/alternate/solr/home/dir</Arg>
+     </Call>
+   </Call>
+ }}}
+ 

Mime
View raw message