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 00:14:00 UTC

[Solr Wiki] 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=11&rev2=12

Comment:
Took out bogus values and included defaults where they were easy to discover.

  
  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:
  
- <!> Caution! These are just the test values from a unit test and are '''not''' reasonable values! They're intended to show the possible parameters.
+ 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.
+ 
  {{{
  <solr>
-   <str name="adminHandler">testAdminHandler</str>
+   <str name="adminHandler">${adminHandler:org.apache.solr.handler.admin.CoreAdminHandler}</str>
-   <int name="coreLoadThreads">11</int>
+   <int name="coreLoadThreads">${coreLoadThreads:3}</int>
-   <str name="coreRootDirectory">${coreRootDirectory:testCoreRootDirectory}</str>
+   <str name="coreRootDirectory">${coreRootDirectory:}</str> <!-- usually solrHome  -->
-   <str name="managementPath">testManagementPath</str>
+   <str name="managementPath">${managementPath:}</str>
-   <str name="sharedLib">testSharedLib</str>
+   <str name="sharedLib">${sharedLib:}</str>
-   <str name="shareSchema">${shareSchema:testShareSchema}</str>
+   <str name="shareSchema">${shareSchema:false}</str>
-   <int name="transientCacheSize">66</int>
+   <int name="transientCacheSize">${transientCacheSize:Integer.MAX_VALUE}</int> <!-- ignored unless cores are defined with transient=true -->
  
    <solrcloud>
-     <int name="distribUpdateConnTimeout">22</int>
+     <int name="distribUpdateConnTimeout">${distribUpdTimeout:}</int>
-     <int name="distribUpdateSoTimeout">33</int>
+     <int name="distribUpdateSoTimeout">${distribUpdateTimeout:}</int>
-     <int name="leaderVoteWait">55</int>
+     <int name="leaderVoteWait">${leaderVoteWait:}</int>
-     <str name="host">testHost</str>
+     <str name="host">${host:}</str>
-     <str name="hostContext">testHostContext</str>
+     <str name="hostContext">${hostContext:solr}</str>
-     <int name="hostPort">${hostPort:44}</int>
+     <int name="hostPort">${jetty.port:8983}</int>
-     <int name="zkClientTimeout">77</int>
+     <int name="zkClientTimeout">${zkClientTimeout:15000}</int>
-     <str name="zkHost">testZkHost</str>
+     <str name="zkHost">${zkHost:}</str>
+     <bool name="genericCoreNodeNames">${genericCoreNodeNames:true}</bool>
    </solrcloud>
  
  
    <logging>
-     <str name="class">testLoggingClass</str>
+     <str name="class">${loggingClass:}</str>
-     <str name="enabled">testLoggingEnabled</str>
+     <str name="enabled">${loggingEnabled:}</str>
      <watcher>
-       <int name="size">88</int>
+       <int name="size">${loggingSize:}</int>
-       <int name="threshold">99</int>
+       <int name="threshold">${loggingThreshold:}</int>
      </watcher>
    </logging>
  
-   <shardHandlerFactory name="testShardHandlerFactory" class="testHttpShardHandlerFactory">
+   <shardHandlerFactory name="shardHandlerFactory" class="HttpShardHandlerFactory">
-     <int name="socketTimeout">${socketTimeout:100}</int>
+     <int name="socketTimeout">${socketTimeout:}</int>
-     <int name="connTimeout">${connTimeout:110}</int>
+     <int name="connTimeout">${socketTimeout:}</int>
    </shardHandlerFactory>
  
  </solr>