c28173063715d6ccb5155bfadaa7b90e6a7206f3
[lui-solr.git] / solr-conf / solrconfig.xml
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   <!-- Set this to 'false' if you want solr to continue working after
33        it has encountered an severe configuration error.  In a
34        production environment, you may want solr to keep working even
35        if one handler is mis-configured.
36
37        You may also set this to false using by setting the system
38        property:
39
40          -Dsolr.abortOnConfigurationError=false
41     -->
42   <abortOnConfigurationError>${solr.abortOnConfigurationError:true}</abortOnConfigurationError>
43   
44   <!-- Controls what version of Lucene various components of Solr
45        adhere to.  Generally, you want to use the latest version to
46        get all bug fixes and improvements. It is highly recommended
47        that you fully re-index after changing this setting as it can
48        affect both how text is indexed and queried.
49     -->
50   <luceneMatchVersion>LUCENE_33</luceneMatchVersion>
51
52   <!-- lib directives can be used to instruct Solr to load an Jars
53        identified and use them to resolve any "plugins" specified in
54        your solrconfig.xml or schema.xml (ie: Analyzers, Request
55        Handlers, etc...).
56
57        All directories and paths are resolved relative to the
58        instanceDir.
59
60        If a "./lib" directory exists in your instanceDir, all files
61        found in it are included as if you had used the following
62        syntax...
63        
64               <lib dir="./lib" />
65     -->
66   <!-- A dir option by itself adds any files found in the directory to
67        the classpath, this is useful for including all jars in a
68        directory.
69     -->
70   <lib dir="../../contrib/extraction/lib" />
71   <!-- When a regex is specified in addition to a directory, only the
72        files in that directory which completely match the regex
73        (anchored on both ends) will be included.
74     -->
75   <lib dir="../../dist/" regex="apache-solr-cell-\d.*\.jar" />
76   <lib dir="../../dist/" regex="apache-solr-clustering-\d.*\.jar" />
77   <lib dir="../../dist/" regex="apache-solr-dataimporthandler-\d.*\.jar" />
78
79   <!-- If a dir option (with or without a regex) is used and nothing
80        is found that matches, it will be ignored
81     -->
82   <lib dir="../../contrib/clustering/lib/" />
83   <lib dir="/total/crap/dir/ignored" /> 
84   <!-- an exact path can be used to specify a specific file.  This
85        will cause a serious error to be logged if it can't be loaded.
86     -->
87   <!--
88   <lib path="../a-jar-that-does-not-exist.jar" /> 
89   -->
90   
91   <!-- Data Directory
92
93        Used to specify an alternate directory to hold all index data
94        other than the default ./data under the Solr home.  If
95        replication is in use, this should match the replication
96        configuration.
97     -->
98   <dataDir>${solr.data.dir:/var/lib/masterkey/lui/solr/data}</dataDir>
99
100   <!-- The DirectoryFactory to use for indexes.
101        
102        solr.StandardDirectoryFactory, the default, is filesystem
103        based.  solr.RAMDirectoryFactory is memory based, not
104        persistent, and doesn't work with replication.
105     -->
106   <directoryFactory name="DirectoryFactory" 
107                     class="${solr.directoryFactory:solr.StandardDirectoryFactory}"/>
108
109
110   <!-- Index Defaults
111
112        Values here affect all index writers and act as a default
113        unless overridden.
114
115        WARNING: See also the <mainIndex> section below for parameters
116        that overfor Solr's main Lucene index.
117     -->
118   <indexDefaults>
119
120     <useCompoundFile>false</useCompoundFile>
121
122     <mergeFactor>10</mergeFactor>
123     <!-- Sets the amount of RAM that may be used by Lucene indexing
124          for buffering added documents and deletions before they are
125          flushed to the Directory.  -->
126     <ramBufferSizeMB>32</ramBufferSizeMB>
127     <!-- If both ramBufferSizeMB and maxBufferedDocs is set, then
128          Lucene will flush based on whichever limit is hit first.  
129       -->
130     <!-- <maxBufferedDocs>1000</maxBufferedDocs> -->
131
132     <maxFieldLength>10000</maxFieldLength>
133     <writeLockTimeout>1000</writeLockTimeout>
134     <commitLockTimeout>10000</commitLockTimeout>
135
136     <!-- Expert: Merge Policy 
137
138          The Merge Policy in Lucene controls how merging is handled by
139          Lucene.  The default in Solr 3.3 is TieredMergePolicy.
140          
141          The default in 2.3 was the LogByteSizeMergePolicy,
142          previous versions used LogDocMergePolicy.
143          
144          LogByteSizeMergePolicy chooses segments to merge based on
145          their size.  The Lucene 2.2 default, LogDocMergePolicy chose
146          when to merge based on number of documents
147          
148          Other implementations of MergePolicy must have a no-argument
149          constructor
150       -->
151     <!--
152        <mergePolicy class="org.apache.lucene.index.TieredMergePolicy"/>
153        -->
154
155     <!-- Expert: Merge Scheduler
156
157          The Merge Scheduler in Lucene controls how merges are
158          performed.  The ConcurrentMergeScheduler (Lucene 2.3 default)
159          can perform merges in the background using separate threads.
160          The SerialMergeScheduler (Lucene 2.2 default) does not.
161      -->
162     <!-- 
163        <mergeScheduler class="org.apache.lucene.index.ConcurrentMergeScheduler"/>
164        -->
165           
166     <!-- LockFactory 
167
168          This option specifies which Lucene LockFactory implementation
169          to use.
170       
171          single = SingleInstanceLockFactory - suggested for a
172                   read-only index or when there is no possibility of
173                   another process trying to modify the index.
174          native = NativeFSLockFactory - uses OS native file locking.
175                   Do not use when multiple solr webapps in the same
176                   JVM are attempting to share a single index.
177          simple = SimpleFSLockFactory  - uses a plain file for locking
178
179          (For backwards compatibility with Solr 1.2, 'simple' is the
180          default if not specified.)
181
182          More details on the nuances of each LockFactory...
183          http://wiki.apache.org/lucene-java/AvailableLockFactories
184     -->
185     <lockType>native</lockType>
186
187     <!-- Expert: Controls how often Lucene loads terms into memory
188          Default is 128 and is likely good for most everyone.
189       -->
190     <!-- <termIndexInterval>256</termIndexInterval> -->
191   </indexDefaults>
192
193   <!-- Main Index
194
195        Values here override the values in the <indexDefaults> section
196        for the main on disk index.
197     -->
198   <mainIndex>
199
200     <useCompoundFile>false</useCompoundFile>
201     <ramBufferSizeMB>32</ramBufferSizeMB>
202     <mergeFactor>10</mergeFactor>
203
204     <!-- Unlock On Startup
205
206          If true, unlock any held write or commit locks on startup.
207          This defeats the locking mechanism that allows multiple
208          processes to safely access a lucene index, and should be used
209          with care.
210
211          This is not needed if lock type is 'none' or 'single'
212      -->
213     <unlockOnStartup>false</unlockOnStartup>
214     
215     <!-- If true, IndexReaders will be reopened (often more efficient)
216          instead of closed and then opened.
217       -->
218     <reopenReaders>true</reopenReaders>
219
220     <!-- Commit Deletion Policy
221
222          Custom deletion policies can specified here. The class must
223          implement org.apache.lucene.index.IndexDeletionPolicy.
224
225          http://lucene.apache.org/java/2_9_1/api/all/org/apache/lucene/index/IndexDeletionPolicy.html
226
227          The standard Solr IndexDeletionPolicy implementation supports
228          deleting index commit points on number of commits, age of
229          commit point and optimized status.
230          
231          The latest commit point should always be preserved regardless
232          of the criteria.
233     -->
234     <deletionPolicy class="solr.SolrDeletionPolicy">
235       <!-- The number of commit points to be kept -->
236       <str name="maxCommitsToKeep">1</str>
237       <!-- The number of optimized commit points to be kept -->
238       <str name="maxOptimizedCommitsToKeep">0</str>
239       <!--
240           Delete all commit points once they have reached the given age.
241           Supports DateMathParser syntax e.g.
242         -->
243       <!--
244          <str name="maxCommitAge">30MINUTES</str>
245          <str name="maxCommitAge">1DAY</str>
246       -->
247     </deletionPolicy>
248
249     <!-- Lucene Infostream
250        
251          To aid in advanced debugging, Lucene provides an "InfoStream"
252          of detailed information when indexing.
253
254          Setting The value to true will instruct the underlying Lucene
255          IndexWriter to write its debugging info the specified file
256       -->
257      <infoStream file="INFOSTREAM.txt">false</infoStream> 
258
259   </mainIndex>
260
261   <!-- JMX
262        
263        This example enables JMX if and only if an existing MBeanServer
264        is found, use this if you want to configure JMX through JVM
265        parameters. Remove this to disable exposing Solr configuration
266        and statistics to JMX.
267
268        For more details see http://wiki.apache.org/solr/SolrJmx
269     -->
270   <jmx />
271   <!-- If you want to connect to a particular server, specify the
272        agentId 
273     -->
274   <!-- <jmx agentId="myAgent" /> -->
275   <!-- If you want to start a new MBeanServer, specify the serviceUrl -->
276   <!-- <jmx serviceUrl="service:jmx:rmi:///jndi/rmi://localhost:9999/solr"/>
277     -->
278
279   <!-- The default high-performance update handler -->
280   <updateHandler class="solr.DirectUpdateHandler2">
281
282     <!-- AutoCommit
283
284          Perform a <commit/> automatically under certain conditions.
285          Instead of enabling autoCommit, consider using "commitWithin"
286          when adding documents. 
287
288          http://wiki.apache.org/solr/UpdateXmlMessages
289
290          maxDocs - Maximum number of documents to add since the last
291                    commit before automatically triggering a new commit.
292
293          maxTime - Maximum amount of time that is allowed to pass
294                    since a document was added before automaticly
295                    triggering a new commit. 
296       -->
297     <!--
298        <autoCommit> 
299          <maxDocs>10000</maxDocs>
300          <maxTime>1000</maxTime> 
301        </autoCommit>
302       -->
303
304     <!-- Update Related Event Listeners
305          
306          Various IndexWriter related events can trigger Listeners to
307          take actions.
308
309          postCommit - fired after every commit or optimize command
310          postOptimize - fired after every optimize command
311       -->
312     <!-- The RunExecutableListener executes an external command from a
313          hook such as postCommit or postOptimize.
314          
315          exe - the name of the executable to run
316          dir - dir to use as the current working directory. (default=".")
317          wait - the calling thread waits until the executable returns. 
318                 (default="true")
319          args - the arguments to pass to the program.  (default is none)
320          env - environment variables to set.  (default is none)
321       -->
322     <!-- This example shows how RunExecutableListener could be used
323          with the script based replication...
324          http://wiki.apache.org/solr/CollectionDistribution
325       -->
326     <!--
327        <listener event="postCommit" class="solr.RunExecutableListener">
328          <str name="exe">solr/bin/snapshooter</str>
329          <str name="dir">.</str>
330          <bool name="wait">true</bool>
331          <arr name="args"> <str>arg1</str> <str>arg2</str> </arr>
332          <arr name="env"> <str>MYVAR=val1</str> </arr>
333        </listener>
334       -->
335   </updateHandler>
336   
337   <!-- IndexReaderFactory
338
339        Use the following format to specify a custom IndexReaderFactory,
340        which allows for alternate IndexReader implementations.
341
342        ** Experimental Feature **
343
344        Please note - Using a custom IndexReaderFactory may prevent
345        certain other features from working. The API to
346        IndexReaderFactory may change without warning or may even be
347        removed from future releases if the problems cannot be
348        resolved.
349
350
351        ** Features that may not work with custom IndexReaderFactory **
352
353        The ReplicationHandler assumes a disk-resident index. Using a
354        custom IndexReader implementation may cause incompatibility
355        with ReplicationHandler and may cause replication to not work
356        correctly. See SOLR-1366 for details.
357
358     -->
359   <!--
360   <indexReaderFactory name="IndexReaderFactory" class="package.class">
361     <str name="someArg">Some Value</str>
362   </indexReaderFactory >
363   -->
364   <!-- By explicitly declaring the Factory, the termIndexDivisor can
365        be specified.
366     -->
367   <!--
368      <indexReaderFactory name="IndexReaderFactory" 
369                          class="solr.StandardIndexReaderFactory">
370        <int name="setTermIndexDivisor">12</int>
371      </indexReaderFactory >
372     -->
373
374
375   <query>
376     <!-- Max Boolean Clauses
377
378          Maximum number of clauses in each BooleanQuery,  an exception
379          is thrown if exceeded.
380
381          ** WARNING **
382          
383          This option actually modifies a global Lucene property that
384          will affect all SolrCores.  If multiple solrconfig.xml files
385          disagree on this property, the value at any given moment will
386          be based on the last SolrCore to be initialized.
387          
388       -->
389     <maxBooleanClauses>1024</maxBooleanClauses>
390
391
392     <!-- Solr Internal Query Caches
393
394          There are two implementations of cache available for Solr,
395          LRUCache, based on a synchronized LinkedHashMap, and
396          FastLRUCache, based on a ConcurrentHashMap.  
397
398          FastLRUCache has faster gets and slower puts in single
399          threaded operation and thus is generally faster than LRUCache
400          when the hit ratio of the cache is high (> 75%), and may be
401          faster under other scenarios on multi-cpu systems.
402     -->
403
404     <!-- Filter Cache
405
406          Cache used by SolrIndexSearcher for filters (DocSets),
407          unordered sets of *all* documents that match a query.  When a
408          new searcher is opened, its caches may be prepopulated or
409          "autowarmed" using data from caches in the old searcher.
410          autowarmCount is the number of items to prepopulate.  For
411          LRUCache, the autowarmed items will be the most recently
412          accessed items.
413
414          Parameters:
415            class - the SolrCache implementation LRUCache or
416                (LRUCache or FastLRUCache)
417            size - the maximum number of entries in the cache
418            initialSize - the initial capacity (number of entries) of
419                the cache.  (see java.util.HashMap)
420            autowarmCount - the number of entries to prepopulate from
421                and old cache.  
422       -->
423     <filterCache class="solr.FastLRUCache"
424                  size="512"
425                  initialSize="512"
426                  autowarmCount="0"/>
427
428     <!-- Query Result Cache
429          
430          Caches results of searches - ordered lists of document ids
431          (DocList) based on a query, a sort, and the range of documents requested.  
432       -->
433     <queryResultCache class="solr.LRUCache"
434                      size="512"
435                      initialSize="512"
436                      autowarmCount="0"/>
437    
438     <!-- Document Cache
439
440          Caches Lucene Document objects (the stored fields for each
441          document).  Since Lucene internal document ids are transient,
442          this cache will not be autowarmed.  
443       -->
444     <documentCache class="solr.LRUCache"
445                    size="512"
446                    initialSize="512"
447                    autowarmCount="0"/>
448     
449     <!-- Field Value Cache
450          
451          Cache used to hold field values that are quickly accessible
452          by document id.  The fieldValueCache is created by default
453          even if not configured here.
454       -->
455     <!--
456        <fieldValueCache class="solr.FastLRUCache"
457                         size="512"
458                         autowarmCount="128"
459                         showItems="32" />
460       -->
461
462     <!-- Custom Cache
463
464          Example of a generic cache.  These caches may be accessed by
465          name through SolrIndexSearcher.getCache(),cacheLookup(), and
466          cacheInsert().  The purpose is to enable easy caching of
467          user/application level data.  The regenerator argument should
468          be specified as an implementation of solr.CacheRegenerator 
469          if autowarming is desired.  
470       -->
471     <!--
472        <cache name="myUserCache"
473               class="solr.LRUCache"
474               size="4096"
475               initialSize="1024"
476               autowarmCount="1024"
477               regenerator="com.mycompany.MyRegenerator"
478               />
479       -->
480
481
482     <!-- Lazy Field Loading
483
484          If true, stored fields that are not requested will be loaded
485          lazily.  This can result in a significant speed improvement
486          if the usual case is to not load all stored fields,
487          especially if the skipped fields are large compressed text
488          fields.
489     -->
490     <enableLazyFieldLoading>true</enableLazyFieldLoading>
491
492    <!-- Use Filter For Sorted Query
493
494         A possible optimization that attempts to use a filter to
495         satisfy a search.  If the requested sort does not include
496         score, then the filterCache will be checked for a filter
497         matching the query. If found, the filter will be used as the
498         source of document ids, and then the sort will be applied to
499         that.
500
501         For most situations, this will not be useful unless you
502         frequently get the same search repeatedly with different sort
503         options, and none of them ever use "score"
504      -->
505    <!--
506       <useFilterForSortedQuery>true</useFilterForSortedQuery>
507      -->
508
509    <!-- Result Window Size
510
511         An optimization for use with the queryResultCache.  When a search
512         is requested, a superset of the requested number of document ids
513         are collected.  For example, if a search for a particular query
514         requests matching documents 10 through 19, and queryWindowSize is 50,
515         then documents 0 through 49 will be collected and cached.  Any further
516         requests in that range can be satisfied via the cache.  
517      -->
518    <queryResultWindowSize>20</queryResultWindowSize>
519
520    <!-- Maximum number of documents to cache for any entry in the
521         queryResultCache. 
522      -->
523    <queryResultMaxDocsCached>200</queryResultMaxDocsCached>
524
525    <!-- Query Related Event Listeners
526
527         Various IndexSearcher related events can trigger Listeners to
528         take actions.
529
530         newSearcher - fired whenever a new searcher is being prepared
531         and there is a current searcher handling requests (aka
532         registered).  It can be used to prime certain caches to
533         prevent long request times for certain requests.
534
535         firstSearcher - fired whenever a new searcher is being
536         prepared but there is no current registered searcher to handle
537         requests or to gain autowarming data from.
538
539         
540      -->
541     <!-- QuerySenderListener takes an array of NamedList and executes a
542          local query request for each NamedList in sequence. 
543       -->
544     <listener event="newSearcher" class="solr.QuerySenderListener">
545       <arr name="queries">
546         <!--
547            <lst><str name="q">solr</str><str name="sort">price asc</str></lst>
548            <lst><str name="q">rocks</str><str name="sort">weight asc</str></lst>
549           -->
550       </arr>
551     </listener>
552     <listener event="firstSearcher" class="solr.QuerySenderListener">
553       <arr name="queries">
554         <lst>
555           <str name="q">static firstSearcher warming in solrconfig.xml</str>
556         </lst>
557       </arr>
558     </listener>
559
560     <!-- Use Cold Searcher
561
562          If a search request comes in and there is no current
563          registered searcher, then immediately register the still
564          warming searcher and use it.  If "false" then all requests
565          will block until the first searcher is done warming.
566       -->
567     <useColdSearcher>false</useColdSearcher>
568
569     <!-- Max Warming Searchers
570          
571          Maximum number of searchers that may be warming in the
572          background concurrently.  An error is returned if this limit
573          is exceeded.
574
575          Recommend values of 1-2 for read-only slaves, higher for
576          masters w/o cache warming.
577       -->
578     <maxWarmingSearchers>2</maxWarmingSearchers>
579
580   </query>
581
582
583   <!-- Request Dispatcher
584
585        This section contains instructions for how the SolrDispatchFilter
586        should behave when processing requests for this SolrCore.
587
588        handleSelect affects the behavior of requests such as /select?qt=XXX
589
590        handleSelect="true" will cause the SolrDispatchFilter to process
591        the request and will result in consistent error handling and
592        formatting for all types of requests.
593
594        handleSelect="false" will cause the SolrDispatchFilter to
595        ignore "/select" requests and fallback to using the legacy
596        SolrServlet and it's Solr 1.1 style error formatting
597     -->
598   <requestDispatcher handleSelect="true" >
599     <!-- Request Parsing
600
601          These settings indicate how Solr Requests may be parsed, and
602          what restrictions may be placed on the ContentStreams from
603          those requests
604
605          enableRemoteStreaming - enables use of the stream.file
606          and stream.url parameters for specifying remote streams.
607
608          multipartUploadLimitInKB - specifies the max size of
609          Multipart File Uploads that Solr will allow in a Request.
610          
611          *** WARNING ***
612          The settings below authorize Solr to fetch remote files, You
613          should make sure your system has some authentication before
614          using enableRemoteStreaming="true"
615
616       --> 
617     <requestParsers enableRemoteStreaming="true" 
618                     multipartUploadLimitInKB="2048000" />
619
620     <!-- HTTP Caching
621
622          Set HTTP caching related parameters (for proxy caches and clients).
623
624          The options below instruct Solr not to output any HTTP Caching
625          related headers
626       -->
627     <httpCaching never304="true" />
628     <!-- If you include a <cacheControl> directive, it will be used to
629          generate a Cache-Control header (as well as an Expires header
630          if the value contains "max-age=")
631          
632          By default, no Cache-Control header is generated.
633          
634          You can use the <cacheControl> option even if you have set
635          never304="true"
636       -->
637     <!--
638        <httpCaching never304="true" >
639          <cacheControl>max-age=30, public</cacheControl> 
640        </httpCaching>
641       -->
642     <!-- To enable Solr to respond with automatically generated HTTP
643          Caching headers, and to response to Cache Validation requests
644          correctly, set the value of never304="false"
645          
646          This will cause Solr to generate Last-Modified and ETag
647          headers based on the properties of the Index.
648
649          The following options can also be specified to affect the
650          values of these headers...
651
652          lastModFrom - the default value is "openTime" which means the
653          Last-Modified value (and validation against If-Modified-Since
654          requests) will all be relative to when the current Searcher
655          was opened.  You can change it to lastModFrom="dirLastMod" if
656          you want the value to exactly correspond to when the physical
657          index was last modified.
658
659          etagSeed="..." is an option you can change to force the ETag
660          header (and validation against If-None-Match requests) to be
661          different even if the index has not changed (ie: when making
662          significant changes to your config file)
663
664          (lastModifiedFrom and etagSeed are both ignored if you use
665          the never304="true" option)
666       -->
667     <!--
668        <httpCaching lastModifiedFrom="openTime"
669                     etagSeed="Solr">
670          <cacheControl>max-age=30, public</cacheControl> 
671        </httpCaching>
672       -->
673   </requestDispatcher>
674
675   <!-- Request Handlers 
676
677        http://wiki.apache.org/solr/SolrRequestHandler
678
679        incoming queries will be dispatched to the correct handler
680        based on the path or the qt (query type) param.
681
682        Names starting with a '/' are accessed with the a path equal to
683        the registered name.  Names without a leading '/' are accessed
684        with: http://host/app/[core/]select?qt=name
685
686        If a /select request is processed with out a qt param
687        specified, the requestHandler that declares default="true" will
688        be used.
689        
690        If a Request Handler is declared with startup="lazy", then it will
691        not be initialized until the first request that uses it.
692
693     -->
694   <!-- SearchHandler
695
696        http://wiki.apache.org/solr/SearchHandler
697
698        For processing Search Queries, the primary Request Handler
699        provided with Solr is "SearchHandler" It delegates to a sequent
700        of SearchComponents (see below) and supports distributed
701        queries across multiple shards
702     -->
703   <requestHandler name="search" class="solr.SearchHandler" default="true">
704     <!-- default values for query parameters can be specified, these
705          will be overridden by parameters in the request
706       -->
707      <lst name="defaults">
708        <str name="echoParams">explicit</str>
709        <int name="rows">10</int>
710      </lst>
711     <!-- In addition to defaults, "appends" params can be specified
712          to identify values which should be appended to the list of
713          multi-val params from the query (or the existing "defaults").
714       -->
715     <!-- In this example, the param "fq=instock:true" would be appended to
716          any query time fq params the user may specify, as a mechanism for
717          partitioning the index, independent of any user selected filtering
718          that may also be desired (perhaps as a result of faceted searching).
719
720          NOTE: there is *absolutely* nothing a client can do to prevent these
721          "appends" values from being used, so don't use this mechanism
722          unless you are sure you always want it.
723       -->
724     <!--
725        <lst name="appends">
726          <str name="fq">inStock:true</str>
727        </lst>
728       -->
729     <!-- "invariants" are a way of letting the Solr maintainer lock down
730          the options available to Solr clients.  Any params values
731          specified here are used regardless of what values may be specified
732          in either the query, the "defaults", or the "appends" params.
733
734          In this example, the facet.field and facet.query params would
735          be fixed, limiting the facets clients can use.  Faceting is
736          not turned on by default - but if the client does specify
737          facet=true in the request, these are the only facets they
738          will be able to see counts for; regardless of what other
739          facet.field or facet.query params they may specify.
740
741          NOTE: there is *absolutely* nothing a client can do to prevent these
742          "invariants" values from being used, so don't use this mechanism
743          unless you are sure you always want it.
744       -->
745     <!--
746        <lst name="invariants">
747          <str name="facet.field">cat</str>
748          <str name="facet.field">manu_exact</str>
749          <str name="facet.query">price:[* TO 500]</str>
750          <str name="facet.query">price:[500 TO *]</str>
751        </lst>
752       -->
753     <!-- If the default list of SearchComponents is not desired, that
754          list can either be overridden completely, or components can be
755          prepended or appended to the default list.  (see below)
756       -->
757     <!--
758        <arr name="components">
759          <str>nameOfCustomComponent1</str>
760          <str>nameOfCustomComponent2</str>
761        </arr>
762       -->
763     </requestHandler>
764
765   <!-- A Robust Example
766
767        This example SearchHandler declaration shows off usage of the
768        SearchHandler with many defaults declared
769
770        Note that multiple instances of the same Request Handler
771        (SearchHandler) can be registered multiple times with different
772        names (and different init parameters)
773     -->
774   <requestHandler name="/browse" class="solr.SearchHandler">
775      <lst name="defaults">
776        <str name="echoParams">explicit</str>
777
778        <!-- VelocityResponseWriter settings -->
779        <str name="wt">velocity</str>
780
781        <str name="v.template">browse</str>
782        <str name="v.layout">layout</str>
783        <str name="title">Solritas</str>
784
785        <str name="defType">edismax</str>
786        <str name="q.alt">*:*</str>
787        <str name="rows">10</str>
788        <str name="fl">*,score</str>
789        <str name="mlt.qf">
790          text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
791        </str>
792        <str name="mlt.fl">text,features,name,sku,id,manu,cat</str>
793        <int name="mlt.count">3</int>
794
795        <str name="qf">
796           text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
797        </str>
798
799        <str name="facet">on</str>
800        <str name="facet.field">cat</str>
801        <str name="facet.field">manu_exact</str>
802        <str name="facet.query">ipod</str>
803        <str name="facet.query">GB</str>
804        <str name="facet.mincount">1</str>
805        <str name="facet.pivot">cat,inStock</str>
806        <str name="facet.range">price</str>
807        <int name="f.price.facet.range.start">0</int>
808        <int name="f.price.facet.range.end">600</int>
809        <int name="f.price.facet.range.gap">50</int>
810        <str name="f.price.facet.range.other">after</str>
811        <str name="facet.range">manufacturedate_dt</str>
812        <str name="f.manufacturedate_dt.facet.range.start">NOW/YEAR-10YEARS</str>
813        <str name="f.manufacturedate_dt.facet.range.end">NOW</str>
814        <str name="f.manufacturedate_dt.facet.range.gap">+1YEAR</str>
815        <str name="f.manufacturedate_dt.facet.range.other">before</str>
816        <str name="f.manufacturedate_dt.facet.range.other">after</str>
817
818
819        <!-- Highlighting defaults -->
820        <str name="hl">on</str>
821        <str name="hl.fl">text features name</str>
822        <str name="f.name.hl.fragsize">0</str>
823        <str name="f.name.hl.alternateField">name</str>
824      </lst>
825      <arr name="last-components">
826        <str>spellcheck</str>
827      </arr>
828      <!--
829      <str name="url-scheme">httpx</str>
830      -->
831   </requestHandler>
832
833   <!-- XML Update Request Handler.  
834        
835        http://wiki.apache.org/solr/UpdateXmlMessages
836
837        The canonical Request Handler for Modifying the Index through
838        commands specified using XML.
839
840        Note: Since solr1.1 requestHandlers requires a valid content
841        type header if posted in the body. For example, curl now
842        requires: -H 'Content-type:text/xml; charset=utf-8'
843     -->
844   <requestHandler name="/update" 
845                   class="solr.XmlUpdateRequestHandler">
846     <!-- See below for information on defining 
847          updateRequestProcessorChains that can be used by name 
848          on each Update Request
849       -->
850     <!--
851        <lst name="defaults">
852          <str name="update.chain">dedupe</str>
853        </lst>
854        -->
855     </requestHandler>
856   <!-- Binary Update Request Handler
857        http://wiki.apache.org/solr/javabin
858     -->
859   <requestHandler name="/update/javabin" 
860                   class="solr.BinaryUpdateRequestHandler" />
861
862   <!-- CSV Update Request Handler
863        http://wiki.apache.org/solr/UpdateCSV
864     -->
865   <requestHandler name="/update/csv" 
866                   class="solr.CSVRequestHandler" 
867                   startup="lazy" />
868
869   <!-- JSON Update Request Handler
870        http://wiki.apache.org/solr/UpdateJSON
871     -->
872   <requestHandler name="/update/json" 
873                   class="solr.JsonUpdateRequestHandler" 
874                   startup="lazy" />
875
876   <!-- Solr Cell Update Request Handler
877
878        http://wiki.apache.org/solr/ExtractingRequestHandler 
879
880     -->
881   <requestHandler name="/update/extract" 
882                   startup="lazy"
883                   class="solr.extraction.ExtractingRequestHandler" >
884     <lst name="defaults">
885       <!-- All the main content goes into "text"... if you need to return
886            the extracted text or do highlighting, use a stored field. -->
887       <str name="fmap.content">text</str>
888       <str name="lowernames">true</str>
889       <str name="uprefix">ignored_</str>
890
891       <!-- capture link hrefs but ignore div attributes -->
892       <str name="captureAttr">true</str>
893       <str name="fmap.a">links</str>
894       <str name="fmap.div">ignored_</str>
895     </lst>
896   </requestHandler>
897
898   <!-- Field Analysis Request Handler
899
900        RequestHandler that provides much the same functionality as
901        analysis.jsp. Provides the ability to specify multiple field
902        types and field names in the same request and outputs
903        index-time and query-time analysis for each of them.
904
905        Request parameters are:
906        analysis.fieldname - field name whose analyzers are to be used
907
908        analysis.fieldtype - field type whose analyzers are to be used
909        analysis.fieldvalue - text for index-time analysis
910        q (or analysis.q) - text for query time analysis
911        analysis.showmatch (true|false) - When set to true and when
912            query analysis is performed, the produced tokens of the
913            field value analysis will be marked as "matched" for every
914            token that is produces by the query analysis
915    -->
916   <requestHandler name="/analysis/field" 
917                   startup="lazy"
918                   class="solr.FieldAnalysisRequestHandler" />
919
920
921   <!-- Document Analysis Handler
922
923        http://wiki.apache.org/solr/AnalysisRequestHandler
924
925        An analysis handler that provides a breakdown of the analysis
926        process of provided docuemnts. This handler expects a (single)
927        content stream with the following format:
928
929        <docs>
930          <doc>
931            <field name="id">1</field>
932            <field name="name">The Name</field>
933            <field name="text">The Text Value</field>
934          </doc>
935          <doc>...</doc>
936          <doc>...</doc>
937          ...
938        </docs>
939
940     Note: Each document must contain a field which serves as the
941     unique key. This key is used in the returned response to associate
942     an analysis breakdown to the analyzed document.
943
944     Like the FieldAnalysisRequestHandler, this handler also supports
945     query analysis by sending either an "analysis.query" or "q"
946     request parameter that holds the query text to be analyzed. It
947     also supports the "analysis.showmatch" parameter which when set to
948     true, all field tokens that match the query tokens will be marked
949     as a "match". 
950   -->
951   <requestHandler name="/analysis/document" 
952                   class="solr.DocumentAnalysisRequestHandler" 
953                   startup="lazy" />
954
955   <!-- Admin Handlers
956
957        Admin Handlers - This will register all the standard admin
958        RequestHandlers.  
959     -->
960   <requestHandler name="/admin/" 
961                   class="solr.admin.AdminHandlers" />
962   <!-- This single handler is equivalent to the following... -->
963   <!--
964      <requestHandler name="/admin/luke"       class="solr.admin.LukeRequestHandler" />
965      <requestHandler name="/admin/system"     class="solr.admin.SystemInfoHandler" />
966      <requestHandler name="/admin/plugins"    class="solr.admin.PluginInfoHandler" />
967      <requestHandler name="/admin/threads"    class="solr.admin.ThreadDumpHandler" />
968      <requestHandler name="/admin/properties" class="solr.admin.PropertiesRequestHandler" />
969      <requestHandler name="/admin/file"       class="solr.admin.ShowFileRequestHandler" >
970     -->
971   <!-- If you wish to hide files under ${solr.home}/conf, explicitly
972        register the ShowFileRequestHandler using: 
973     -->
974   <!--
975      <requestHandler name="/admin/file" 
976                      class="solr.admin.ShowFileRequestHandler" >
977        <lst name="invariants">
978          <str name="hidden">synonyms.txt</str> 
979          <str name="hidden">anotherfile.txt</str> 
980        </lst>
981      </requestHandler>
982     -->
983
984   <!-- ping/healthcheck -->
985   <requestHandler name="/admin/ping" class="solr.PingRequestHandler">
986     <lst name="defaults">
987       <str name="qt">search</str>
988       <str name="q">solrpingquery</str>
989       <str name="echoParams">all</str>
990     </lst>
991   </requestHandler>
992
993   <!-- Echo the request contents back to the client -->
994   <requestHandler name="/debug/dump" class="solr.DumpRequestHandler" >
995     <lst name="defaults">
996      <str name="echoParams">explicit</str> 
997      <str name="echoHandler">true</str>
998     </lst>
999   </requestHandler>
1000   
1001   <!-- Solr Replication
1002
1003        The SolrReplicationHandler supports replicating indexes from a
1004        "master" used for indexing and "salves" used for queries.
1005
1006        http://wiki.apache.org/solr/SolrReplication 
1007
1008        In the example below, remove the <lst name="master"> section if
1009        this is just a slave and remove  the <lst name="slave"> section
1010        if this is just a master.
1011     -->
1012   <!--
1013      <requestHandler name="/replication" class="solr.ReplicationHandler" >
1014        <lst name="master">
1015          <str name="replicateAfter">commit</str>
1016          <str name="replicateAfter">startup</str>
1017          <str name="confFiles">schema.xml,stopwords.txt</str>
1018        </lst>
1019        <lst name="slave">
1020          <str name="masterUrl">http://localhost:8983/solr/replication</str>
1021          <str name="pollInterval">00:00:60</str>
1022        </lst>
1023      </requestHandler>
1024     -->
1025
1026   <!-- Search Components
1027
1028        Search components are registered to SolrCore and used by 
1029        instances of SearchHandler (which can access them by name)
1030        
1031        By default, the following components are available:
1032        
1033        <searchComponent name="query"     class="solr.QueryComponent" />
1034        <searchComponent name="facet"     class="solr.FacetComponent" />
1035        <searchComponent name="mlt"       class="solr.MoreLikeThisComponent" />
1036        <searchComponent name="highlight" class="solr.HighlightComponent" />
1037        <searchComponent name="stats"     class="solr.StatsComponent" />
1038        <searchComponent name="debug"     class="solr.DebugComponent" />
1039    
1040        Default configuration in a requestHandler would look like:
1041
1042        <arr name="components">
1043          <str>query</str>
1044          <str>facet</str>
1045          <str>mlt</str>
1046          <str>highlight</str>
1047          <str>stats</str>
1048          <str>debug</str>
1049        </arr>
1050
1051        If you register a searchComponent to one of the standard names, 
1052        that will be used instead of the default.
1053
1054        To insert components before or after the 'standard' components, use:
1055     
1056        <arr name="first-components">
1057          <str>myFirstComponentName</str>
1058        </arr>
1059     
1060        <arr name="last-components">
1061          <str>myLastComponentName</str>
1062        </arr>
1063
1064        NOTE: The component registered with the name "debug" will
1065        always be executed after the "last-components" 
1066        
1067      -->
1068
1069    <!-- Spell Check
1070
1071         The spell check component can return a list of alternative spelling
1072         suggestions.  
1073
1074         http://wiki.apache.org/solr/SpellCheckComponent
1075      -->
1076   <searchComponent name="spellcheck" class="solr.SpellCheckComponent">
1077
1078     <str name="queryAnalyzerFieldType">textSpell</str>
1079
1080     <!-- Multiple "Spell Checkers" can be declared and used by this
1081          component
1082       -->
1083
1084     <!-- a spellchecker built from a field of the main index, and
1085          written to disk
1086       -->
1087     <lst name="spellchecker">
1088       <str name="name">default</str>
1089       <str name="field">name</str>
1090       <str name="spellcheckIndexDir">spellchecker</str>
1091       <!-- uncomment this to require terms to occur in 1% of the documents in order to be included in the dictionary
1092         <float name="thresholdTokenFrequency">.01</float>
1093       -->
1094     </lst>
1095
1096     <!-- a spellchecker that uses a different distance measure -->
1097     <!--
1098        <lst name="spellchecker">
1099          <str name="name">jarowinkler</str>
1100          <str name="field">spell</str>
1101          <str name="distanceMeasure">
1102            org.apache.lucene.search.spell.JaroWinklerDistance
1103          </str>
1104          <str name="spellcheckIndexDir">spellcheckerJaro</str>
1105        </lst>
1106      -->
1107
1108     <!-- a spellchecker that use an alternate comparator 
1109
1110          comparatorClass be one of:
1111           1. score (default)
1112           2. freq (Frequency first, then score)
1113           3. A fully qualified class name
1114       -->
1115     <!--
1116        <lst name="spellchecker">
1117          <str name="name">freq</str>
1118          <str name="field">lowerfilt</str>
1119          <str name="spellcheckIndexDir">spellcheckerFreq</str>
1120          <str name="comparatorClass">freq</str>
1121          <str name="buildOnCommit">true</str>
1122       -->
1123
1124     <!-- A spellchecker that reads the list of words from a file -->
1125     <!--
1126        <lst name="spellchecker">
1127          <str name="classname">solr.FileBasedSpellChecker</str>
1128          <str name="name">file</str>
1129          <str name="sourceLocation">spellings.txt</str>
1130          <str name="characterEncoding">UTF-8</str>
1131          <str name="spellcheckIndexDir">spellcheckerFile</str>
1132        </lst>
1133       -->
1134   </searchComponent>
1135
1136   <!-- A request handler for demonstrating the spellcheck component.  
1137
1138        NOTE: This is purely as an example.  The whole purpose of the
1139        SpellCheckComponent is to hook it into the request handler that
1140        handles your normal user queries so that a separate request is
1141        not needed to get suggestions.
1142
1143        IN OTHER WORDS, THERE IS REALLY GOOD CHANCE THE SETUP BELOW IS
1144        NOT WHAT YOU WANT FOR YOUR PRODUCTION SYSTEM!
1145        
1146        See http://wiki.apache.org/solr/SpellCheckComponent for details
1147        on the request parameters.
1148     -->
1149   <requestHandler name="/spell" class="solr.SearchHandler" startup="lazy">
1150     <lst name="defaults">
1151       <str name="spellcheck.onlyMorePopular">false</str>
1152       <str name="spellcheck.extendedResults">false</str>
1153       <str name="spellcheck.count">1</str>
1154     </lst>
1155     <arr name="last-components">
1156       <str>spellcheck</str>
1157     </arr>
1158   </requestHandler>
1159
1160   <!-- Term Vector Component
1161
1162        http://wiki.apache.org/solr/TermVectorComponent
1163     -->
1164   <searchComponent name="tvComponent" class="solr.TermVectorComponent"/>
1165
1166   <!-- A request handler for demonstrating the term vector component
1167
1168        This is purely as an example.
1169
1170        In reality you will likely want to add the component to your 
1171        already specified request handlers. 
1172     -->
1173   <requestHandler name="tvrh" class="solr.SearchHandler" startup="lazy">
1174     <lst name="defaults">
1175       <bool name="tv">true</bool>
1176     </lst>
1177     <arr name="last-components">
1178       <str>tvComponent</str>
1179     </arr>
1180   </requestHandler>
1181
1182   <!-- Clustering Component
1183
1184        http://wiki.apache.org/solr/ClusteringComponent
1185
1186        This relies on third party jars which are notincluded in the
1187        release.  To use this component (and the "/clustering" handler)
1188        Those jars will need to be downloaded, and you'll need to set
1189        the solr.cluster.enabled system property when running solr...
1190
1191           java -Dsolr.clustering.enabled=true -jar start.jar
1192     -->
1193   <searchComponent name="clustering" 
1194                    enable="${solr.clustering.enabled:false}"
1195                    class="solr.clustering.ClusteringComponent" >
1196     <!-- Declare an engine -->
1197     <lst name="engine">
1198       <!-- The name, only one can be named "default" -->
1199       <str name="name">default</str>
1200
1201       <!-- Class name of Carrot2 clustering algorithm. 
1202            
1203            Currently available algorithms are:
1204            
1205            * org.carrot2.clustering.lingo.LingoClusteringAlgorithm
1206            * org.carrot2.clustering.stc.STCClusteringAlgorithm
1207            * org.carrot2.clustering.kmeans.BisectingKMeansClusteringAlgorithm
1208            
1209            See http://project.carrot2.org/algorithms.html for the
1210            algorithm's characteristics.
1211         -->
1212       <str name="carrot.algorithm">org.carrot2.clustering.lingo.LingoClusteringAlgorithm</str>
1213
1214       <!-- Overriding values for Carrot2 default algorithm attributes.
1215
1216            For a description of all available attributes, see:
1217            http://download.carrot2.org/stable/manual/#chapter.components.
1218            Use attribute key as name attribute of str elements
1219            below. These can be further overridden for individual
1220            requests by specifying attribute key as request parameter
1221            name and attribute value as parameter value.
1222         -->
1223       <str name="LingoClusteringAlgorithm.desiredClusterCountBase">20</str>
1224       
1225       <!-- Location of Carrot2 lexical resources.
1226
1227            A directory from which to load Carrot2-specific stop words
1228            and stop labels. Absolute or relative to Solr config directory.
1229            If a specific resource (e.g. stopwords.en) is present in the
1230            specified dir, it will completely override the corresponding
1231            default one that ships with Carrot2.
1232
1233            For an overview of Carrot2 lexical resources, see:
1234            http://download.carrot2.org/head/manual/#chapter.lexical-resources
1235         -->
1236       <str name="carrot.lexicalResourcesDir">clustering/carrot2</str>
1237
1238       <!-- The language to assume for the documents.
1239            
1240            For a list of allowed values, see:
1241            http://download.carrot2.org/stable/manual/#section.attribute.lingo.MultilingualClustering.defaultLanguage
1242        -->
1243       <str name="MultilingualClustering.defaultLanguage">ENGLISH</str>
1244     </lst>
1245     <lst name="engine">
1246       <str name="name">stc</str>
1247       <str name="carrot.algorithm">org.carrot2.clustering.stc.STCClusteringAlgorithm</str>
1248     </lst>
1249   </searchComponent>
1250
1251   <!-- A request handler for demonstrating the clustering component
1252
1253        This is purely as an example.
1254
1255        In reality you will likely want to add the component to your 
1256        already specified request handlers. 
1257     -->
1258   <requestHandler name="/clustering"
1259                   startup="lazy"
1260                   enable="${solr.clustering.enabled:false}"
1261                   class="solr.SearchHandler">
1262     <lst name="defaults">
1263       <bool name="clustering">true</bool>
1264       <str name="clustering.engine">default</str>
1265       <bool name="clustering.results">true</bool>
1266       <!-- The title field -->
1267       <str name="carrot.title">name</str>
1268       <str name="carrot.url">id</str>
1269       <!-- The field to cluster on -->
1270        <str name="carrot.snippet">features</str>
1271        <!-- produce summaries -->
1272        <bool name="carrot.produceSummary">true</bool>
1273        <!-- the maximum number of labels per cluster -->
1274        <!--<int name="carrot.numDescriptions">5</int>-->
1275        <!-- produce sub clusters -->
1276        <bool name="carrot.outputSubClusters">false</bool>
1277        
1278        <str name="defType">edismax</str>
1279        <str name="qf">
1280           text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
1281        </str>
1282        <str name="q.alt">*:*</str>
1283        <str name="rows">10</str>
1284        <str name="fl">*,score</str>
1285     </lst>     
1286     <arr name="last-components">
1287       <str>clustering</str>
1288     </arr>
1289   </requestHandler>
1290   
1291   <!-- Terms Component
1292
1293        http://wiki.apache.org/solr/TermsComponent
1294
1295        A component to return terms and document frequency of those
1296        terms
1297     -->
1298   <searchComponent name="terms" class="solr.TermsComponent"/>
1299
1300   <!-- A request handler for demonstrating the terms component -->
1301   <requestHandler name="/terms" class="solr.SearchHandler" startup="lazy">
1302      <lst name="defaults">
1303       <bool name="terms">true</bool>
1304     </lst>     
1305     <arr name="components">
1306       <str>terms</str>
1307     </arr>
1308   </requestHandler>
1309
1310
1311   <!-- Query Elevation Component
1312
1313        http://wiki.apache.org/solr/QueryElevationComponent
1314
1315        a search component that enables you to configure the top
1316        results for a given query regardless of the normal lucene
1317        scoring.
1318     -->
1319   <searchComponent name="elevator" class="solr.QueryElevationComponent" >
1320     <!-- pick a fieldType to analyze queries -->
1321     <str name="queryFieldType">string</str>
1322     <str name="config-file">elevate.xml</str>
1323   </searchComponent>
1324
1325   <!-- A request handler for demonstrating the elevator component -->
1326   <requestHandler name="/elevate" class="solr.SearchHandler" startup="lazy">
1327     <lst name="defaults">
1328       <str name="echoParams">explicit</str>
1329     </lst>
1330     <arr name="last-components">
1331       <str>elevator</str>
1332     </arr>
1333   </requestHandler>
1334
1335   <!-- Highlighting Component
1336
1337        http://wiki.apache.org/solr/HighlightingParameters
1338     -->
1339   <searchComponent class="solr.HighlightComponent" name="highlight">
1340     <highlighting>
1341       <!-- Configure the standard fragmenter -->
1342       <!-- This could most likely be commented out in the "default" case -->
1343       <fragmenter name="gap" 
1344                   default="true"
1345                   class="solr.highlight.GapFragmenter">
1346         <lst name="defaults">
1347           <int name="hl.fragsize">100</int>
1348         </lst>
1349       </fragmenter>
1350
1351       <!-- A regular-expression-based fragmenter 
1352            (for sentence extraction) 
1353         -->
1354       <fragmenter name="regex" 
1355                   class="solr.highlight.RegexFragmenter">
1356         <lst name="defaults">
1357           <!-- slightly smaller fragsizes work better because of slop -->
1358           <int name="hl.fragsize">70</int>
1359           <!-- allow 50% slop on fragment sizes -->
1360           <float name="hl.regex.slop">0.5</float>
1361           <!-- a basic sentence pattern -->
1362           <str name="hl.regex.pattern">[-\w ,/\n\&quot;&apos;]{20,200}</str>
1363         </lst>
1364       </fragmenter>
1365
1366       <!-- Configure the standard formatter -->
1367       <formatter name="html" 
1368                  default="true"
1369                  class="solr.highlight.HtmlFormatter">
1370         <lst name="defaults">
1371           <str name="hl.simple.pre"><![CDATA[<em>]]></str>
1372           <str name="hl.simple.post"><![CDATA[</em>]]></str>
1373         </lst>
1374       </formatter>
1375
1376       <!-- Configure the standard encoder -->
1377       <encoder name="html" 
1378                class="solr.highlight.HtmlEncoder" />
1379
1380       <!-- Configure the standard fragListBuilder -->
1381       <fragListBuilder name="simple" 
1382                        default="true"
1383                        class="solr.highlight.SimpleFragListBuilder"/>
1384
1385       <!-- Configure the single fragListBuilder -->
1386       <fragListBuilder name="single" 
1387                        class="solr.highlight.SingleFragListBuilder"/>
1388
1389       <!-- default tag FragmentsBuilder -->
1390       <fragmentsBuilder name="default" 
1391                         default="true"
1392                         class="solr.highlight.ScoreOrderFragmentsBuilder">
1393         <!-- 
1394         <lst name="defaults">
1395           <str name="hl.multiValuedSeparatorChar">/</str>
1396         </lst>
1397         -->
1398       </fragmentsBuilder>
1399
1400       <!-- multi-colored tag FragmentsBuilder -->
1401       <fragmentsBuilder name="colored" 
1402                         class="solr.highlight.ScoreOrderFragmentsBuilder">
1403         <lst name="defaults">
1404           <str name="hl.tag.pre"><![CDATA[
1405                <b style="background:yellow">,<b style="background:lawgreen">,
1406                <b style="background:aquamarine">,<b style="background:magenta">,
1407                <b style="background:palegreen">,<b style="background:coral">,
1408                <b style="background:wheat">,<b style="background:khaki">,
1409                <b style="background:lime">,<b style="background:deepskyblue">]]></str>
1410           <str name="hl.tag.post"><![CDATA[</b>]]></str>
1411         </lst>
1412       </fragmentsBuilder>
1413     </highlighting>
1414   </searchComponent>
1415
1416   <!-- Update Processors
1417
1418        Chains of Update Processor Factories for dealing with Update
1419        Requests can be declared, and then used by name in Update
1420        Request Processors
1421
1422        http://wiki.apache.org/solr/UpdateRequestProcessor
1423
1424     --> 
1425   <!-- Deduplication
1426
1427        An example dedup update processor that creates the "id" field
1428        on the fly based on the hash code of some other fields.  This
1429        example has overwriteDupes set to false since we are using the
1430        id field as the signatureField and Solr will maintain
1431        uniqueness based on that anyway.  
1432        
1433     -->
1434   <!--
1435      <updateRequestProcessorChain name="dedupe">
1436        <processor class="solr.processor.SignatureUpdateProcessorFactory">
1437          <bool name="enabled">true</bool>
1438          <str name="signatureField">id</str>
1439          <bool name="overwriteDupes">false</bool>
1440          <str name="fields">name,features,cat</str>
1441          <str name="signatureClass">solr.processor.Lookup3Signature</str>
1442        </processor>
1443        <processor class="solr.LogUpdateProcessorFactory" />
1444        <processor class="solr.RunUpdateProcessorFactory" />
1445      </updateRequestProcessorChain>
1446     -->
1447
1448   <!-- Response Writers
1449
1450        http://wiki.apache.org/solr/QueryResponseWriter
1451
1452        Request responses will be written using the writer specified by
1453        the 'wt' request parameter matching the name of a registered
1454        writer.
1455
1456        The "default" writer is the default and will be used if 'wt' is
1457        not specified in the request.
1458     -->
1459   <!-- The following response writers are implicitly configured unless
1460        overridden...
1461     -->
1462   <!--
1463      <queryResponseWriter name="xml" 
1464                           default="true"
1465                           class="solr.XMLResponseWriter" />
1466      <queryResponseWriter name="json" class="solr.JSONResponseWriter"/>
1467      <queryResponseWriter name="python" class="solr.PythonResponseWriter"/>
1468      <queryResponseWriter name="ruby" class="solr.RubyResponseWriter"/>
1469      <queryResponseWriter name="php" class="solr.PHPResponseWriter"/>
1470      <queryResponseWriter name="phps" class="solr.PHPSerializedResponseWriter"/>
1471      <queryResponseWriter name="velocity" class="solr.VelocityResponseWriter"/>
1472      <queryResponseWriter name="csv" class="solr.CSVResponseWriter"/>
1473     -->
1474   <!--
1475      Custom response writers can be declared as needed...
1476     -->
1477   <!--
1478      <queryResponseWriter name="custom" class="com.example.MyResponseWriter"/>
1479     -->
1480
1481   <!-- XSLT response writer transforms the XML output by any xslt file found
1482        in Solr's conf/xslt directory.  Changes to xslt files are checked for
1483        every xsltCacheLifetimeSeconds.  
1484     -->
1485   <queryResponseWriter name="xslt" class="solr.XSLTResponseWriter">
1486     <int name="xsltCacheLifetimeSeconds">5</int>
1487   </queryResponseWriter>
1488
1489   <!-- Query Parsers
1490
1491        http://wiki.apache.org/solr/SolrQuerySyntax
1492
1493        Multiple QParserPlugins can be registered by name, and then
1494        used in either the "defType" param for the QueryComponent (used
1495        by SearchHandler) or in LocalParams
1496     -->
1497   <!-- example of registering a query parser -->
1498   <!--
1499      <queryParser name="myparser" class="com.mycompany.MyQParserPlugin"/>
1500     -->
1501
1502   <!-- Function Parsers
1503
1504        http://wiki.apache.org/solr/FunctionQuery
1505
1506        Multiple ValueSourceParsers can be registered by name, and then
1507        used as function names when using the "func" QParser.
1508     -->
1509   <!-- example of registering a custom function parser  -->
1510   <!--
1511      <valueSourceParser name="myfunc" 
1512                         class="com.mycompany.MyValueSourceParser" />
1513     -->
1514
1515   <!-- Legacy config for the admin interface -->
1516   <admin>
1517     <defaultQuery>*:*</defaultQuery>
1518
1519     <!-- configure a healthcheck file for servers behind a
1520          loadbalancer 
1521       -->
1522     <!--
1523        <healthcheck type="file">server-enabled</healthcheck>
1524       -->
1525   </admin>
1526
1527 </config>