Advertisement
allan_atosho_com

solrconfig.xml

Nov 22nd, 2012
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 7.04 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <config>
  3.   <luceneMatchVersion>LUCENE_40</luceneMatchVersion>
  4.   <lib dir="../../../contrib/extraction/lib" regex=".*\.jar" />
  5.   <lib dir="../../../dist/" regex="apache-solr-cell-\d.*\.jar" />
  6.  
  7.   <lib dir="../../../contrib/clustering/lib/" regex=".*\.jar" />
  8.   <lib dir="../../../dist/" regex="apache-solr-clustering-\d.*\.jar" />
  9.  
  10.   <lib dir="../../../contrib/langid/lib/" regex=".*\.jar" />
  11.   <lib dir="../../../dist/" regex="apache-solr-langid-\d.*\.jar" />
  12.  
  13.   <lib dir="../../../contrib/velocity/lib" regex=".*\.jar" />
  14.   <lib dir="../../../dist/" regex="apache-solr-velocity-\d.*\.jar" />
  15.  
  16.   <dataDir>${solr.data.dir:}</dataDir>
  17.  
  18.  
  19.   <directoryFactory name="DirectoryFactory"
  20.                    class="${solr.directoryFactory:solr.NRTCachingDirectoryFactory}"/>
  21.   <indexConfig>
  22.   </indexConfig>
  23.  
  24.  
  25.   <jmx />
  26.   <updateHandler class="solr.DirectUpdateHandler2">
  27.     <!--<updateLog>
  28.      <str name="dir">${solr.data.dir:}</str>
  29.    </updateLog>-->
  30.   </updateHandler>
  31.   <query>
  32.     <maxBooleanClauses>1024</maxBooleanClauses>
  33.     <filterCache class="solr.FastLRUCache"
  34.                 size="512"
  35.                 initialSize="512"
  36.                 autowarmCount="512"/>
  37.     <queryResultCache class="solr.LRUCache"
  38.                     size="512"
  39.                     initialSize="512"
  40.                     autowarmCount="0"/>
  41.     <documentCache class="solr.LRUCache"
  42.                   size="512"
  43.                   initialSize="512"
  44.                   autowarmCount="0"/>
  45.     <enableLazyFieldLoading>true</enableLazyFieldLoading>
  46.     <queryResultWindowSize>20</queryResultWindowSize>
  47.     <queryResultMaxDocsCached>200</queryResultMaxDocsCached>
  48.     <listener event="newSearcher" class="solr.QuerySenderListener">
  49.       <arr name="queries">
  50.       </arr>
  51.     </listener>
  52.     <listener event="firstSearcher" class="solr.QuerySenderListener">
  53.       <arr name="queries">
  54.         <lst>
  55.           <str name="q">featured:true</str>
  56.         </lst>
  57.       </arr>
  58.     </listener>
  59.     <useColdSearcher>false</useColdSearcher>
  60.     <maxWarmingSearchers>2</maxWarmingSearchers>
  61.   </query>
  62.   <requestDispatcher handleSelect="false" >
  63.     <requestParsers enableRemoteStreaming="true"
  64.                    multipartUploadLimitInKB="2048000" />
  65.     <httpCaching never304="true" />
  66.   </requestDispatcher>
  67.   <requestHandler name="/select" class="solr.SearchHandler">
  68.      <lst name="defaults">
  69.        <str name="echoParams">explicit</str>
  70.        <int name="rows">10</int>
  71.        <str name="df">text</str>
  72.      </lst>
  73.     </requestHandler>
  74.  
  75.   <requestHandler name="/update" class="solr.UpdateRequestHandler">
  76.   </requestHandler>
  77.  
  78.   <!-- for back compat with clients using /update/json and /update/csv -->  
  79.   <requestHandler name="/update/json" class="solr.JsonUpdateRequestHandler">
  80.         <lst name="defaults">
  81.          <str name="stream.contentType">application/json</str>
  82.        </lst>
  83.   </requestHandler>
  84.   <requestHandler name="/update/csv" class="solr.CSVRequestHandler">
  85.         <lst name="defaults">
  86.          <str name="stream.contentType">application/csv</str>
  87.        </lst>
  88.   </requestHandler>
  89.  
  90.   <!-- Solr Cell Update Request Handler
  91.  
  92.       http://wiki.apache.org/solr/ExtractingRequestHandler
  93.  
  94.    -->
  95.   <requestHandler name="/update/extract"
  96.                  startup="lazy"
  97.                  class="solr.extraction.ExtractingRequestHandler" >
  98.     <lst name="defaults">
  99.       <str name="lowernames">true</str>
  100.       <str name="uprefix">ignored_</str>
  101.  
  102.       <!-- capture link hrefs but ignore div attributes -->
  103.       <str name="captureAttr">true</str>
  104.       <str name="fmap.a">links</str>
  105.       <str name="fmap.div">ignored_</str>
  106.     </lst>
  107.   </requestHandler>
  108.  
  109.   <requestHandler name="/analysis/field"
  110.                  startup="lazy"
  111.                  class="solr.FieldAnalysisRequestHandler" />
  112.  
  113.   <requestHandler name="/analysis/document"
  114.                  class="solr.DocumentAnalysisRequestHandler"
  115.                  startup="lazy" />
  116.  
  117.   <requestHandler name="/admin/MBean" class="solr.admin.SolrInfoMBeanHandler" />
  118.   <requestHandler name="/admin/"
  119.                  class="solr.admin.AdminHandlers" />
  120.  
  121.   <requestHandler name="/admin/ping" class="solr.PingRequestHandler">
  122.     <lst name="invariants">
  123.       <str name="q">solrpingquery</str>
  124.     </lst>
  125.     <lst name="defaults">
  126.       <str name="echoParams">all</str>
  127.     </lst>
  128.   </requestHandler>
  129.  
  130.   <requestHandler name="/debug/dump" class="solr.DumpRequestHandler" >
  131.     <lst name="defaults">
  132.      <str name="echoParams">explicit</str>
  133.      <str name="echoHandler">true</str>
  134.     </lst>
  135.   </requestHandler>
  136.  
  137.   <requestHandler name="/replication" class="solr.ReplicationHandler" >
  138.     <!--
  139.       <lst name="master">
  140.         <str name="replicateAfter">commit</str>
  141.         <str name="replicateAfter">startup</str>
  142.         <str name="confFiles">schema.xml,stopwords.txt</str>
  143.       </lst>
  144.    -->
  145.        <lst name="slave">
  146.          <str name="masterUrl">http://[snip]:8080/solr-production/${solr.core.name}</str>
  147.          <str name="pollInterval">00:05:00</str>
  148.        </lst>
  149.   </requestHandler>
  150.  
  151.  
  152.  
  153.   <!-- Response Writers
  154.  
  155.       http://wiki.apache.org/solr/QueryResponseWriter
  156.  
  157.       Request responses will be written using the writer specified by
  158.       the 'wt' request parameter matching the name of a registered
  159.       writer.
  160.  
  161.       The "default" writer is the default and will be used if 'wt' is
  162.       not specified in the request.
  163.    -->
  164.   <!-- The following response writers are implicitly configured unless
  165.       overridden...
  166.    -->
  167.   <!--
  168.     <queryResponseWriter name="xml"
  169.                          default="true"
  170.                          class="solr.XMLResponseWriter" />
  171.     <queryResponseWriter name="json" class="solr.JSONResponseWriter"/>
  172.     <queryResponseWriter name="python" class="solr.PythonResponseWriter"/>
  173.     <queryResponseWriter name="ruby" class="solr.RubyResponseWriter"/>
  174.     <queryResponseWriter name="php" class="solr.PHPResponseWriter"/>
  175.     <queryResponseWriter name="phps" class="solr.PHPSerializedResponseWriter"/>
  176.     <queryResponseWriter name="csv" class="solr.CSVResponseWriter"/>
  177.    -->
  178.  
  179.   <queryResponseWriter name="json" class="solr.JSONResponseWriter">
  180.      <!-- For the purposes of the tutorial, JSON responses are written as
  181.      plain text so that they are easy to read in *any* browser.
  182.      If you expect a MIME type of "application/json" just remove this override.
  183.     -->
  184.     <str name="content-type">text/plain; charset=UTF-8</str>
  185.   </queryResponseWriter>
  186.  
  187.  
  188.   <!-- XSLT response writer transforms the XML output by any xslt file found
  189.       in Solr's conf/xslt directory.  Changes to xslt files are checked for
  190.       every xsltCacheLifetimeSeconds.  
  191.    -->
  192.   <queryResponseWriter name="xslt" class="solr.XSLTResponseWriter">
  193.     <int name="xsltCacheLifetimeSeconds">5</int>
  194.   </queryResponseWriter>
  195.  
  196.  
  197.   <!-- Legacy config for the admin interface -->
  198.   <admin>
  199.     <defaultQuery>*:*</defaultQuery>
  200.   </admin>
  201.  
  202. </config>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement