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/SolrConfigXml

------------------------------------------------------------------------------
  
  A 
[http://svn.apache.org/repos/asf/lucene/solr/trunk/example/solr/conf/solrconfig.xml
 sample solrconfig.xml with comments] can be found in the Source Repository.
  
- /!\ :TODO: /!\ Package names need updated
+ /!\ :TODO: /!\ Still need a section explaining indexDefaults
  
  
  [[TableOfContents]]
  
  == dataDir parameter ==
  
- Used to specify an alternate directory to hold all index data other than the 
default ./data under the Solr home. If replication is in use, this should match 
the replication configuration. When using Tomcat, this directory is relevant to 
where Tomcat is started from.
+ Used to specify an alternate directory to hold all index data other than the 
default ./data under the Solr home. If replication is in use, this should match 
the replication configuration.  If this directory is not absolute, then it is 
relative to the current working directory of the servlet container.
  
  {{{
-   <dataDir>./solr/data</dataDir>
+   <dataDir>/var/data/solr</dataDir>
  }}}
  
- == mainIndex Parameters ==
+ == indexDefauts Section ==
+ 
+ /!\ :TODO: /!\ Still need a section explaining indexDefaults
+ 
+ == mainIndex Section ==
  
  The values in this section controls the merging of multiple index segments. 
See the `mergeFactor` Considerations section on the SolrPerformanceFactors doc 
for more details.
  {{{
@@ -37, +41 @@

  == Update Handler Section ==
  
  You can list multiple events in the updateHandler but do not change
- `updateHandler class="solar.DirectUpdateHandler2"`.  
+ `updateHandler class="solr.DirectUpdateHandler2"`.  
  
  {{{
- <updateHandler class="solar.DirectUpdateHandler2">
+ <updateHandler class="solr.DirectUpdateHandler2">
  
      <!-- autocommit pending docs if certain criteria are met.  Future 
versions may expand the available
       criteria -->
@@ -58, +62 @@

        -->
      <!-- A postCommit event is fired after every commit
        -->
-     <listener event="postCommit" class="solar.RunExecutableListener">
+     <listener event="postCommit" class="solr.RunExecutableListener">
-       <str name="exe">/var/opt/resin3/__PORT__/scripts/solar/snapshooter</str>
-       <str name="dir">/var/opt/resin3/__PORT__</str>
+       <str name="exe">snapshooter</str>
+       <str name="dir">solr/bin</str>
        <bool name="wait">true</bool>
        <!--
        <arr name="args"> <str>arg1</str> <str>arg2</str> </arr>
@@ -88, +92 @@

  You can change these caching parameters as your index grows and changes. See 
the   SolrCaching page for details on configuring the caches.
  
  {{{
+ 
+ 
-     <!-- Internal cache used by SolarIndexSearcher for filters (DocSets),
+     <!-- Cache used by SolrIndexSearcher for filters (DocSets),
           unordered sets of *all* documents that match a query.
           When a new searcher is opened, its caches may be prepopulated
           or "autowarmed" using data from caches in the old searcher.
           autowarmCount is the number of items to prepopulate.  For LRUCache,
-          the prepopulated items will be the most recently accessed items.
+          the autowarmed items will be the most recently accessed items.
+        Parameters:
+          class - the SolrCache implementation (currently only LRUCache)
+          size - the maximum number of entries in the cache
+          initialSize - the initial capacity (number of entries) of
+            the cache.  (seel java.util.HashMap)
+          autowarmCount - the number of entries to prepopulate from
+            and old cache.
-       -->
+          -->
      <filterCache
-       class="solar.search.LRUCache"
+       class="solr.LRUCache"
-       size="16384"
+       size="512"
-       initialSize="4096"
+       initialSize="512"
-       autowarmCount="4096"/>
+       autowarmCount="256"/>
  
-     <!-- queryResultCache caches results of searches - ordered lists of
+    <!-- queryResultCache caches results of searches - ordered lists of
           document ids (DocList) based on a query, a sort, and the range
-          of documents requested.
+          of documents requested.  -->
-       -->
      <queryResultCache
-       class="solar.search.LRUCache"
+       class="solr.LRUCache"
-       size="16384"
+       size="512"
-       initialSize="4096"
+       initialSize="512"
-       autowarmCount="1024"/>
+       autowarmCount="256"/>
  
-    <!-- documentCache caches Lucene Document objects (the stored fields for
+   <!-- documentCache caches Lucene Document objects (the stored fields for 
each document).
+        Since Lucene internal document ids are transient, this cache will not 
be autowarmed.  -->
-         each document).
-     -->
      <documentCache
-       class="solar.search.LRUCache"
+       class="solr.LRUCache"
-       size="16384"
+       size="512"
-       initialSize="16384"/>
+       initialSize="512"
+       autowarmCount="0"/>
  
-  <!-- Example of a generic cache.  These caches may be accessed by name 
+     <!-- Example of a generic cache.  These caches may be accessed by name
-       through SolarIndexSearcher.getCache(),cacheLookup(), and cacheInsert(). 
+          through SolrIndexSearcher.getCache(),cacheLookup(), and 
cacheInsert().
-       The purpose is to enable easy caching of user/application level data. 
+          The purpose is to enable easy caching of user/application level data.
-       The regenerator argument should be specified as an implementation of
+          The regenerator argument should be specified as an implementation
-       solar.search.CacheRegenerator if autowarming is desired.
+          of solr.search.CacheRegenerator if autowarming is desired.  -->
-    -->
      <!--
-     <cache name="dfllNode"
+     <cache name="myUserCache"
-       class="solar.search.LRUCache"
+       class="solr.LRUCache"
        size="4096"
-       initialSize="2048"
+       initialSize="1024"
-       autowarmCount="4096"
+       autowarmCount="1024"
-       regenerator="cnwk.dfll.plugin.DfllSolarRequestHandler$Regenerator"/>
+       regenerator="org.mycompany.mypackage.MyRegenerator"
+       />
      -->
  
      <!-- An optimization that attempts to use a filter to satisfy a search.
@@ -188, +200 @@

           executes a local query request for each NamedList in sequence.
       -->
      <!--
-     <listener event="newSearcher" class="solar.QuerySenderListener">
+     <listener event="newSearcher" class="solr.QuerySenderListener">
        <arr name="queries">
-         <lst> <str name="q">solar</str> 
+         <lst> <str name="q">solr</str> 
                <str name="start">0</str>
                <str name="rows">10</str> 
          </lst>
@@ -212, +224 @@

           requests or to gain prewarming data from.
       -->
      <!--
-     <listener event="firstSearcher" class="solar.QuerySenderListener">
+     <listener event="firstSearcher" class="solr.QuerySenderListener">
        <arr name="queries">
          <lst> <str name="q">fast_warm</str> 
                <str name="start">0</str>
@@ -226, +238 @@

  
  == Request Handler Plug-in Section ==
  
- /!\ :TODO: /!\ Add details on supplying default requesthandler parameters.
+ /!\ :TODO: /!\ Add details on supplying init parameters.
  
  This is where multiple request handlers can be registered.
  
@@ -236, +248 @@

       name of registered handlers. The "standard" request handler is the 
       default and will be used if qtis not specified in the request.
    -->
-   <requestHandler name="standard" class="solar.StandardRequestHandler" />
+   <requestHandler name="standard" class="solr.StandardRequestHandler" />
-   <requestHandler name="old" class="solar.tst.OldRequestHandler" />
-   <requestHandler name="test" class="solar.tst.TestRequestHandler" />  
+   <requestHandler name="custom" class="your.package.CustomRequestHandler" />  
  }}}
   
  == The Admin/GUI Section ==

Reply via email to