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] Trivial Update of "SolrJBoss" by DarylBeattie
Date Thu, 18 Jun 2009 10:30:05 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 DarylBeattie:
http://wiki.apache.org/solr/SolrJBoss

The comment on the change is:
Sections were at wrong levels.

------------------------------------------------------------------------------
  === Configuring Solr Home ===
  You can configure the Solr home directory globally via ''-Dsolr.solr.home'' in the file
''bin/run.bat''. But that is often not desired because you potentially want more than one
Solr installation deployed.
  
- ==== Solr Home Configuration ====
+ ==== Solr Home via web.xml ====
  You can configure the Solr home directory to use per webapp in Solr's ''web.xml'' file.
Add following snippet to the web.xml:
  {{{
    <env-entry>
@@ -34, +34 @@

    </env-entry>
  }}}
  
+ ==== Solr Home via properties-service.xml ====
  You can also configure it (and other Solr variables, such as the Solr-data-dir) in properties-service.xml
like so:
  {{{
  <mbean code="org.jboss.varia.property.SystemPropertiesService" name="jboss:type=Service,name=SystemProperties">
@@ -44, +45 @@

  </mbean>
  }}}
  
- ==== JBoss Logging ====
+ === JBoss Logging ===
  By default JBoss uses Log4J for its logging, while the default Solr installation uses the
[http://www.slf4j.org/manual.html#binding SLF4J binding] to log via the JDK1.4 logging system.
In order to get Solr to log via Log4J, you must replace the slf4j-jdk*.jar binding with the
slf4j-log4j*.jar binding. From that point on, logging can be configured via the log4j.xml
configuration file.
  
  For example, this can be used to silence all the INFO messages from Solr:

Mime
View raw message