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/11/07 02:13:16 UTC
[Solr Wiki] Update of "SolrJetty" 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/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>
+ }}}
+