Advertisement
Guest User

solrconfig

a guest
Aug 12th, 2014
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 72.47 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements.  See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to You under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License.  You may obtain a copy of the License at
  9.  
  10.     http://www.apache.org/licenses/LICENSE-2.0
  11.  
  12. Unless required by applicable law or agreed to in writing, software
  13. distributed under the License is distributed on an "AS IS" BASIS,
  14. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. See the License for the specific language governing permissions and
  16. limitations under the License.
  17. -->
  18.  
  19. <!--
  20.     For more details about configurations options that may appear in
  21.     this file, see http://wiki.apache.org/solr/SolrConfigXml.
  22. -->
  23. <config>
  24.   <!-- In all configuration below, a prefix of "solr." for class names
  25.       is an alias that causes solr to search appropriate packages,
  26.       including org.apache.solr.(search|update|request|core|analysis)
  27.  
  28.       You may also specify a fully qualified Java classname if you
  29.       have your own custom plugins.
  30.    -->
  31.  
  32.   <!-- Controls what version of Lucene various components of Solr
  33.       adhere to.  Generally, you want to use the latest version to
  34.       get all bug fixes and improvements. It is highly recommended
  35.       that you fully re-index after changing this setting as it can
  36.       affect both how text is indexed and queried.
  37.  -->
  38.   <luceneMatchVersion>4.6</luceneMatchVersion>
  39.  
  40.   <!-- <lib/> directives can be used to instruct Solr to load an Jars
  41.       identified and use them to resolve any "plugins" specified in
  42.       your solrconfig.xml or schema.xml (ie: Analyzers, Request
  43.       Handlers, etc...).
  44.  
  45.       All directories and paths are resolved relative to the
  46.       instanceDir.
  47.  
  48.       Please note that <lib/> directives are processed in the order
  49.       that they appear in your solrconfig.xml file, and are "stacked"
  50.       on top of each other when building a ClassLoader - so if you have
  51.       plugin jars with dependencies on other jars, the "lower level"
  52.       dependency jars should be loaded first.
  53.  
  54.       If a "./lib" directory exists in your instanceDir, all files
  55.       found in it are included as if you had used the following
  56.       syntax...
  57.      
  58.              <lib dir="./lib" />
  59.    -->
  60.  
  61.   <!-- A 'dir' option by itself adds any files found in the directory
  62.       to the classpath, this is useful for including all jars in a
  63.       directory.
  64.  
  65.       When a 'regex' is specified in addition to a 'dir', only the
  66.       files in that directory which completely match the regex
  67.       (anchored on both ends) will be included.
  68.  
  69.       If a 'dir' option (with or without a regex) is used and nothing
  70.       is found that matches, a warning will be logged.
  71.  
  72.       The examples below can be used to load some solr-contribs along
  73.       with their external dependencies.
  74.    -->
  75.   <lib dir="../../../contrib/extraction/lib" regex=".*\.jar" />
  76.   <lib dir="../../../dist/" regex="solr-cell-\d.*\.jar" />
  77.  
  78.   <lib dir="../../../contrib/clustering/lib/" regex=".*\.jar" />
  79.   <lib dir="../../../dist/" regex="solr-clustering-\d.*\.jar" />
  80.  
  81.   <lib dir="../../../contrib/langid/lib/" regex=".*\.jar" />
  82.   <lib dir="../../../dist/" regex="solr-langid-\d.*\.jar" />
  83.  
  84.   <lib dir="../../../contrib/velocity/lib" regex=".*\.jar" />
  85.   <lib dir="../../../dist/" regex="solr-velocity-\d.*\.jar" />
  86.  
  87.   <!-- an exact 'path' can be used instead of a 'dir' to specify a
  88.       specific jar file.  This will cause a serious error to be logged
  89.       if it can't be loaded.
  90.    -->
  91.   <!--
  92.     <lib path="../a-jar-that-does-not-exist.jar" />
  93.  -->
  94.  
  95.   <!-- Data Directory
  96.  
  97.       Used to specify an alternate directory to hold all index data
  98.       other than the default ./data under the Solr home.  If
  99.       replication is in use, this should match the replication
  100.       configuration.
  101.    -->
  102.   <dataDir>${solr.data.dir:}</dataDir>
  103.  
  104.  
  105.   <!-- The DirectoryFactory to use for indexes.
  106.      
  107.       solr.StandardDirectoryFactory is filesystem
  108.       based and tries to pick the best implementation for the current
  109.       JVM and platform.  solr.NRTCachingDirectoryFactory, the default,
  110.       wraps solr.StandardDirectoryFactory and caches small files in memory
  111.       for better NRT performance.
  112.  
  113.       One can force a particular implementation via solr.MMapDirectoryFactory,
  114.       solr.NIOFSDirectoryFactory, or solr.SimpleFSDirectoryFactory.
  115.  
  116.       solr.RAMDirectoryFactory is memory based, not
  117.       persistent, and doesn't work with replication.
  118.    -->
  119.   <directoryFactory name="DirectoryFactory"
  120.                    class="${solr.directoryFactory:solr.NRTCachingDirectoryFactory}"/>
  121.  
  122.   <!-- The CodecFactory for defining the format of the inverted index.
  123.       The default implementation is SchemaCodecFactory, which is the official Lucene
  124.       index format, but hooks into the schema to provide per-field customization of
  125.       the postings lists and per-document values in the fieldType element
  126.       (postingsFormat/docValuesFormat). Note that most of the alternative implementations
  127.       are experimental, so if you choose to customize the index format, its a good
  128.       idea to convert back to the official format e.g. via IndexWriter.addIndexes(IndexReader)
  129.       before upgrading to a newer version to avoid unnecessary reindexing.
  130.  -->
  131.   <codecFactory class="solr.SchemaCodecFactory"/>
  132.  
  133.   <!-- To enable dynamic schema REST APIs, use the following for <schemaFactory>:
  134.  
  135.       <schemaFactory class="ManagedIndexSchemaFactory">
  136.         <bool name="mutable">true</bool>
  137.         <str name="managedSchemaResourceName">managed-schema</str>
  138.       </schemaFactory>
  139.      
  140.       When ManagedIndexSchemaFactory is specified, Solr will load the schema from
  141.       he resource named in 'managedSchemaResourceName', rather than from schema.xml.
  142.       Note that the managed schema resource CANNOT be named schema.xml.  If the managed
  143.       schema does not exist, Solr will create it after reading schema.xml, then rename
  144.       'schema.xml' to 'schema.xml.bak'.
  145.      
  146.       Do NOT hand edit the managed schema - external modifications will be ignored and
  147.       overwritten as a result of schema modification REST API calls.
  148.  
  149.       When ManagedIndexSchemaFactory is specified with mutable = true, schema
  150.       modification REST API calls will be allowed; otherwise, error responses will be
  151.       sent back for these requests.
  152.  -->
  153.   <schemaFactory class="ClassicIndexSchemaFactory"/>
  154.  
  155.   <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  156.       Index Config - These settings control low-level behavior of indexing
  157.       Most example settings here show the default value, but are commented
  158.       out, to more easily see where customizations have been made.
  159.      
  160.       Note: This replaces <indexDefaults> and <mainIndex> from older versions
  161.       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
  162.   <indexConfig>
  163.     <!-- maxFieldLength was removed in 4.0. To get similar behavior, include a
  164.         LimitTokenCountFilterFactory in your fieldType definition. E.g.
  165.     <filter class="solr.LimitTokenCountFilterFactory" maxTokenCount="10000"/>
  166.    -->
  167.     <!-- Maximum time to wait for a write lock (ms) for an IndexWriter. Default: 1000 -->
  168.     <!-- <writeLockTimeout>1000</writeLockTimeout>  -->
  169.  
  170.     <!-- The maximum number of simultaneous threads that may be
  171.         indexing documents at once in IndexWriter; if more than this
  172.         many threads arrive they will wait for others to finish.
  173.         Default in Solr/Lucene is 8. -->
  174.     <!-- <maxIndexingThreads>8</maxIndexingThreads>  -->
  175.  
  176.     <!-- Expert: Enabling compound file will use less files for the index,
  177.         using fewer file descriptors on the expense of performance decrease.
  178.         Default in Lucene is "true". Default in Solr is "false" (since 3.6) -->
  179.     <!-- <useCompoundFile>false</useCompoundFile> -->
  180.  
  181.     <!-- ramBufferSizeMB sets the amount of RAM that may be used by Lucene
  182.         indexing for buffering added documents and deletions before they are
  183.         flushed to the Directory.
  184.         maxBufferedDocs sets a limit on the number of documents buffered
  185.         before flushing.
  186.         If both ramBufferSizeMB and maxBufferedDocs is set, then
  187.         Lucene will flush based on whichever limit is hit first.
  188.         The default is 100 MB.  -->
  189.     <!-- <ramBufferSizeMB>100</ramBufferSizeMB> -->
  190.     <!-- <maxBufferedDocs>1000</maxBufferedDocs> -->
  191.  
  192.     <!-- Expert: Merge Policy
  193.         The Merge Policy in Lucene controls how merging of segments is done.
  194.         The default since Solr/Lucene 3.3 is TieredMergePolicy.
  195.         The default since Lucene 2.3 was the LogByteSizeMergePolicy,
  196.         Even older versions of Lucene used LogDocMergePolicy.
  197.      -->
  198.     <!--
  199.        <mergePolicy class="org.apache.lucene.index.TieredMergePolicy">
  200.          <int name="maxMergeAtOnce">10</int>
  201.          <int name="segmentsPerTier">10</int>
  202.        </mergePolicy>
  203.      -->
  204.        
  205.     <!-- Merge Factor
  206.         The merge factor controls how many segments will get merged at a time.
  207.         For TieredMergePolicy, mergeFactor is a convenience parameter which
  208.         will set both MaxMergeAtOnce and SegmentsPerTier at once.
  209.         For LogByteSizeMergePolicy, mergeFactor decides how many new segments
  210.         will be allowed before they are merged into one.
  211.         Default is 10 for both merge policies.
  212.      -->
  213.     <!--
  214.    <mergeFactor>10</mergeFactor>
  215.      -->
  216.  
  217.     <!-- Expert: Merge Scheduler
  218.         The Merge Scheduler in Lucene controls how merges are
  219.         performed.  The ConcurrentMergeScheduler (Lucene 2.3 default)
  220.         can perform merges in the background using separate threads.
  221.         The SerialMergeScheduler (Lucene 2.2 default) does not.
  222.     -->
  223.     <!--
  224.       <mergeScheduler class="org.apache.lucene.index.ConcurrentMergeScheduler"/>
  225.       -->
  226.  
  227.     <!-- LockFactory
  228.  
  229.         This option specifies which Lucene LockFactory implementation
  230.         to use.
  231.      
  232.         single = SingleInstanceLockFactory - suggested for a
  233.                  read-only index or when there is no possibility of
  234.                  another process trying to modify the index.
  235.         native = NativeFSLockFactory - uses OS native file locking.
  236.                  Do not use when multiple solr webapps in the same
  237.                  JVM are attempting to share a single index.
  238.         simple = SimpleFSLockFactory  - uses a plain file for locking
  239.  
  240.         Defaults: 'native' is default for Solr3.6 and later, otherwise
  241.                   'simple' is the default
  242.  
  243.         More details on the nuances of each LockFactory...
  244.         http://wiki.apache.org/lucene-java/AvailableLockFactories
  245.    -->
  246.     <lockType>${solr.lock.type:native}</lockType>
  247.  
  248.     <!-- Unlock On Startup
  249.  
  250.         If true, unlock any held write or commit locks on startup.
  251.         This defeats the locking mechanism that allows multiple
  252.         processes to safely access a lucene index, and should be used
  253.         with care. Default is "false".
  254.  
  255.         This is not needed if lock type is 'single'
  256.     -->
  257.     <!--
  258.    <unlockOnStartup>false</unlockOnStartup>
  259.      -->
  260.    
  261.     <!-- Expert: Controls how often Lucene loads terms into memory
  262.         Default is 128 and is likely good for most everyone.
  263.      -->
  264.     <!-- <termIndexInterval>128</termIndexInterval> -->
  265.  
  266.     <!-- If true, IndexReaders will be opened/reopened from the IndexWriter
  267.         instead of from the Directory. Hosts in a master/slave setup
  268.         should have this set to false while those in a SolrCloud
  269.         cluster need to be set to true. Default: true
  270.      -->
  271.     <!--
  272.    <nrtMode>true</nrtMode>
  273.      -->
  274.  
  275.     <!-- Commit Deletion Policy
  276.         Custom deletion policies can be specified here. The class must
  277.         implement org.apache.lucene.index.IndexDeletionPolicy.
  278.  
  279.         The default Solr IndexDeletionPolicy implementation supports
  280.         deleting index commit points on number of commits, age of
  281.         commit point and optimized status.
  282.        
  283.         The latest commit point should always be preserved regardless
  284.         of the criteria.
  285.    -->
  286.     <!--
  287.    <deletionPolicy class="solr.SolrDeletionPolicy">
  288.    -->
  289.       <!-- The number of commit points to be kept -->
  290.       <!-- <str name="maxCommitsToKeep">1</str> -->
  291.       <!-- The number of optimized commit points to be kept -->
  292.       <!-- <str name="maxOptimizedCommitsToKeep">0</str> -->
  293.       <!--
  294.          Delete all commit points once they have reached the given age.
  295.          Supports DateMathParser syntax e.g.
  296.        -->
  297.       <!--
  298.         <str name="maxCommitAge">30MINUTES</str>
  299.         <str name="maxCommitAge">1DAY</str>
  300.      -->
  301.     <!--
  302.    </deletionPolicy>
  303.    -->
  304.  
  305.     <!-- Lucene Infostream
  306.      
  307.         To aid in advanced debugging, Lucene provides an "InfoStream"
  308.         of detailed information when indexing.
  309.  
  310.         Setting the value to true will instruct the underlying Lucene
  311.         IndexWriter to write its info stream to solr's log. By default,
  312.         this is enabled here, and controlled through log4j.properties.
  313.      -->
  314.      <infoStream>true</infoStream>
  315.   </indexConfig>
  316.  
  317.  
  318.   <!-- JMX
  319.      
  320.       This example enables JMX if and only if an existing MBeanServer
  321.       is found, use this if you want to configure JMX through JVM
  322.       parameters. Remove this to disable exposing Solr configuration
  323.       and statistics to JMX.
  324.  
  325.       For more details see http://wiki.apache.org/solr/SolrJmx
  326.    -->
  327.   <jmx />
  328.   <!-- If you want to connect to a particular server, specify the
  329.       agentId
  330.    -->
  331.   <!-- <jmx agentId="myAgent" /> -->
  332.   <!-- If you want to start a new MBeanServer, specify the serviceUrl -->
  333.   <!-- <jmx serviceUrl="service:jmx:rmi:///jndi/rmi://localhost:9999/solr"/>
  334.    -->
  335.  
  336.   <!-- The default high-performance update handler -->
  337.   <updateHandler class="solr.DirectUpdateHandler2">
  338.  
  339.     <!-- Enables a transaction log, used for real-time get, durability, and
  340.         and solr cloud replica recovery.  The log can grow as big as
  341.         uncommitted changes to the index, so use of a hard autoCommit
  342.         is recommended (see below).
  343.         "dir" - the target directory for transaction logs, defaults to the
  344.                solr data directory.  -->
  345.     <updateLog>
  346.       <str name="dir">${solr.ulog.dir:}</str>
  347.     </updateLog>
  348.  
  349.     <!-- AutoCommit
  350.  
  351.         Perform a hard commit automatically under certain conditions.
  352.         Instead of enabling autoCommit, consider using "commitWithin"
  353.         when adding documents.
  354.  
  355.         http://wiki.apache.org/solr/UpdateXmlMessages
  356.  
  357.         maxDocs - Maximum number of documents to add since the last
  358.                   commit before automatically triggering a new commit.
  359.  
  360.         maxTime - Maximum amount of time in ms that is allowed to pass
  361.                   since a document was added before automatically
  362.                   triggering a new commit.
  363.         openSearcher - if false, the commit causes recent index changes
  364.           to be flushed to stable storage, but does not cause a new
  365.           searcher to be opened to make those changes visible.
  366.  
  367.         If the updateLog is enabled, then it's highly recommended to
  368.         have some sort of hard autoCommit to limit the log size.
  369.      -->
  370.      <autoSoftCommit>
  371.         <maxTime>1000</maxTime>
  372.      </autoSoftCommit>    
  373.  
  374.      <autoCommit>
  375.        <maxTime>300000</maxTime>
  376.        <openSearcher>false</openSearcher>
  377.      </autoCommit>
  378.  
  379.     <!-- softAutoCommit is like autoCommit except it causes a
  380.         'soft' commit which only ensures that changes are visible
  381.         but does not ensure that data is synced to disk.  This is
  382.         faster and more near-realtime friendly than a hard commit.
  383.  
  384.     <autoSoftCommit>
  385.       <maxTime>${solr.autoSoftCommit.maxTime:-1}</maxTime>
  386.     </autoSoftCommit>
  387.      -->
  388.  
  389.     <!-- Update Related Event Listeners
  390.        
  391.         Various IndexWriter related events can trigger Listeners to
  392.         take actions.
  393.  
  394.         postCommit - fired after every commit or optimize command
  395.         postOptimize - fired after every optimize command
  396.      -->
  397.     <!-- The RunExecutableListener executes an external command from a
  398.         hook such as postCommit or postOptimize.
  399.        
  400.         exe - the name of the executable to run
  401.         dir - dir to use as the current working directory. (default=".")
  402.         wait - the calling thread waits until the executable returns.
  403.                (default="true")
  404.         args - the arguments to pass to the program.  (default is none)
  405.         env - environment variables to set.  (default is none)
  406.      -->
  407.     <!-- This example shows how RunExecutableListener could be used
  408.         with the script based replication...
  409.         http://wiki.apache.org/solr/CollectionDistribution
  410.      -->
  411.     <!--
  412.       <listener event="postCommit" class="solr.RunExecutableListener">
  413.         <str name="exe">solr/bin/snapshooter</str>
  414.         <str name="dir">.</str>
  415.         <bool name="wait">true</bool>
  416.         <arr name="args"> <str>arg1</str> <str>arg2</str> </arr>
  417.         <arr name="env"> <str>MYVAR=val1</str> </arr>
  418.       </listener>
  419.      -->
  420.  
  421.   </updateHandler>
  422.  
  423.   <!-- IndexReaderFactory
  424.  
  425.       Use the following format to specify a custom IndexReaderFactory,
  426.       which allows for alternate IndexReader implementations.
  427.  
  428.       ** Experimental Feature **
  429.  
  430.       Please note - Using a custom IndexReaderFactory may prevent
  431.       certain other features from working. The API to
  432.       IndexReaderFactory may change without warning or may even be
  433.       removed from future releases if the problems cannot be
  434.       resolved.
  435.  
  436.  
  437.       ** Features that may not work with custom IndexReaderFactory **
  438.  
  439.       The ReplicationHandler assumes a disk-resident index. Using a
  440.       custom IndexReader implementation may cause incompatibility
  441.       with ReplicationHandler and may cause replication to not work
  442.       correctly. See SOLR-1366 for details.
  443.  
  444.    -->
  445.   <!--
  446.  <indexReaderFactory name="IndexReaderFactory" class="package.class">
  447.    <str name="someArg">Some Value</str>
  448.  </indexReaderFactory >
  449.  -->
  450.   <!-- By explicitly declaring the Factory, the termIndexDivisor can
  451.       be specified.
  452.    -->
  453.   <!--
  454.     <indexReaderFactory name="IndexReaderFactory"
  455.                         class="solr.StandardIndexReaderFactory">
  456.       <int name="setTermIndexDivisor">12</int>
  457.     </indexReaderFactory >
  458.    -->
  459.  
  460.   <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461.       Query section - these settings control query time things like caches
  462.       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
  463.   <query>
  464.     <!-- Max Boolean Clauses
  465.  
  466.         Maximum number of clauses in each BooleanQuery,  an exception
  467.         is thrown if exceeded.
  468.  
  469.         ** WARNING **
  470.        
  471.         This option actually modifies a global Lucene property that
  472.         will affect all SolrCores.  If multiple solrconfig.xml files
  473.         disagree on this property, the value at any given moment will
  474.         be based on the last SolrCore to be initialized.
  475.        
  476.      -->
  477.     <maxBooleanClauses>1024</maxBooleanClauses>
  478.  
  479.  
  480.     <!-- Solr Internal Query Caches
  481.  
  482.         There are two implementations of cache available for Solr,
  483.         LRUCache, based on a synchronized LinkedHashMap, and
  484.         FastLRUCache, based on a ConcurrentHashMap.  
  485.  
  486.         FastLRUCache has faster gets and slower puts in single
  487.         threaded operation and thus is generally faster than LRUCache
  488.         when the hit ratio of the cache is high (> 75%), and may be
  489.         faster under other scenarios on multi-cpu systems.
  490.    -->
  491.  
  492.     <!-- Filter Cache
  493.  
  494.         Cache used by SolrIndexSearcher for filters (DocSets),
  495.         unordered sets of *all* documents that match a query.  When a
  496.         new searcher is opened, its caches may be prepopulated or
  497.         "autowarmed" using data from caches in the old searcher.
  498.         autowarmCount is the number of items to prepopulate.  For
  499.         LRUCache, the autowarmed items will be the most recently
  500.         accessed items.
  501.  
  502.         Parameters:
  503.           class - the SolrCache implementation LRUCache or
  504.               (LRUCache or FastLRUCache)
  505.           size - the maximum number of entries in the cache
  506.           initialSize - the initial capacity (number of entries) of
  507.               the cache.  (see java.util.HashMap)
  508.           autowarmCount - the number of entries to prepopulate from
  509.               and old cache.  
  510.      -->
  511.     <filterCache class="solr.FastLRUCache"
  512.                 size="16384"
  513.                 initialSize="4096"
  514.                 autowarmCount="4096"/>
  515.  
  516.     <queryResultCache class="solr.FastLRUCache"
  517.                     size="8192"
  518.                     initialSize="8192"
  519.                     autowarmCount="2048"/>
  520.  
  521.    
  522.     <!-- Document Cache
  523.  
  524.         Caches Lucene Document objects (the stored fields for each
  525.         document).  Since Lucene internal document ids are transient,
  526.         this cache will not be autowarmed.  
  527.      -->
  528.     <documentCache class="solr.LRUCache"
  529.                   size="512"
  530.                   initialSize="512"
  531.                   autowarmCount="0"/>
  532.    
  533.     <!-- custom cache currently used by block join -->
  534.     <cache name="perSegFilter"
  535.      class="solr.search.LRUCache"
  536.      size="10"
  537.      initialSize="0"
  538.      autowarmCount="10"
  539.      regenerator="solr.NoOpRegenerator" />
  540.  
  541.     <!-- Field Value Cache
  542.        
  543.         Cache used to hold field values that are quickly accessible
  544.         by document id.  The fieldValueCache is created by default
  545.         even if not configured here.
  546.      -->
  547.     <!--
  548.       <fieldValueCache class="solr.FastLRUCache"
  549.                        size="512"
  550.                        autowarmCount="128"
  551.                        showItems="32" />
  552.      -->
  553.  
  554.     <!-- Custom Cache
  555.  
  556.         Example of a generic cache.  These caches may be accessed by
  557.         name through SolrIndexSearcher.getCache(),cacheLookup(), and
  558.         cacheInsert().  The purpose is to enable easy caching of
  559.         user/application level data.  The regenerator argument should
  560.         be specified as an implementation of solr.CacheRegenerator
  561.         if autowarming is desired.  
  562.      -->
  563.     <!--
  564.       <cache name="myUserCache"
  565.              class="solr.LRUCache"
  566.              size="4096"
  567.              initialSize="1024"
  568.              autowarmCount="1024"
  569.              regenerator="com.mycompany.MyRegenerator"
  570.              />
  571.      -->
  572.  
  573.  
  574.     <!-- Lazy Field Loading
  575.  
  576.         If true, stored fields that are not requested will be loaded
  577.         lazily.  This can result in a significant speed improvement
  578.         if the usual case is to not load all stored fields,
  579.         especially if the skipped fields are large compressed text
  580.         fields.
  581.    -->
  582.     <enableLazyFieldLoading>true</enableLazyFieldLoading>
  583.  
  584.    <!-- Use Filter For Sorted Query
  585.  
  586.        A possible optimization that attempts to use a filter to
  587.        satisfy a search.  If the requested sort does not include
  588.        score, then the filterCache will be checked for a filter
  589.        matching the query. If found, the filter will be used as the
  590.        source of document ids, and then the sort will be applied to
  591.        that.
  592.  
  593.        For most situations, this will not be useful unless you
  594.        frequently get the same search repeatedly with different sort
  595.        options, and none of them ever use "score"
  596.     -->
  597.    <!--
  598.      <useFilterForSortedQuery>true</useFilterForSortedQuery>
  599.     -->
  600.  
  601.    <!-- Result Window Size
  602.  
  603.        An optimization for use with the queryResultCache.  When a search
  604.        is requested, a superset of the requested number of document ids
  605.        are collected.  For example, if a search for a particular query
  606.        requests matching documents 10 through 19, and queryWindowSize is 50,
  607.        then documents 0 through 49 will be collected and cached.  Any further
  608.        requests in that range can be satisfied via the cache.  
  609.     -->
  610.    <queryResultWindowSize>20</queryResultWindowSize>
  611.  
  612.    <!-- Maximum number of documents to cache for any entry in the
  613.        queryResultCache.
  614.     -->
  615.    <queryResultMaxDocsCached>200</queryResultMaxDocsCached>
  616.  
  617.    <!-- Query Related Event Listeners
  618.  
  619.        Various IndexSearcher related events can trigger Listeners to
  620.        take actions.
  621.  
  622.        newSearcher - fired whenever a new searcher is being prepared
  623.        and there is a current searcher handling requests (aka
  624.        registered).  It can be used to prime certain caches to
  625.        prevent long request times for certain requests.
  626.  
  627.        firstSearcher - fired whenever a new searcher is being
  628.        prepared but there is no current registered searcher to handle
  629.        requests or to gain autowarming data from.
  630.  
  631.        
  632.     -->
  633.     <!-- QuerySenderListener takes an array of NamedList and executes a
  634.         local query request for each NamedList in sequence.
  635.      -->
  636.     <listener event="newSearcher" class="solr.QuerySenderListener">
  637.       <arr name="queries">
  638.         <!--
  639.           <lst><str name="q">solr</str><str name="sort">price asc</str></lst>
  640.           <lst><str name="q">rocks</str><str name="sort">weight asc</str></lst>
  641.          -->
  642.       </arr>
  643.     </listener>
  644.     <listener event="firstSearcher" class="solr.QuerySenderListener">
  645.       <arr name="queries">
  646.         <lst>
  647.           <str name="q">static firstSearcher warming in solrconfig.xml</str>
  648.         </lst>
  649.       </arr>
  650.     </listener>
  651.  
  652.     <!-- Use Cold Searcher
  653.  
  654.         If a search request comes in and there is no current
  655.         registered searcher, then immediately register the still
  656.         warming searcher and use it.  If "false" then all requests
  657.         will block until the first searcher is done warming.
  658.      -->
  659.     <useColdSearcher>false</useColdSearcher>
  660.  
  661.     <!-- Max Warming Searchers
  662.        
  663.         Maximum number of searchers that may be warming in the
  664.         background concurrently.  An error is returned if this limit
  665.         is exceeded.
  666.  
  667.         Recommend values of 1-2 for read-only slaves, higher for
  668.         masters w/o cache warming.
  669.      -->
  670.     <maxWarmingSearchers>2</maxWarmingSearchers>
  671.  
  672.   </query>
  673.  
  674.  
  675.   <!-- Request Dispatcher
  676.  
  677.       This section contains instructions for how the SolrDispatchFilter
  678.       should behave when processing requests for this SolrCore.
  679.  
  680.       handleSelect is a legacy option that affects the behavior of requests
  681.       such as /select?qt=XXX
  682.  
  683.       handleSelect="true" will cause the SolrDispatchFilter to process
  684.       the request and dispatch the query to a handler specified by the
  685.       "qt" param, assuming "/select" isn't already registered.
  686.  
  687.       handleSelect="false" will cause the SolrDispatchFilter to
  688.       ignore "/select" requests, resulting in a 404 unless a handler
  689.       is explicitly registered with the name "/select"
  690.  
  691.       handleSelect="true" is not recommended for new users, but is the default
  692.       for backwards compatibility
  693.    -->
  694.   <requestDispatcher handleSelect="false" >
  695.     <!-- Request Parsing
  696.  
  697.         These settings indicate how Solr Requests may be parsed, and
  698.         what restrictions may be placed on the ContentStreams from
  699.         those requests
  700.  
  701.         enableRemoteStreaming - enables use of the stream.file
  702.         and stream.url parameters for specifying remote streams.
  703.  
  704.         multipartUploadLimitInKB - specifies the max size (in KiB) of
  705.         Multipart File Uploads that Solr will allow in a Request.
  706.        
  707.         formdataUploadLimitInKB - specifies the max size (in KiB) of
  708.         form data (application/x-www-form-urlencoded) sent via
  709.         POST. You can use POST to pass request parameters not
  710.         fitting into the URL.
  711.        
  712.         addHttpRequestToContext - if set to true, it will instruct
  713.         the requestParsers to include the original HttpServletRequest
  714.         object in the context map of the SolrQueryRequest under the
  715.         key "httpRequest". It will not be used by any of the existing
  716.         Solr components, but may be useful when developing custom
  717.         plugins.
  718.        
  719.         *** WARNING ***
  720.         The settings below authorize Solr to fetch remote files, You
  721.         should make sure your system has some authentication before
  722.         using enableRemoteStreaming="true"
  723.  
  724.      -->
  725.     <requestParsers enableRemoteStreaming="true"
  726.                    multipartUploadLimitInKB="2048000"
  727.                    formdataUploadLimitInKB="2048"
  728.                    addHttpRequestToContext="false"/>
  729.  
  730.     <!-- HTTP Caching
  731.  
  732.         Set HTTP caching related parameters (for proxy caches and clients).
  733.  
  734.         The options below instruct Solr not to output any HTTP Caching
  735.         related headers
  736.      -->
  737.     <httpCaching never304="true" />
  738.     <!-- If you include a <cacheControl> directive, it will be used to
  739.         generate a Cache-Control header (as well as an Expires header
  740.         if the value contains "max-age=")
  741.        
  742.         By default, no Cache-Control header is generated.
  743.        
  744.         You can use the <cacheControl> option even if you have set
  745.         never304="true"
  746.      -->
  747.     <!--
  748.       <httpCaching never304="true" >
  749.         <cacheControl>max-age=30, public</cacheControl>
  750.       </httpCaching>
  751.      -->
  752.     <!-- To enable Solr to respond with automatically generated HTTP
  753.         Caching headers, and to response to Cache Validation requests
  754.         correctly, set the value of never304="false"
  755.        
  756.         This will cause Solr to generate Last-Modified and ETag
  757.         headers based on the properties of the Index.
  758.  
  759.         The following options can also be specified to affect the
  760.         values of these headers...
  761.  
  762.         lastModFrom - the default value is "openTime" which means the
  763.         Last-Modified value (and validation against If-Modified-Since
  764.         requests) will all be relative to when the current Searcher
  765.         was opened.  You can change it to lastModFrom="dirLastMod" if
  766.         you want the value to exactly correspond to when the physical
  767.         index was last modified.
  768.  
  769.         etagSeed="..." is an option you can change to force the ETag
  770.         header (and validation against If-None-Match requests) to be
  771.         different even if the index has not changed (ie: when making
  772.         significant changes to your config file)
  773.  
  774.         (lastModifiedFrom and etagSeed are both ignored if you use
  775.         the never304="true" option)
  776.      -->
  777.     <!--
  778.       <httpCaching lastModifiedFrom="openTime"
  779.                    etagSeed="Solr">
  780.         <cacheControl>max-age=30, public</cacheControl>
  781.       </httpCaching>
  782.      -->
  783.   </requestDispatcher>
  784.  
  785.   <!-- Request Handlers
  786.  
  787.       http://wiki.apache.org/solr/SolrRequestHandler
  788.  
  789.       Incoming queries will be dispatched to a specific handler by name
  790.       based on the path specified in the request.
  791.  
  792.       Legacy behavior: If the request path uses "/select" but no Request
  793.       Handler has that name, and if handleSelect="true" has been specified in
  794.       the requestDispatcher, then the Request Handler is dispatched based on
  795.       the qt parameter.  Handlers without a leading '/' are accessed this way
  796.       like so: http://host/app/[core/]select?qt=name  If no qt is
  797.       given, then the requestHandler that declares default="true" will be
  798.       used or the one named "standard".
  799.  
  800.       If a Request Handler is declared with startup="lazy", then it will
  801.       not be initialized until the first request that uses it.
  802.  
  803.    -->
  804.   <!-- SearchHandler
  805.  
  806.       http://wiki.apache.org/solr/SearchHandler
  807.  
  808.       For processing Search Queries, the primary Request Handler
  809.       provided with Solr is "SearchHandler" It delegates to a sequent
  810.       of SearchComponents (see below) and supports distributed
  811.       queries across multiple shards
  812.    -->
  813.   <requestHandler name="/select" class="solr.SearchHandler">
  814.     <!-- default values for query parameters can be specified, these
  815.         will be overridden by parameters in the request
  816.      -->
  817.      <lst name="defaults">
  818.        <str name="echoParams">explicit</str>
  819.        <int name="rows">10</int>
  820.        <str name="df">text</str>
  821.        <str name="op">OR</str>
  822.      </lst>
  823.     <!-- In addition to defaults, "appends" params can be specified
  824.         to identify values which should be appended to the list of
  825.         multi-val params from the query (or the existing "defaults").
  826.      -->
  827.     <!-- In this example, the param "fq=instock:true" would be appended to
  828.         any query time fq params the user may specify, as a mechanism for
  829.         partitioning the index, independent of any user selected filtering
  830.         that may also be desired (perhaps as a result of faceted searching).
  831.  
  832.         NOTE: there is *absolutely* nothing a client can do to prevent these
  833.         "appends" values from being used, so don't use this mechanism
  834.         unless you are sure you always want it.
  835.      -->
  836.     <!--
  837.       <lst name="appends">
  838.         <str name="fq">inStock:true</str>
  839.       </lst>
  840.      -->
  841.     <!-- "invariants" are a way of letting the Solr maintainer lock down
  842.         the options available to Solr clients.  Any params values
  843.         specified here are used regardless of what values may be specified
  844.         in either the query, the "defaults", or the "appends" params.
  845.  
  846.         In this example, the facet.field and facet.query params would
  847.         be fixed, limiting the facets clients can use.  Faceting is
  848.         not turned on by default - but if the client does specify
  849.         facet=true in the request, these are the only facets they
  850.         will be able to see counts for; regardless of what other
  851.         facet.field or facet.query params they may specify.
  852.  
  853.         NOTE: there is *absolutely* nothing a client can do to prevent these
  854.         "invariants" values from being used, so don't use this mechanism
  855.         unless you are sure you always want it.
  856.      -->
  857.     <!--
  858.       <lst name="invariants">
  859.         <str name="facet.field">cat</str>
  860.         <str name="facet.field">manu_exact</str>
  861.         <str name="facet.query">price:[* TO 500]</str>
  862.         <str name="facet.query">price:[500 TO *]</str>
  863.       </lst>
  864.      -->
  865.     <!-- If the default list of SearchComponents is not desired, that
  866.         list can either be overridden completely, or components can be
  867.         prepended or appended to the default list.  (see below)
  868.      -->
  869.     <!--
  870.       <arr name="components">
  871.         <str>nameOfCustomComponent1</str>
  872.         <str>nameOfCustomComponent2</str>
  873.       </arr>
  874.      -->
  875.     </requestHandler>
  876.  
  877.   <!-- A request handler that returns indented JSON by default -->
  878.   <requestHandler name="/query" class="solr.SearchHandler">
  879.      <lst name="defaults">
  880.        <str name="echoParams">explicit</str>
  881.        <str name="wt">json</str>
  882.        <str name="indent">true</str>
  883.        <str name="df">text</str>
  884.      </lst>
  885.   </requestHandler>
  886.  
  887.  
  888.   <!-- realtime get handler, guaranteed to return the latest stored fields of
  889.       any document, without the need to commit or open a new searcher.  The
  890.       current implementation relies on the updateLog feature being enabled. -->
  891.   <requestHandler name="/get" class="solr.RealTimeGetHandler">
  892.      <lst name="defaults">
  893.        <str name="omitHeader">true</str>
  894.        <str name="wt">json</str>
  895.        <str name="indent">true</str>
  896.      </lst>
  897.   </requestHandler>
  898.  
  899.  
  900.   <!-- A Robust Example
  901.      
  902.       This example SearchHandler declaration shows off usage of the
  903.       SearchHandler with many defaults declared
  904.  
  905.       Note that multiple instances of the same Request Handler
  906.       (SearchHandler) can be registered multiple times with different
  907.       names (and different init parameters)
  908.    -->
  909.   <requestHandler name="/browse" class="solr.SearchHandler">
  910.      <lst name="defaults">
  911.        <str name="echoParams">explicit</str>
  912.  
  913.        <!-- VelocityResponseWriter settings -->
  914.        <str name="wt">velocity</str>
  915.        <str name="v.template">browse</str>
  916.        <str name="v.layout">layout</str>
  917.        <str name="title">Solritas</str>
  918.  
  919.        <!-- Query settings -->
  920.        <str name="defType">edismax</str>
  921.        <str name="qf">
  922.           text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
  923.           title^10.0 description^5.0 keywords^5.0 author^2.0 resourcename^1.0
  924.        </str>
  925.        <str name="df">text</str>
  926.        <str name="mm">100%</str>
  927.        <str name="q.alt">*:*</str>
  928.        <str name="rows">10</str>
  929.        <str name="fl">*,score</str>
  930.  
  931.        <str name="mlt.qf">
  932.          text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
  933.          title^10.0 description^5.0 keywords^5.0 author^2.0 resourcename^1.0
  934.        </str>
  935.        <str name="mlt.fl">text,features,name,sku,id,manu,cat,title,description,keywords,author,resourcename</str>
  936.        <int name="mlt.count">3</int>
  937.  
  938.        <!-- Faceting defaults -->
  939.        <str name="facet">on</str>
  940.        <str name="facet.field">cat</str>
  941.        <str name="facet.field">manu_exact</str>
  942.        <str name="facet.field">content_type</str>
  943.        <str name="facet.field">author_s</str>
  944.        <str name="facet.query">ipod</str>
  945.        <str name="facet.query">GB</str>
  946.        <str name="facet.mincount">1</str>
  947.        <str name="facet.pivot">cat,inStock</str>
  948.        <str name="facet.range.other">after</str>
  949.        <str name="facet.range">price</str>
  950.        <int name="f.price.facet.range.start">0</int>
  951.        <int name="f.price.facet.range.end">600</int>
  952.        <int name="f.price.facet.range.gap">50</int>
  953.        <str name="facet.range">popularity</str>
  954.        <int name="f.popularity.facet.range.start">0</int>
  955.        <int name="f.popularity.facet.range.end">10</int>
  956.        <int name="f.popularity.facet.range.gap">3</int>
  957.        <str name="facet.range">manufacturedate_dt</str>
  958.        <str name="f.manufacturedate_dt.facet.range.start">NOW/YEAR-10YEARS</str>
  959.        <str name="f.manufacturedate_dt.facet.range.end">NOW</str>
  960.        <str name="f.manufacturedate_dt.facet.range.gap">+1YEAR</str>
  961.        <str name="f.manufacturedate_dt.facet.range.other">before</str>
  962.        <str name="f.manufacturedate_dt.facet.range.other">after</str>
  963.  
  964.        <!-- Highlighting defaults -->
  965.        <str name="hl">on</str>
  966.        <str name="hl.fl">content features title name</str>
  967.        <str name="hl.encoder">html</str>
  968.        <str name="hl.simple.pre">&lt;b&gt;</str>
  969.        <str name="hl.simple.post">&lt;/b&gt;</str>
  970.        <str name="f.title.hl.fragsize">0</str>
  971.        <str name="f.title.hl.alternateField">title</str>
  972.        <str name="f.name.hl.fragsize">0</str>
  973.        <str name="f.name.hl.alternateField">name</str>
  974.        <str name="f.content.hl.snippets">3</str>
  975.        <str name="f.content.hl.fragsize">200</str>
  976.        <str name="f.content.hl.alternateField">content</str>
  977.        <str name="f.content.hl.maxAlternateFieldLength">750</str>
  978.  
  979.        <!-- Spell checking defaults -->
  980.        <str name="spellcheck">on</str>
  981.        <str name="spellcheck.extendedResults">false</str>      
  982.        <str name="spellcheck.count">5</str>
  983.        <str name="spellcheck.alternativeTermCount">2</str>
  984.        <str name="spellcheck.maxResultsForSuggest">5</str>      
  985.        <str name="spellcheck.collate">true</str>
  986.        <str name="spellcheck.collateExtendedResults">true</str>  
  987.        <str name="spellcheck.maxCollationTries">5</str>
  988.        <str name="spellcheck.maxCollations">3</str>          
  989.      </lst>
  990.  
  991.      <!-- append spellchecking to our list of components -->
  992.      <arr name="last-components">
  993.        <str>spellcheck</str>
  994.      </arr>
  995.   </requestHandler>
  996.  
  997.  
  998.   <!-- Update Request Handler.  
  999.      
  1000.       http://wiki.apache.org/solr/UpdateXmlMessages
  1001.  
  1002.       The canonical Request Handler for Modifying the Index through
  1003.       commands specified using XML, JSON, CSV, or JAVABIN
  1004.  
  1005.       Note: Since solr1.1 requestHandlers requires a valid content
  1006.       type header if posted in the body. For example, curl now
  1007.       requires: -H 'Content-type:text/xml; charset=utf-8'
  1008.      
  1009.       To override the request content type and force a specific
  1010.       Content-type, use the request parameter:
  1011.         ?update.contentType=text/csv
  1012.      
  1013.       This handler will pick a response format to match the input
  1014.       if the 'wt' parameter is not explicit
  1015.    -->
  1016.   <requestHandler name="/update" class="solr.UpdateRequestHandler">
  1017.     <!-- See below for information on defining
  1018.         updateRequestProcessorChains that can be used by name
  1019.         on each Update Request
  1020.      -->
  1021.     <!--
  1022.       <lst name="defaults">
  1023.         <str name="update.chain">dedupe</str>
  1024.       </lst>
  1025.       -->
  1026.   </requestHandler>
  1027.  
  1028.   <!-- for back compat with clients using /update/json and /update/csv -->  
  1029.   <requestHandler name="/update/json" class="solr.JsonUpdateRequestHandler">
  1030.         <lst name="defaults">
  1031.          <str name="stream.contentType">application/json</str>
  1032.        </lst>
  1033.   </requestHandler>
  1034.   <requestHandler name="/update/csv" class="solr.CSVRequestHandler">
  1035.         <lst name="defaults">
  1036.          <str name="stream.contentType">application/csv</str>
  1037.        </lst>
  1038.   </requestHandler>
  1039.  
  1040.   <!-- Solr Cell Update Request Handler
  1041.  
  1042.       http://wiki.apache.org/solr/ExtractingRequestHandler
  1043.  
  1044.    -->
  1045.   <requestHandler name="/update/extract"
  1046.                  startup="lazy"
  1047.                  class="solr.extraction.ExtractingRequestHandler" >
  1048.     <lst name="defaults">
  1049.       <str name="lowernames">true</str>
  1050.       <str name="uprefix">ignored_</str>
  1051.  
  1052.       <!-- capture link hrefs but ignore div attributes -->
  1053.       <str name="captureAttr">true</str>
  1054.       <str name="fmap.a">links</str>
  1055.       <str name="fmap.div">ignored_</str>
  1056.     </lst>
  1057.   </requestHandler>
  1058.  
  1059.  
  1060.   <!-- Field Analysis Request Handler
  1061.  
  1062.       RequestHandler that provides much the same functionality as
  1063.       analysis.jsp. Provides the ability to specify multiple field
  1064.       types and field names in the same request and outputs
  1065.       index-time and query-time analysis for each of them.
  1066.  
  1067.       Request parameters are:
  1068.       analysis.fieldname - field name whose analyzers are to be used
  1069.  
  1070.       analysis.fieldtype - field type whose analyzers are to be used
  1071.       analysis.fieldvalue - text for index-time analysis
  1072.       q (or analysis.q) - text for query time analysis
  1073.       analysis.showmatch (true|false) - When set to true and when
  1074.           query analysis is performed, the produced tokens of the
  1075.           field value analysis will be marked as "matched" for every
  1076.           token that is produces by the query analysis
  1077.   -->
  1078.   <requestHandler name="/analysis/field"
  1079.                  startup="lazy"
  1080.                  class="solr.FieldAnalysisRequestHandler" />
  1081.  
  1082.  
  1083.   <!-- Document Analysis Handler
  1084.  
  1085.       http://wiki.apache.org/solr/AnalysisRequestHandler
  1086.  
  1087.       An analysis handler that provides a breakdown of the analysis
  1088.       process of provided documents. This handler expects a (single)
  1089.       content stream with the following format:
  1090.  
  1091.       <docs>
  1092.         <doc>
  1093.           <field name="id">1</field>
  1094.           <field name="name">The Name</field>
  1095.           <field name="text">The Text Value</field>
  1096.         </doc>
  1097.         <doc>...</doc>
  1098.         <doc>...</doc>
  1099.         ...
  1100.       </docs>
  1101.  
  1102.    Note: Each document must contain a field which serves as the
  1103.    unique key. This key is used in the returned response to associate
  1104.    an analysis breakdown to the analyzed document.
  1105.  
  1106.    Like the FieldAnalysisRequestHandler, this handler also supports
  1107.    query analysis by sending either an "analysis.query" or "q"
  1108.    request parameter that holds the query text to be analyzed. It
  1109.    also supports the "analysis.showmatch" parameter which when set to
  1110.    true, all field tokens that match the query tokens will be marked
  1111.    as a "match".
  1112.  -->
  1113.   <requestHandler name="/analysis/document"
  1114.                  class="solr.DocumentAnalysisRequestHandler"
  1115.                  startup="lazy" />
  1116.  
  1117.   <!-- Admin Handlers
  1118.  
  1119.       Admin Handlers - This will register all the standard admin
  1120.       RequestHandlers.  
  1121.    -->
  1122.   <requestHandler name="/admin/"
  1123.                  class="solr.admin.AdminHandlers" />
  1124.   <!-- This single handler is equivalent to the following... -->
  1125.   <!--
  1126.     <requestHandler name="/admin/luke"       class="solr.admin.LukeRequestHandler" />
  1127.     <requestHandler name="/admin/system"     class="solr.admin.SystemInfoHandler" />
  1128.     <requestHandler name="/admin/plugins"    class="solr.admin.PluginInfoHandler" />
  1129.     <requestHandler name="/admin/threads"    class="solr.admin.ThreadDumpHandler" />
  1130.     <requestHandler name="/admin/properties" class="solr.admin.PropertiesRequestHandler" />
  1131.     <requestHandler name="/admin/file"       class="solr.admin.ShowFileRequestHandler" >
  1132.    -->
  1133.   <!-- If you wish to hide files under ${solr.home}/conf, explicitly
  1134.       register the ShowFileRequestHandler using:
  1135.    -->
  1136.   <!--
  1137.     <requestHandler name="/admin/file"
  1138.                     class="solr.admin.ShowFileRequestHandler" >
  1139.       <lst name="invariants">
  1140.         <str name="hidden">synonyms.txt</str>
  1141.         <str name="hidden">anotherfile.txt</str>
  1142.       </lst>
  1143.     </requestHandler>
  1144.    -->
  1145.  
  1146.   <!-- ping/healthcheck -->
  1147.   <requestHandler name="/admin/ping" class="solr.PingRequestHandler">
  1148.     <lst name="invariants">
  1149.       <str name="q">solrpingquery</str>
  1150.     </lst>
  1151.     <lst name="defaults">
  1152.       <str name="echoParams">all</str>
  1153.     </lst>
  1154.     <!-- An optional feature of the PingRequestHandler is to configure the
  1155.         handler with a "healthcheckFile" which can be used to enable/disable
  1156.         the PingRequestHandler.
  1157.         relative paths are resolved against the data dir
  1158.      -->
  1159.     <!-- <str name="healthcheckFile">server-enabled.txt</str> -->
  1160.   </requestHandler>
  1161.  
  1162.   <!-- Echo the request contents back to the client -->
  1163.   <requestHandler name="/debug/dump" class="solr.DumpRequestHandler" >
  1164.     <lst name="defaults">
  1165.      <str name="echoParams">explicit</str>
  1166.      <str name="echoHandler">true</str>
  1167.     </lst>
  1168.   </requestHandler>
  1169.  
  1170.   <!-- Solr Replication
  1171.  
  1172.       The SolrReplicationHandler supports replicating indexes from a
  1173.       "master" used for indexing and "slaves" used for queries.
  1174.  
  1175.       http://wiki.apache.org/solr/SolrReplication
  1176.  
  1177.       It is also necessary for SolrCloud to function (in Cloud mode, the
  1178.       replication handler is used to bulk transfer segments when nodes
  1179.       are added or need to recover).
  1180.  
  1181.       https://wiki.apache.org/solr/SolrCloud/
  1182.    -->
  1183.   <requestHandler name="/replication" class="solr.ReplicationHandler" >
  1184.     <!--
  1185.       To enable simple master/slave replication, uncomment one of the
  1186.       sections below, depending on whether this solr instance should be
  1187.       the "master" or a "slave".  If this instance is a "slave" you will
  1188.       also need to fill in the masterUrl to point to a real machine.
  1189.    -->
  1190.     <!--
  1191.       <lst name="master">
  1192.         <str name="replicateAfter">commit</str>
  1193.         <str name="replicateAfter">startup</str>
  1194.         <str name="confFiles">schema.xml,stopwords.txt</str>
  1195.       </lst>
  1196.    -->
  1197.     <!--
  1198.       <lst name="slave">
  1199.         <str name="masterUrl">http://your-master-hostname:8983/solr</str>
  1200.         <str name="pollInterval">00:00:60</str>
  1201.       </lst>
  1202.    -->
  1203.   </requestHandler>
  1204.  
  1205.   <!-- Search Components
  1206.  
  1207.       Search components are registered to SolrCore and used by
  1208.       instances of SearchHandler (which can access them by name)
  1209.      
  1210.       By default, the following components are available:
  1211.      
  1212.       <searchComponent name="query"     class="solr.QueryComponent" />
  1213.       <searchComponent name="facet"     class="solr.FacetComponent" />
  1214.       <searchComponent name="mlt"       class="solr.MoreLikeThisComponent" />
  1215.       <searchComponent name="highlight" class="solr.HighlightComponent" />
  1216.       <searchComponent name="stats"     class="solr.StatsComponent" />
  1217.       <searchComponent name="debug"     class="solr.DebugComponent" />
  1218.  
  1219.       Default configuration in a requestHandler would look like:
  1220.  
  1221.       <arr name="components">
  1222.         <str>query</str>
  1223.         <str>facet</str>
  1224.         <str>mlt</str>
  1225.         <str>highlight</str>
  1226.         <str>stats</str>
  1227.         <str>debug</str>
  1228.       </arr>
  1229.  
  1230.       If you register a searchComponent to one of the standard names,
  1231.       that will be used instead of the default.
  1232.  
  1233.       To insert components before or after the 'standard' components, use:
  1234.    
  1235.       <arr name="first-components">
  1236.         <str>myFirstComponentName</str>
  1237.       </arr>
  1238.    
  1239.       <arr name="last-components">
  1240.         <str>myLastComponentName</str>
  1241.       </arr>
  1242.  
  1243.       NOTE: The component registered with the name "debug" will
  1244.       always be executed after the "last-components"
  1245.      
  1246.     -->
  1247.  
  1248.    <!-- Spell Check
  1249.  
  1250.        The spell check component can return a list of alternative spelling
  1251.        suggestions.  
  1252.  
  1253.        http://wiki.apache.org/solr/SpellCheckComponent
  1254.     -->
  1255.   <searchComponent name="spellcheck" class="solr.SpellCheckComponent">
  1256.  
  1257.     <str name="queryAnalyzerFieldType">textSpell</str>
  1258.  
  1259.     <!-- Multiple "Spell Checkers" can be declared and used by this
  1260.         component
  1261.      -->
  1262.  
  1263.     <!-- a spellchecker built from a field of the main index -->
  1264.     <lst name="spellchecker">
  1265.       <str name="name">default</str>
  1266.       <str name="field">name</str>
  1267.       <str name="classname">solr.DirectSolrSpellChecker</str>
  1268.       <!-- the spellcheck distance measure used, the default is the internal levenshtein -->
  1269.       <str name="distanceMeasure">internal</str>
  1270.       <!-- minimum accuracy needed to be considered a valid spellcheck suggestion -->
  1271.       <float name="accuracy">0.5</float>
  1272.       <!-- the maximum #edits we consider when enumerating terms: can be 1 or 2 -->
  1273.       <int name="maxEdits">2</int>
  1274.       <!-- the minimum shared prefix when enumerating terms -->
  1275.       <int name="minPrefix">1</int>
  1276.       <!-- maximum number of inspections per result. -->
  1277.       <int name="maxInspections">5</int>
  1278.       <!-- minimum length of a query term to be considered for correction -->
  1279.       <int name="minQueryLength">4</int>
  1280.       <!-- maximum threshold of documents a query term can appear to be considered for correction -->
  1281.       <float name="maxQueryFrequency">0.01</float>
  1282.       <!-- uncomment this to require suggestions to occur in 1% of the documents
  1283.         <float name="thresholdTokenFrequency">.01</float>
  1284.      -->
  1285.     </lst>
  1286.    
  1287.     <!-- a spellchecker that can break or combine words.  See "/spell" handler below for usage -->
  1288.     <lst name="spellchecker">
  1289.       <str name="name">wordbreak</str>
  1290.       <str name="classname">solr.WordBreakSolrSpellChecker</str>      
  1291.       <str name="field">name</str>
  1292.       <str name="combineWords">true</str>
  1293.       <str name="breakWords">true</str>
  1294.       <int name="maxChanges">10</int>
  1295.     </lst>
  1296.  
  1297.     <!-- a spellchecker that uses a different distance measure -->
  1298.     <!--
  1299.       <lst name="spellchecker">
  1300.         <str name="name">jarowinkler</str>
  1301.         <str name="field">spell</str>
  1302.         <str name="classname">solr.DirectSolrSpellChecker</str>
  1303.         <str name="distanceMeasure">
  1304.           org.apache.lucene.search.spell.JaroWinklerDistance
  1305.         </str>
  1306.       </lst>
  1307.     -->
  1308.  
  1309.     <!-- a spellchecker that use an alternate comparator
  1310.  
  1311.         comparatorClass be one of:
  1312.          1. score (default)
  1313.          2. freq (Frequency first, then score)
  1314.          3. A fully qualified class name
  1315.      -->
  1316.     <!--
  1317.       <lst name="spellchecker">
  1318.         <str name="name">freq</str>
  1319.         <str name="field">lowerfilt</str>
  1320.         <str name="classname">solr.DirectSolrSpellChecker</str>
  1321.         <str name="comparatorClass">freq</str>
  1322.      -->
  1323.  
  1324.     <!-- A spellchecker that reads the list of words from a file -->
  1325.     <!--
  1326.       <lst name="spellchecker">
  1327.         <str name="classname">solr.FileBasedSpellChecker</str>
  1328.         <str name="name">file</str>
  1329.         <str name="sourceLocation">spellings.txt</str>
  1330.         <str name="characterEncoding">UTF-8</str>
  1331.         <str name="spellcheckIndexDir">spellcheckerFile</str>
  1332.       </lst>
  1333.      -->
  1334.   </searchComponent>
  1335.  
  1336.   <!-- A request handler for demonstrating the spellcheck component.  
  1337.  
  1338.       NOTE: This is purely as an example.  The whole purpose of the
  1339.       SpellCheckComponent is to hook it into the request handler that
  1340.       handles your normal user queries so that a separate request is
  1341.       not needed to get suggestions.
  1342.  
  1343.       IN OTHER WORDS, THERE IS REALLY GOOD CHANCE THE SETUP BELOW IS
  1344.       NOT WHAT YOU WANT FOR YOUR PRODUCTION SYSTEM!
  1345.      
  1346.       See http://wiki.apache.org/solr/SpellCheckComponent for details
  1347.       on the request parameters.
  1348.    -->
  1349.   <requestHandler name="/spell" class="solr.SearchHandler" startup="lazy">
  1350.     <lst name="defaults">
  1351.       <str name="df">text</str>
  1352.       <!-- Solr will use suggestions from both the 'default' spellchecker
  1353.           and from the 'wordbreak' spellchecker and combine them.
  1354.           collations (re-written queries) can include a combination of
  1355.           corrections from both spellcheckers -->
  1356.       <str name="spellcheck.dictionary">default</str>
  1357.       <str name="spellcheck.dictionary">wordbreak</str>
  1358.       <str name="spellcheck">on</str>
  1359.       <str name="spellcheck.extendedResults">true</str>      
  1360.       <str name="spellcheck.count">1</str>
  1361.       <str name="spellcheck.alternativeTermCount">5</str>
  1362.       <str name="spellcheck.maxResultsForSuggest">5</str>      
  1363.       <str name="spellcheck.collate">true</str>
  1364.       <str name="spellcheck.collateExtendedResults">true</str>  
  1365.       <str name="spellcheck.maxCollationTries">10</str>
  1366.       <str name="spellcheck.maxCollations">5</str>        
  1367.     </lst>
  1368.     <arr name="last-components">
  1369.       <str>spellcheck</str>
  1370.     </arr>
  1371.   </requestHandler>
  1372.  
  1373.   <!-- Term Vector Component
  1374.  
  1375.       http://wiki.apache.org/solr/TermVectorComponent
  1376.    -->
  1377.   <searchComponent name="tvComponent" class="solr.TermVectorComponent"/>
  1378.  
  1379.   <!-- A request handler for demonstrating the term vector component
  1380.  
  1381.       This is purely as an example.
  1382.  
  1383.       In reality you will likely want to add the component to your
  1384.       already specified request handlers.
  1385.    -->
  1386.   <requestHandler name="/tvrh" class="solr.SearchHandler" startup="lazy">
  1387.     <lst name="defaults">
  1388.       <str name="df">text</str>
  1389.       <bool name="tv">true</bool>
  1390.     </lst>
  1391.     <arr name="last-components">
  1392.       <str>tvComponent</str>
  1393.     </arr>
  1394.   </requestHandler>
  1395.  
  1396.   <!-- Clustering Component
  1397.  
  1398.       You'll need to set the solr.clustering.enabled system property
  1399.       when running solr to run with clustering enabled:
  1400.  
  1401.            java -Dsolr.clustering.enabled=true -jar start.jar
  1402.  
  1403.       http://wiki.apache.org/solr/ClusteringComponent
  1404.       http://carrot2.github.io/solr-integration-strategies/
  1405.    -->
  1406.   <searchComponent name="clustering"
  1407.                   enable="${solr.clustering.enabled:false}"
  1408.                   class="solr.clustering.ClusteringComponent" >
  1409.     <lst name="engine">
  1410.       <str name="name">lingo</str>
  1411.  
  1412.       <!-- Class name of a clustering algorithm compatible with the Carrot2 framework.
  1413.  
  1414.           Currently available open source algorithms are:
  1415.           * org.carrot2.clustering.lingo.LingoClusteringAlgorithm
  1416.           * org.carrot2.clustering.stc.STCClusteringAlgorithm
  1417.           * org.carrot2.clustering.kmeans.BisectingKMeansClusteringAlgorithm
  1418.  
  1419.           See http://project.carrot2.org/algorithms.html for more information.
  1420.  
  1421.           A commercial algorithm Lingo3G (needs to be installed separately) is defined as:
  1422.           * com.carrotsearch.lingo3g.Lingo3GClusteringAlgorithm
  1423.        -->
  1424.       <str name="carrot.algorithm">org.carrot2.clustering.lingo.LingoClusteringAlgorithm</str>
  1425.  
  1426.       <!-- Override location of the clustering algorithm's resources
  1427.           (attribute definitions and lexical resources).
  1428.  
  1429.           A directory from which to load algorithm-specific stop words,
  1430.           stop labels and attribute definition XMLs.
  1431.  
  1432.           For an overview of Carrot2 lexical resources, see:
  1433.           http://download.carrot2.org/head/manual/#chapter.lexical-resources
  1434.  
  1435.           For an overview of Lingo3G lexical resources, see:
  1436.           http://download.carrotsearch.com/lingo3g/manual/#chapter.lexical-resources
  1437.       -->
  1438.       <str name="carrot.resourcesDir">clustering/carrot2</str>
  1439.     </lst>
  1440.  
  1441.     <!-- An example definition for the STC clustering algorithm. -->
  1442.     <lst name="engine">
  1443.       <str name="name">stc</str>
  1444.       <str name="carrot.algorithm">org.carrot2.clustering.stc.STCClusteringAlgorithm</str>
  1445.     </lst>
  1446.  
  1447.     <!-- An example definition for the bisecting kmeans clustering algorithm. -->
  1448.     <lst name="engine">
  1449.       <str name="name">kmeans</str>
  1450.       <str name="carrot.algorithm">org.carrot2.clustering.kmeans.BisectingKMeansClusteringAlgorithm</str>
  1451.     </lst>
  1452.   </searchComponent>
  1453.  
  1454.   <!-- A request handler for demonstrating the clustering component
  1455.  
  1456.       This is purely as an example.
  1457.  
  1458.       In reality you will likely want to add the component to your
  1459.       already specified request handlers.
  1460.    -->
  1461.   <requestHandler name="/clustering"
  1462.                  startup="lazy"
  1463.                  enable="${solr.clustering.enabled:false}"
  1464.                  class="solr.SearchHandler">
  1465.     <lst name="defaults">
  1466.       <bool name="clustering">true</bool>
  1467.       <bool name="clustering.results">true</bool>
  1468.       <!-- Field name with the logical "title" of a each document (optional) -->
  1469.       <str name="carrot.title">name</str>
  1470.       <!-- Field name with the logical "URL" of a each document (optional) -->
  1471.       <str name="carrot.url">id</str>
  1472.       <!-- Field name with the logical "content" of a each document (optional) -->
  1473.       <str name="carrot.snippet">features</str>
  1474.       <!-- Apply highlighter to the title/ content and use this for clustering. -->
  1475.       <bool name="carrot.produceSummary">true</bool>
  1476.       <!-- the maximum number of labels per cluster -->
  1477.       <!--<int name="carrot.numDescriptions">5</int>-->
  1478.       <!-- produce sub clusters -->
  1479.       <bool name="carrot.outputSubClusters">false</bool>
  1480.  
  1481.       <!-- Configure the remaining request handler parameters. -->
  1482.       <str name="defType">edismax</str>
  1483.       <str name="qf">
  1484.         text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
  1485.       </str>
  1486.       <str name="q.alt">*:*</str>
  1487.       <str name="rows">10</str>
  1488.       <str name="fl">*,score</str>
  1489.     </lst>
  1490.     <arr name="last-components">
  1491.       <str>clustering</str>
  1492.     </arr>
  1493.   </requestHandler>
  1494.  
  1495.   <!-- Terms Component
  1496.  
  1497.       http://wiki.apache.org/solr/TermsComponent
  1498.  
  1499.       A component to return terms and document frequency of those
  1500.       terms
  1501.    -->
  1502.   <searchComponent name="terms" class="solr.TermsComponent"/>
  1503.  
  1504.   <!-- A request handler for demonstrating the terms component -->
  1505.   <requestHandler name="/js" class="org.apache.solr.handler.js.JavaScriptRequestHandler" startup="lazy"/>
  1506.   <requestHandler name="/terms" class="solr.SearchHandler" startup="lazy">
  1507.      <lst name="defaults">
  1508.       <bool name="terms">true</bool>
  1509.       <bool name="distrib">false</bool>
  1510.     </lst>    
  1511.     <arr name="components">
  1512.       <str>terms</str>
  1513.     </arr>
  1514.   </requestHandler>
  1515.  
  1516.  
  1517.   <!-- Query Elevation Component
  1518.  
  1519.       http://wiki.apache.org/solr/QueryElevationComponent
  1520.  
  1521.       a search component that enables you to configure the top
  1522.       results for a given query regardless of the normal lucene
  1523.       scoring.
  1524.    -->
  1525.   <!-- <searchComponent name="elevator" class="solr.QueryElevationComponent" >
  1526.    <str name="queryFieldType">string</str>
  1527.    <str name="config-file">elevate.xml</str>
  1528.  </searchComponent> -->
  1529.  
  1530.   <!-- A request handler for demonstrating the elevator component -->
  1531.   <!-- <requestHandler name="/elevate" class="solr.SearchHandler" startup="lazy">
  1532.    <lst name="defaults">
  1533.      <str name="echoParams">explicit</str>
  1534.      <str name="df">text</str>
  1535.    </lst>
  1536.    <arr name="last-components">
  1537.      <str>elevator</str>
  1538.    </arr>
  1539.  </requestHandler> -->
  1540.  
  1541.   <!-- Highlighting Component
  1542.  
  1543.       http://wiki.apache.org/solr/HighlightingParameters
  1544.    -->
  1545.   <searchComponent class="solr.HighlightComponent" name="highlight">
  1546.     <highlighting>
  1547.       <!-- Configure the standard fragmenter -->
  1548.       <!-- This could most likely be commented out in the "default" case -->
  1549.       <fragmenter name="gap"
  1550.                  default="true"
  1551.                  class="solr.highlight.GapFragmenter">
  1552.         <lst name="defaults">
  1553.           <int name="hl.fragsize">100</int>
  1554.         </lst>
  1555.       </fragmenter>
  1556.  
  1557.       <!-- A regular-expression-based fragmenter
  1558.           (for sentence extraction)
  1559.        -->
  1560.       <fragmenter name="regex"
  1561.                  class="solr.highlight.RegexFragmenter">
  1562.         <lst name="defaults">
  1563.           <!-- slightly smaller fragsizes work better because of slop -->
  1564.           <int name="hl.fragsize">70</int>
  1565.           <!-- allow 50% slop on fragment sizes -->
  1566.           <float name="hl.regex.slop">0.5</float>
  1567.           <!-- a basic sentence pattern -->
  1568.           <str name="hl.regex.pattern">[-\w ,/\n\&quot;&apos;]{20,200}</str>
  1569.         </lst>
  1570.       </fragmenter>
  1571.  
  1572.       <!-- Configure the standard formatter -->
  1573.       <formatter name="html"
  1574.                 default="true"
  1575.                 class="solr.highlight.HtmlFormatter">
  1576.         <lst name="defaults">
  1577.           <str name="hl.simple.pre"><![CDATA[<em>]]></str>
  1578.           <str name="hl.simple.post"><![CDATA[</em>]]></str>
  1579.         </lst>
  1580.       </formatter>
  1581.  
  1582.       <!-- Configure the standard encoder -->
  1583.       <encoder name="html"
  1584.               class="solr.highlight.HtmlEncoder" />
  1585.  
  1586.       <!-- Configure the standard fragListBuilder -->
  1587.       <fragListBuilder name="simple"
  1588.                       class="solr.highlight.SimpleFragListBuilder"/>
  1589.      
  1590.       <!-- Configure the single fragListBuilder -->
  1591.       <fragListBuilder name="single"
  1592.                       class="solr.highlight.SingleFragListBuilder"/>
  1593.      
  1594.       <!-- Configure the weighted fragListBuilder -->
  1595.       <fragListBuilder name="weighted"
  1596.                       default="true"
  1597.                       class="solr.highlight.WeightedFragListBuilder"/>
  1598.      
  1599.       <!-- default tag FragmentsBuilder -->
  1600.       <fragmentsBuilder name="default"
  1601.                        default="true"
  1602.                        class="solr.highlight.ScoreOrderFragmentsBuilder">
  1603.         <!--
  1604.        <lst name="defaults">
  1605.          <str name="hl.multiValuedSeparatorChar">/</str>
  1606.        </lst>
  1607.        -->
  1608.       </fragmentsBuilder>
  1609.  
  1610.       <!-- multi-colored tag FragmentsBuilder -->
  1611.       <fragmentsBuilder name="colored"
  1612.                        class="solr.highlight.ScoreOrderFragmentsBuilder">
  1613.         <lst name="defaults">
  1614.           <str name="hl.tag.pre"><![CDATA[
  1615.               <b style="background:yellow">,<b style="background:lawgreen">,
  1616.               <b style="background:aquamarine">,<b style="background:magenta">,
  1617.               <b style="background:palegreen">,<b style="background:coral">,
  1618.               <b style="background:wheat">,<b style="background:khaki">,
  1619.               <b style="background:lime">,<b style="background:deepskyblue">]]></str>
  1620.           <str name="hl.tag.post"><![CDATA[</b>]]></str>
  1621.         </lst>
  1622.       </fragmentsBuilder>
  1623.      
  1624.       <boundaryScanner name="default"
  1625.                       default="true"
  1626.                       class="solr.highlight.SimpleBoundaryScanner">
  1627.         <lst name="defaults">
  1628.           <str name="hl.bs.maxScan">10</str>
  1629.           <str name="hl.bs.chars">.,!? &#9;&#10;&#13;</str>
  1630.         </lst>
  1631.       </boundaryScanner>
  1632.      
  1633.       <boundaryScanner name="breakIterator"
  1634.                       class="solr.highlight.BreakIteratorBoundaryScanner">
  1635.         <lst name="defaults">
  1636.           <!-- type should be one of CHARACTER, WORD(default), LINE and SENTENCE -->
  1637.           <str name="hl.bs.type">WORD</str>
  1638.           <!-- language and country are used when constructing Locale object.  -->
  1639.           <!-- And the Locale object will be used when getting instance of BreakIterator -->
  1640.           <str name="hl.bs.language">en</str>
  1641.           <str name="hl.bs.country">US</str>
  1642.         </lst>
  1643.       </boundaryScanner>
  1644.     </highlighting>
  1645.   </searchComponent>
  1646.  
  1647.   <!-- Update Processors
  1648.  
  1649.       Chains of Update Processor Factories for dealing with Update
  1650.       Requests can be declared, and then used by name in Update
  1651.       Request Processors
  1652.  
  1653.       http://wiki.apache.org/solr/UpdateRequestProcessor
  1654.  
  1655.    -->
  1656.   <!-- Deduplication
  1657.  
  1658.       An example dedup update processor that creates the "id" field
  1659.       on the fly based on the hash code of some other fields.  This
  1660.       example has overwriteDupes set to false since we are using the
  1661.       id field as the signatureField and Solr will maintain
  1662.       uniqueness based on that anyway.  
  1663.      
  1664.    -->
  1665.   <!--
  1666.     <updateRequestProcessorChain name="dedupe">
  1667.       <processor class="solr.processor.SignatureUpdateProcessorFactory">
  1668.         <bool name="enabled">true</bool>
  1669.         <str name="signatureField">id</str>
  1670.         <bool name="overwriteDupes">false</bool>
  1671.         <str name="fields">name,features,cat</str>
  1672.         <str name="signatureClass">solr.processor.Lookup3Signature</str>
  1673.       </processor>
  1674.       <processor class="solr.LogUpdateProcessorFactory" />
  1675.       <processor class="solr.RunUpdateProcessorFactory" />
  1676.     </updateRequestProcessorChain>
  1677.    -->
  1678.  
  1679.   <!-- Language identification
  1680.  
  1681.       This example update chain identifies the language of the incoming
  1682.       documents using the langid contrib. The detected language is
  1683.       written to field language_s. No field name mapping is done.
  1684.       The fields used for detection are text, title, subject and description,
  1685.       making this example suitable for detecting languages form full-text
  1686.       rich documents injected via ExtractingRequestHandler.
  1687.       See more about langId at http://wiki.apache.org/solr/LanguageDetection
  1688.    -->
  1689.     <!--
  1690.     <updateRequestProcessorChain name="langid">
  1691.       <processor class="org.apache.solr.update.processor.TikaLanguageIdentifierUpdateProcessorFactory">
  1692.         <str name="langid.fl">text,title,subject,description</str>
  1693.         <str name="langid.langField">language_s</str>
  1694.         <str name="langid.fallback">en</str>
  1695.       </processor>
  1696.       <processor class="solr.LogUpdateProcessorFactory" />
  1697.       <processor class="solr.RunUpdateProcessorFactory" />
  1698.     </updateRequestProcessorChain>
  1699.    -->
  1700.  
  1701.   <!-- Script update processor
  1702.  
  1703.    This example hooks in an update processor implemented using JavaScript.
  1704.  
  1705.    See more about the script update processor at http://wiki.apache.org/solr/ScriptUpdateProcessor
  1706.  -->
  1707.   <!--
  1708.    <updateRequestProcessorChain name="script">
  1709.      <processor class="solr.StatelessScriptUpdateProcessorFactory">
  1710.        <str name="script">update-script.js</str>
  1711.        <lst name="params">
  1712.          <str name="config_param">example config parameter</str>
  1713.        </lst>
  1714.      </processor>
  1715.      <processor class="solr.RunUpdateProcessorFactory" />
  1716.    </updateRequestProcessorChain>
  1717.  -->
  1718.  
  1719.   <!-- Response Writers
  1720.  
  1721.       http://wiki.apache.org/solr/QueryResponseWriter
  1722.  
  1723.       Request responses will be written using the writer specified by
  1724.       the 'wt' request parameter matching the name of a registered
  1725.       writer.
  1726.  
  1727.       The "default" writer is the default and will be used if 'wt' is
  1728.       not specified in the request.
  1729.    -->
  1730.   <!-- The following response writers are implicitly configured unless
  1731.       overridden...
  1732.    -->
  1733.   <!--
  1734.     <queryResponseWriter name="xml"
  1735.                          default="true"
  1736.                          class="solr.XMLResponseWriter" />
  1737.     <queryResponseWriter name="json" class="solr.JSONResponseWriter"/>
  1738.     <queryResponseWriter name="python" class="solr.PythonResponseWriter"/>
  1739.     <queryResponseWriter name="ruby" class="solr.RubyResponseWriter"/>
  1740.     <queryResponseWriter name="php" class="solr.PHPResponseWriter"/>
  1741.     <queryResponseWriter name="phps" class="solr.PHPSerializedResponseWriter"/>
  1742.     <queryResponseWriter name="csv" class="solr.CSVResponseWriter"/>
  1743.     <queryResponseWriter name="schema.xml" class="solr.SchemaXmlResponseWriter"/>
  1744.    -->
  1745.  
  1746.   <queryResponseWriter name="json" class="solr.JSONResponseWriter">
  1747.      <!-- For the purposes of the tutorial, JSON responses are written as
  1748.      plain text so that they are easy to read in *any* browser.
  1749.      If you expect a MIME type of "application/json" just remove this override.
  1750.     -->
  1751.     <str name="content-type">text/plain; charset=UTF-8</str>
  1752.   </queryResponseWriter>
  1753.  
  1754.   <!--
  1755.     Custom response writers can be declared as needed...
  1756.    -->
  1757.     <queryResponseWriter name="velocity" class="solr.VelocityResponseWriter" startup="lazy"/>
  1758.  
  1759.  
  1760.   <!-- XSLT response writer transforms the XML output by any xslt file found
  1761.       in Solr's conf/xslt directory.  Changes to xslt files are checked for
  1762.       every xsltCacheLifetimeSeconds.  
  1763.    -->
  1764.   <queryResponseWriter name="xslt" class="solr.XSLTResponseWriter">
  1765.     <int name="xsltCacheLifetimeSeconds">5</int>
  1766.   </queryResponseWriter>
  1767.  
  1768.   <!-- Query Parsers
  1769.  
  1770.       http://wiki.apache.org/solr/SolrQuerySyntax
  1771.  
  1772.       Multiple QParserPlugins can be registered by name, and then
  1773.       used in either the "defType" param for the QueryComponent (used
  1774.       by SearchHandler) or in LocalParams
  1775.    -->
  1776.   <!-- example of registering a query parser -->
  1777.   <!--
  1778.     <queryParser name="myparser" class="com.mycompany.MyQParserPlugin"/>
  1779.    -->
  1780.  
  1781.   <!-- Function Parsers
  1782.  
  1783.       http://wiki.apache.org/solr/FunctionQuery
  1784.  
  1785.       Multiple ValueSourceParsers can be registered by name, and then
  1786.       used as function names when using the "func" QParser.
  1787.    -->
  1788.   <!-- example of registering a custom function parser  -->
  1789.   <!--
  1790.     <valueSourceParser name="myfunc"
  1791.                        class="com.mycompany.MyValueSourceParser" />
  1792.    -->
  1793.    
  1794.  
  1795.   <!-- Document Transformers
  1796.       http://wiki.apache.org/solr/DocTransformers
  1797.    -->
  1798.   <!--
  1799.     Could be something like:
  1800.     <transformer name="db" class="com.mycompany.LoadFromDatabaseTransformer" >
  1801.       <int name="connection">jdbc://....</int>
  1802.     </transformer>
  1803.    
  1804.     To add a constant value to all docs, use:
  1805.     <transformer name="mytrans2" class="org.apache.solr.response.transform.ValueAugmenterFactory" >
  1806.       <int name="value">5</int>
  1807.     </transformer>
  1808.    
  1809.     If you want the user to still be able to change it with _value:something_ use this:
  1810.     <transformer name="mytrans3" class="org.apache.solr.response.transform.ValueAugmenterFactory" >
  1811.       <double name="defaultValue">5</double>
  1812.     </transformer>
  1813.  
  1814.      If you are using the QueryElevationComponent, you may wish to mark documents that get boosted.  The
  1815.      EditorialMarkerFactory will do exactly that:
  1816.     <transformer name="qecBooster" class="org.apache.solr.response.transform.EditorialMarkerFactory" />
  1817.    -->
  1818.    
  1819.  
  1820.   <!-- Legacy config for the admin interface -->
  1821.   <admin>
  1822.     <defaultQuery>*:*</defaultQuery>
  1823.   </admin>
  1824. <searchComponent name="suggest" class="solr.SpellCheckComponent">
  1825.      <lst name="spellchecker">
  1826.       <str name="name">suggest</str>
  1827.       <str name="classname">org.apache.solr.spelling.suggest.Suggester</str>
  1828.       <str name="lookupImpl">org.apache.solr.spelling.suggest.tst.TSTLookup</str>
  1829.       <str name="field">autocomplete</str>
  1830.       <str name="buildOnCommit">true</str>  <!-- probably want to remove this for performance reasons...-->
  1831.      </lst>
  1832. </searchComponent>
  1833.  
  1834.    
  1835. <requestHandler name="/suggest" class="org.apache.solr.handler.component.SearchHandler">
  1836.  <lst name="defaults">
  1837.   <str name="spellcheck">true</str>
  1838.   <str name="spellcheck.dictionary">suggest</str>
  1839.   <str name="spellcheck.count">10</str>
  1840.  </lst>
  1841.  <arr name="components">
  1842.   <str>suggest</str>
  1843.  </arr>
  1844. </requestHandler>
  1845.  
  1846. </config>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement