You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2013/08/30 14:15:28 UTC

[Solr Wiki] Trivial Update of "Solr.xml 4.4 and beyond" by ErickErickson

Dear Wiki user,

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

The "Solr.xml 4.4 and beyond" page has been changed by ErickErickson:
https://wiki.apache.org/solr/Solr.xml%204.4%20and%20beyond?action=diff&rev1=12&rev2=13

Comment:
Added a warning about not changing solr.xml options unless you need to

   * We'll distribute a new-style solr.xml as the default in the example directory with [[Solr4.4]]
   * The ''sharedLib'' attribute on the top-level ''<solr>'' element is replaced by a child ''str'' element (see below). In theory, the old mechanism should continue to support ''sharedLib'', but SOLR-4791 documents the fact that it doesn't work in 4.3.0.
  
+ As of <!> [[Solr4.5]], solr.xml may be stored on your ZooKeeper ensemble, see SOLR-4718.
+ 
  == Structure of the new-style solr.xml ==
  
  Basically, it's mostly a move from the older attributes to a flatter style, and removal of <cores> and <core> tags. Here's a sample file. Note that any of these values can have a system property defined by specifying -Dpropname=propvalue on JVM startup:
  
- Any of these will honor system property substitution following the usual rules of ${propname:default_value}. Remember that a form ${sysprop:} will use the built-in defaults and can be omitted from the config, they're included here to document that they're available. Where it's straightforward to discover, the defaults are included, but note that they're subject to change.
+ Any of these will honor system property substitution following the usual rules of ${propname:default_value}. Remember that a form ${sysprop:} will use the built-in defaults and can be omitted from the config, they're included here to document that they're available. Where it's straightforward to find in the code, the defaults are included. Note that the defaults are subject to change.
  
+ <!> '''This example has many options listed here for reference. You should not change them unless and until you have a need. Start with the solr.xml in the example directory in the distro (<solrHome>/example/solr/solr.xml) and only add in specific options as the need arises.'''
+   
  {{{
  <solr>
    <str name="adminHandler">${adminHandler:org.apache.solr.handler.admin.CoreAdminHandler}</str>