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 2007/02/01 23:29:29 UTC

[Solr Wiki] Update of "SolrResin" by ryan

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 ryan:
http://wiki.apache.org/solr/SolrResin

The comment on the change is:
adding character-encoding="utf-8"

------------------------------------------------------------------------------
  `<env-entry>` settings can be used in your resin.conf to specify the location of your Solr Home...
  
  {{{
- <web-app id="/solr">
+ <web-app id="/solr" character-encoding="utf-8">
    <env-entry>
       <env-entry-name>solr/home</env-entry-name>
       <env-entry-type>java.lang.String</env-entry-type>
@@ -22, +22 @@

  Multiple Solr instances can be run on the same resin port using JNDI to specify the Solr Home, and the `archive-path` property to point both web-app instances at the wame war file...
  
  {{{
- <web-app id="/solr1" document-directory="webapps/solr1" archive-path="/path/to/the/solr.war">
+ <web-app id="/solr1" document-directory="webapps/solr1" archive-path="/path/to/the/solr.war" character-encoding="utf-8">
    <env-entry>
       <env-entry-name>solr/home</env-entry-name>
       <env-entry-type>java.lang.String</env-entry-type>
@@ -30, +30 @@

    </env-entry>
  </web-app>
  
- <web-app id="/solr2" document-directory="webapps/solr2" archive-path="/path/to/the/solr.war">
+ <web-app id="/solr2" document-directory="webapps/solr2" archive-path="/path/to/the/solr.war" character-encoding="utf-8">
    <env-entry>
       <env-entry-name>solr/home</env-entry-name>
       <env-entry-type>java.lang.String</env-entry-type>
@@ -45, +45 @@

  In addition to using a `${solr.home}/lib` dir for including SolrPlugins, Resin has a general purpose mechanism for including arbitrary classes in the context class loader of an application like Solr.  To do this, add a `<class-loader>` declaration to your web-app configuration in your resin.conf...
  
  {{{
- <web-app id="/solr">
+ <web-app id="/solr" character-encoding="utf-8">
    <class-loader>
      <library-loader path="/path/to/your/lib/dir/containing/some/jars"/>
    </class-loader>