Project

General

Profile

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>$luceneMatchVersion$</luceneMatchVersion>
39

    
40
	<!-- <lib/> directives can be used to instruct Solr to load any 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="\${solr.install.dir:../../../..}/contrib/extraction/lib" regex=".*\.jar" />
76
	<lib dir="\${solr.install.dir:../../../..}/dist/" regex="solr-cell-\d.*\.jar" />
77

    
78
	<lib dir="\${solr.install.dir:../../../..}/contrib/clustering/lib/" regex=".*\.jar" />
79
	<lib dir="\${solr.install.dir:../../../..}/dist/" regex="solr-clustering-\d.*\.jar" />
80

    
81
	<lib dir="\${solr.install.dir:../../../..}/contrib/langid/lib/" regex=".*\.jar" />
82
	<lib dir="\${solr.install.dir:../../../..}/dist/" regex="solr-langid-\d.*\.jar" />
83

    
84
	<lib dir="\${solr.install.dir:../../../..}/contrib/velocity/lib" regex=".*\.jar" />
85
	<lib dir="\${solr.install.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, it's 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
		 A "compressionMode" string element can be added to <codecFactory> to choose
131
		 between the existing compression modes in the default codec: "BEST_SPEED" (default)
132
		 or "BEST_COMPRESSION".
133
	-->
134
	<codecFactory class="solr.SchemaCodecFactory"/>
135

    
136
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
137
		 Index Config - These settings control low-level behavior of indexing
138
		 Most example settings here show the default value, but are commented
139
		 out, to more easily see where customizations have been made.
140

    
141
		 Note: This replaces <indexDefaults> and <mainIndex> from older versions
142
		 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
143
	<indexConfig>
144
		<!-- maxFieldLength was removed in 4.0. To get similar behavior, include a
145
			 LimitTokenCountFilterFactory in your fieldType definition. E.g.
146
		 <filter class="solr.LimitTokenCountFilterFactory" maxTokenCount="10000"/>
147
		-->
148
		<!-- Maximum time to wait for a write lock (ms) for an IndexWriter. Default: 1000 -->
149
		<!-- <writeLockTimeout>1000</writeLockTimeout>  -->
150

    
151
		<!-- Expert: Enabling compound file will use less files for the index,
152
			 using fewer file descriptors on the expense of performance decrease.
153
			 Default in Lucene is "true". Default in Solr is "false" (since 3.6) -->
154
		<!-- <useCompoundFile>false</useCompoundFile> -->
155

    
156
		<!-- ramBufferSizeMB sets the amount of RAM that may be used by Lucene
157
			 indexing for buffering added documents and deletions before they are
158
			 flushed to the Directory.
159
			 maxBufferedDocs sets a limit on the number of documents buffered
160
			 before flushing.
161
			 If both ramBufferSizeMB and maxBufferedDocs is set, then
162
			 Lucene will flush based on whichever limit is hit first.  -->
163
		<!-- <ramBufferSizeMB>100</ramBufferSizeMB> -->
164
		<!-- <maxBufferedDocs>1000</maxBufferedDocs> -->
165

    
166
		<!-- Expert: Merge Policy
167
			 The Merge Policy in Lucene controls how merging of segments is done.
168
			 The default since Solr/Lucene 3.3 is TieredMergePolicy.
169
			 The default since Lucene 2.3 was the LogByteSizeMergePolicy,
170
			 Even older versions of Lucene used LogDocMergePolicy.
171
		  -->
172
		<!--
173
			<mergePolicyFactory class="org.apache.solr.index.TieredMergePolicyFactory">
174
			  <int name="maxMergeAtOnce">10</int>
175
			  <int name="segmentsPerTier">10</int>
176
			  <double name="noCFSRatio">0.1</double>
177
			</mergePolicyFactory>
178
		  -->
179

    
180
		<!-- Expert: Merge Scheduler
181
			 The Merge Scheduler in Lucene controls how merges are
182
			 performed.  The ConcurrentMergeScheduler (Lucene 2.3 default)
183
			 can perform merges in the background using separate threads.
184
			 The SerialMergeScheduler (Lucene 2.2 default) does not.
185
		 -->
186
		<!--
187
		   <mergeScheduler class="org.apache.lucene.index.ConcurrentMergeScheduler"/>
188
		   -->
189

    
190
		<!-- LockFactory
191

    
192
			 This option specifies which Lucene LockFactory implementation
193
			 to use.
194

    
195
			 single = SingleInstanceLockFactory - suggested for a
196
					  read-only index or when there is no possibility of
197
					  another process trying to modify the index.
198
			 native = NativeFSLockFactory - uses OS native file locking.
199
					  Do not use when multiple solr webapps in the same
200
					  JVM are attempting to share a single index.
201
			 simple = SimpleFSLockFactory  - uses a plain file for locking
202

    
203
			 Defaults: 'native' is default for Solr3.6 and later, otherwise
204
					   'simple' is the default
205

    
206
			 More details on the nuances of each LockFactory...
207
			 http://wiki.apache.org/lucene-java/AvailableLockFactories
208
		-->
209
		<lockType>\${solr.lock.type:native}</lockType>
210

    
211
		<!-- Commit Deletion Policy
212
			 Custom deletion policies can be specified here. The class must
213
			 implement org.apache.lucene.index.IndexDeletionPolicy.
214

    
215
			 The default Solr IndexDeletionPolicy implementation supports
216
			 deleting index commit points on number of commits, age of
217
			 commit point and optimized status.
218

    
219
			 The latest commit point should always be preserved regardless
220
			 of the criteria.
221
		-->
222
		<!--
223
		<deletionPolicy class="solr.SolrDeletionPolicy">
224
		-->
225
		<!-- The number of commit points to be kept -->
226
		<!-- <str name="maxCommitsToKeep">1</str> -->
227
		<!-- The number of optimized commit points to be kept -->
228
		<!-- <str name="maxOptimizedCommitsToKeep">0</str> -->
229
		<!--
230
			Delete all commit points once they have reached the given age.
231
			Supports DateMathParser syntax e.g.
232
		  -->
233
		<!--
234
		   <str name="maxCommitAge">30MINUTES</str>
235
		   <str name="maxCommitAge">1DAY</str>
236
		-->
237
		<!--
238
		</deletionPolicy>
239
		-->
240

    
241
		<!-- Lucene Infostream
242

    
243
			 To aid in advanced debugging, Lucene provides an "InfoStream"
244
			 of detailed information when indexing.
245

    
246
			 Setting The value to true will instruct the underlying Lucene
247
			 IndexWriter to write its debugging info the specified file
248
		  -->
249
		<!-- <infoStream file="INFOSTREAM.txt">false</infoStream> -->
250
	</indexConfig>
251

    
252

    
253
	<!-- JMX
254

    
255
		 This example enables JMX if and only if an existing MBeanServer
256
		 is found, use this if you want to configure JMX through JVM
257
		 parameters. Remove this to disable exposing Solr configuration
258
		 and statistics to JMX.
259

    
260
		 For more details see http://wiki.apache.org/solr/SolrJmx
261
	  -->
262
	<jmx />
263
	<!-- If you want to connect to a particular server, specify the
264
		 agentId
265
	  -->
266
	<!-- <jmx agentId="myAgent" /> -->
267
	<!-- If you want to start a new MBeanServer, specify the serviceUrl -->
268
	<!-- <jmx serviceUrl="service:jmx:rmi:///jndi/rmi://localhost:9999/solr"/>
269
	  -->
270

    
271
	<!-- The default high-performance update handler -->
272
	<updateHandler class="solr.DirectUpdateHandler2">
273

    
274
		<!-- Enables a transaction log, used for real-time get, durability, and
275
			 and solr cloud replica recovery.  The log can grow as big as
276
			 uncommitted changes to the index, so use of a hard autoCommit
277
			 is recommended (see below).
278
			 "dir" - the target directory for transaction logs, defaults to the
279
					solr data directory.
280
			 "numVersionBuckets" - sets the number of buckets used to keep
281
					track of max version values when checking for re-ordered
282
					updates; increase this value to reduce the cost of
283
					synchronizing access to version buckets during high-volume
284
					indexing, this requires 8 bytes (long) * numVersionBuckets
285
					of heap space per Solr core.
286
		-->
287
		<updateLog>
288
			<str name="dir">\${solr.ulog.dir:}</str>
289
			<int name="numVersionBuckets">\${solr.ulog.numVersionBuckets:65536}</int>
290
		</updateLog>
291

    
292
		<!-- AutoCommit
293

    
294
			 Perform a hard commit automatically under certain conditions.
295
			 Instead of enabling autoCommit, consider using "commitWithin"
296
			 when adding documents.
297

    
298
			 http://wiki.apache.org/solr/UpdateXmlMessages
299

    
300
			 maxDocs - Maximum number of documents to add since the last
301
					   commit before automatically triggering a new commit.
302

    
303
			 maxTime - Maximum amount of time in ms that is allowed to pass
304
					   since a document was added before automatically
305
					   triggering a new commit.
306
			 openSearcher - if false, the commit causes recent index changes
307
			   to be flushed to stable storage, but does not cause a new
308
			   searcher to be opened to make those changes visible.
309

    
310
			 If the updateLog is enabled, then it's highly recommended to
311
			 have some sort of hard autoCommit to limit the log size.
312
		  -->
313
		<autoCommit>
314
			<maxTime>\${solr.autoCommit.maxTime:15000}</maxTime>
315
			<openSearcher>false</openSearcher>
316
		</autoCommit>
317

    
318
		<!-- softAutoCommit is like autoCommit except it causes a
319
			 'soft' commit which only ensures that changes are visible
320
			 but does not ensure that data is synced to disk.  This is
321
			 faster and more near-realtime friendly than a hard commit.
322
		  -->
323

    
324
		<autoSoftCommit>
325
			<maxTime>\${solr.autoSoftCommit.maxTime:-1}</maxTime>
326
		</autoSoftCommit>
327

    
328
		<!-- Update Related Event Listeners
329

    
330
			 Various IndexWriter related events can trigger Listeners to
331
			 take actions.
332

    
333
			 postCommit - fired after every commit or optimize command
334
			 postOptimize - fired after every optimize command
335
		  -->
336
		<!-- The RunExecutableListener executes an external command from a
337
			 hook such as postCommit or postOptimize.
338

    
339
			 exe - the name of the executable to run
340
			 dir - dir to use as the current working directory. (default=".")
341
			 wait - the calling thread waits until the executable returns.
342
					(default="true")
343
			 args - the arguments to pass to the program.  (default is none)
344
			 env - environment variables to set.  (default is none)
345
		  -->
346
		<!-- This example shows how RunExecutableListener could be used
347
			 with the script based replication...
348
			 http://wiki.apache.org/solr/CollectionDistribution
349
		  -->
350
		<!--
351
		   <listener event="postCommit" class="solr.RunExecutableListener">
352
			 <str name="exe">solr/bin/snapshooter</str>
353
			 <str name="dir">.</str>
354
			 <bool name="wait">true</bool>
355
			 <arr name="args"> <str>arg1</str> <str>arg2</str> </arr>
356
			 <arr name="env"> <str>MYVAR=val1</str> </arr>
357
		   </listener>
358
		  -->
359

    
360
	</updateHandler>
361

    
362
	<!-- IndexReaderFactory
363

    
364
		 Use the following format to specify a custom IndexReaderFactory,
365
		 which allows for alternate IndexReader implementations.
366

    
367
		 ** Experimental Feature **
368

    
369
		 Please note - Using a custom IndexReaderFactory may prevent
370
		 certain other features from working. The API to
371
		 IndexReaderFactory may change without warning or may even be
372
		 removed from future releases if the problems cannot be
373
		 resolved.
374

    
375

    
376
		 ** Features that may not work with custom IndexReaderFactory **
377

    
378
		 The ReplicationHandler assumes a disk-resident index. Using a
379
		 custom IndexReader implementation may cause incompatibility
380
		 with ReplicationHandler and may cause replication to not work
381
		 correctly. See SOLR-1366 for details.
382

    
383
	  -->
384
	<!--
385
	<indexReaderFactory name="IndexReaderFactory" class="package.class">
386
	  <str name="someArg">Some Value</str>
387
	</indexReaderFactory >
388
	-->
389

    
390
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
391
		 Query section - these settings control query time things like caches
392
		 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
393
	<query>
394
		<!-- Max Boolean Clauses
395

    
396
			 Maximum number of clauses in each BooleanQuery,  an exception
397
			 is thrown if exceeded.
398

    
399
			 ** WARNING **
400

    
401
			 This option actually modifies a global Lucene property that
402
			 will affect all SolrCores.  If multiple solrconfig.xml files
403
			 disagree on this property, the value at any given moment will
404
			 be based on the last SolrCore to be initialized.
405

    
406
		  -->
407
		<maxBooleanClauses>1024</maxBooleanClauses>
408

    
409

    
410
		<!-- Solr Internal Query Caches
411

    
412
			 There are two implementations of cache available for Solr,
413
			 LRUCache, based on a synchronized LinkedHashMap, and
414
			 FastLRUCache, based on a ConcurrentHashMap.
415

    
416
			 FastLRUCache has faster gets and slower puts in single
417
			 threaded operation and thus is generally faster than LRUCache
418
			 when the hit ratio of the cache is high (> 75%), and may be
419
			 faster under other scenarios on multi-cpu systems.
420
		-->
421

    
422
		<!-- Filter Cache
423

    
424
			 Cache used by SolrIndexSearcher for filters (DocSets),
425
			 unordered sets of *all* documents that match a query.  When a
426
			 new searcher is opened, its caches may be prepopulated or
427
			 "autowarmed" using data from caches in the old searcher.
428
			 autowarmCount is the number of items to prepopulate.  For
429
			 LRUCache, the autowarmed items will be the most recently
430
			 accessed items.
431

    
432
			 Parameters:
433
			   class - the SolrCache implementation LRUCache or
434
				   (LRUCache or FastLRUCache)
435
			   size - the maximum number of entries in the cache
436
			   initialSize - the initial capacity (number of entries) of
437
				   the cache.  (see java.util.HashMap)
438
			   autowarmCount - the number of entries to prepopulate from
439
				   and old cache.
440
			   maxRamMB - the maximum amount of RAM (in MB) that this cache is allowed
441
						  to occupy. Note that when this option is specified, the size
442
						  and initialSize parameters are ignored.
443
		  -->
444
		<filterCache class="solr.FastLRUCache"
445
		             size="512"
446
		             initialSize="512"
447
		             autowarmCount="0"/>
448

    
449
		<!-- Query Result Cache
450

    
451
			 Caches results of searches - ordered lists of document ids
452
			 (DocList) based on a query, a sort, and the range of documents requested.
453
			 Additional supported parameter by LRUCache:
454
				maxRamMB - the maximum amount of RAM (in MB) that this cache is allowed
455
						   to occupy
456
		  -->
457
		<queryResultCache class="solr.LRUCache"
458
		                  size="512"
459
		                  initialSize="512"
460
		                  autowarmCount="0"/>
461

    
462
		<!-- Document Cache
463

    
464
			 Caches Lucene Document objects (the stored fields for each
465
			 document).  Since Lucene internal document ids are transient,
466
			 this cache will not be autowarmed.
467
		  -->
468
		<documentCache class="solr.LRUCache"
469
		               size="512"
470
		               initialSize="512"
471
		               autowarmCount="0"/>
472

    
473
		<!-- custom cache currently used by block join -->
474
		<cache name="perSegFilter"
475
		       class="solr.search.LRUCache"
476
		       size="10"
477
		       initialSize="0"
478
		       autowarmCount="10"
479
		       regenerator="solr.NoOpRegenerator" />
480

    
481
		<!-- Field Value Cache
482

    
483
			 Cache used to hold field values that are quickly accessible
484
			 by document id.  The fieldValueCache is created by default
485
			 even if not configured here.
486
		  -->
487
		<!--
488
		   <fieldValueCache class="solr.FastLRUCache"
489
							size="512"
490
							autowarmCount="128"
491
							showItems="32" />
492
		  -->
493

    
494
		<!-- Custom Cache
495

    
496
			 Example of a generic cache.  These caches may be accessed by
497
			 name through SolrIndexSearcher.getCache(),cacheLookup(), and
498
			 cacheInsert().  The purpose is to enable easy caching of
499
			 user/application level data.  The regenerator argument should
500
			 be specified as an implementation of solr.CacheRegenerator
501
			 if autowarming is desired.
502
		  -->
503
		<!--
504
		   <cache name="myUserCache"
505
				  class="solr.LRUCache"
506
				  size="4096"
507
				  initialSize="1024"
508
				  autowarmCount="1024"
509
				  regenerator="com.mycompany.MyRegenerator"
510
				  />
511
		  -->
512

    
513

    
514
		<!-- Lazy Field Loading
515

    
516
			 If true, stored fields that are not requested will be loaded
517
			 lazily.  This can result in a significant speed improvement
518
			 if the usual case is to not load all stored fields,
519
			 especially if the skipped fields are large compressed text
520
			 fields.
521
		-->
522
		<enableLazyFieldLoading>true</enableLazyFieldLoading>
523

    
524
		<!-- Use Filter For Sorted Query
525

    
526
			 A possible optimization that attempts to use a filter to
527
			 satisfy a search.  If the requested sort does not include
528
			 score, then the filterCache will be checked for a filter
529
			 matching the query. If found, the filter will be used as the
530
			 source of document ids, and then the sort will be applied to
531
			 that.
532

    
533
			 For most situations, this will not be useful unless you
534
			 frequently get the same search repeatedly with different sort
535
			 options, and none of them ever use "score"
536
		  -->
537
		<!--
538
		   <useFilterForSortedQuery>true</useFilterForSortedQuery>
539
		  -->
540

    
541
		<!-- Result Window Size
542

    
543
			 An optimization for use with the queryResultCache.  When a search
544
			 is requested, a superset of the requested number of document ids
545
			 are collected.  For example, if a search for a particular query
546
			 requests matching documents 10 through 19, and queryWindowSize is 50,
547
			 then documents 0 through 49 will be collected and cached.  Any further
548
			 requests in that range can be satisfied via the cache.
549
		  -->
550
		<queryResultWindowSize>20</queryResultWindowSize>
551

    
552
		<!-- Maximum number of documents to cache for any entry in the
553
			 queryResultCache.
554
		  -->
555
		<queryResultMaxDocsCached>200</queryResultMaxDocsCached>
556

    
557
		<!-- Query Related Event Listeners
558

    
559
			 Various IndexSearcher related events can trigger Listeners to
560
			 take actions.
561

    
562
			 newSearcher - fired whenever a new searcher is being prepared
563
			 and there is a current searcher handling requests (aka
564
			 registered).  It can be used to prime certain caches to
565
			 prevent long request times for certain requests.
566

    
567
			 firstSearcher - fired whenever a new searcher is being
568
			 prepared but there is no current registered searcher to handle
569
			 requests or to gain autowarming data from.
570

    
571

    
572
		  -->
573
		<!-- QuerySenderListener takes an array of NamedList and executes a
574
			 local query request for each NamedList in sequence.
575
		  -->
576
		<listener event="newSearcher" class="solr.QuerySenderListener">
577
			<arr name="queries">
578
				<!--
579
				   <lst><str name="q">solr</str><str name="sort">price asc</str></lst>
580
				   <lst><str name="q">rocks</str><str name="sort">weight asc</str></lst>
581
				  -->
582
			</arr>
583
		</listener>
584
		<listener event="firstSearcher" class="solr.QuerySenderListener">
585
			<arr name="queries">
586
				<!--
587
				<lst>
588
				  <str name="q">static firstSearcher warming in solrconfig.xml</str>
589
				</lst>
590
				-->
591
			</arr>
592
		</listener>
593

    
594
		<!-- Use Cold Searcher
595

    
596
			 If a search request comes in and there is no current
597
			 registered searcher, then immediately register the still
598
			 warming searcher and use it.  If "false" then all requests
599
			 will block until the first searcher is done warming.
600
		  -->
601
		<useColdSearcher>false</useColdSearcher>
602

    
603
	</query>
604

    
605

    
606
	<!-- Request Dispatcher
607

    
608
		 This section contains instructions for how the SolrDispatchFilter
609
		 should behave when processing requests for this SolrCore.
610

    
611
		 handleSelect is a legacy option that affects the behavior of requests
612
		 such as /select?qt=XXX
613

    
614
		 handleSelect="true" will cause the SolrDispatchFilter to process
615
		 the request and dispatch the query to a handler specified by the
616
		 "qt" param, assuming "/select" isn't already registered.
617

    
618
		 handleSelect="false" will cause the SolrDispatchFilter to
619
		 ignore "/select" requests, resulting in a 404 unless a handler
620
		 is explicitly registered with the name "/select"
621

    
622
		 handleSelect="true" is not recommended for new users, but is the default
623
		 for backwards compatibility
624
	  -->
625
	<requestDispatcher handleSelect="false" >
626
		<!-- Request Parsing
627

    
628
			 These settings indicate how Solr Requests may be parsed, and
629
			 what restrictions may be placed on the ContentStreams from
630
			 those requests
631

    
632
			 enableRemoteStreaming - enables use of the stream.file
633
			 and stream.url parameters for specifying remote streams.
634

    
635
			 multipartUploadLimitInKB - specifies the max size (in KiB) of
636
			 Multipart File Uploads that Solr will allow in a Request.
637

    
638
			 formdataUploadLimitInKB - specifies the max size (in KiB) of
639
			 form data (application/x-www-form-urlencoded) sent via
640
			 POST. You can use POST to pass request parameters not
641
			 fitting into the URL.
642

    
643
			 addHttpRequestToContext - if set to true, it will instruct
644
			 the requestParsers to include the original HttpServletRequest
645
			 object in the context map of the SolrQueryRequest under the
646
			 key "httpRequest". It will not be used by any of the existing
647
			 Solr components, but may be useful when developing custom
648
			 plugins.
649

    
650
			 *** WARNING ***
651
			 The settings below authorize Solr to fetch remote files, You
652
			 should make sure your system has some authentication before
653
			 using enableRemoteStreaming="true"
654

    
655
		  -->
656
		<requestParsers enableRemoteStreaming="true"
657
		                multipartUploadLimitInKB="2048000"
658
		                formdataUploadLimitInKB="2048"
659
		                addHttpRequestToContext="false"/>
660

    
661
		<!-- HTTP Caching
662

    
663
			 Set HTTP caching related parameters (for proxy caches and clients).
664

    
665
			 The options below instruct Solr not to output any HTTP Caching
666
			 related headers
667
		  -->
668
		<httpCaching never304="true" />
669
		<!-- If you include a <cacheControl> directive, it will be used to
670
			 generate a Cache-Control header (as well as an Expires header
671
			 if the value contains "max-age=")
672

    
673
			 By default, no Cache-Control header is generated.
674

    
675
			 You can use the <cacheControl> option even if you have set
676
			 never304="true"
677
		  -->
678
		<!--
679
		   <httpCaching never304="true" >
680
			 <cacheControl>max-age=30, public</cacheControl>
681
		   </httpCaching>
682
		  -->
683
		<!-- To enable Solr to respond with automatically generated HTTP
684
			 Caching headers, and to response to Cache Validation requests
685
			 correctly, set the value of never304="false"
686

    
687
			 This will cause Solr to generate Last-Modified and ETag
688
			 headers based on the properties of the Index.
689

    
690
			 The following options can also be specified to affect the
691
			 values of these headers...
692

    
693
			 lastModFrom - the default value is "openTime" which means the
694
			 Last-Modified value (and validation against If-Modified-Since
695
			 requests) will all be relative to when the current Searcher
696
			 was opened.  You can change it to lastModFrom="dirLastMod" if
697
			 you want the value to exactly correspond to when the physical
698
			 index was last modified.
699

    
700
			 etagSeed="..." is an option you can change to force the ETag
701
			 header (and validation against If-None-Match requests) to be
702
			 different even if the index has not changed (ie: when making
703
			 significant changes to your config file)
704

    
705
			 (lastModifiedFrom and etagSeed are both ignored if you use
706
			 the never304="true" option)
707
		  -->
708
		<!--
709
		   <httpCaching lastModifiedFrom="openTime"
710
						etagSeed="Solr">
711
			 <cacheControl>max-age=30, public</cacheControl>
712
		   </httpCaching>
713
		  -->
714
	</requestDispatcher>
715

    
716
	<!-- Request Handlers
717

    
718
		 http://wiki.apache.org/solr/SolrRequestHandler
719

    
720
		 Incoming queries will be dispatched to a specific handler by name
721
		 based on the path specified in the request.
722

    
723
		 Legacy behavior: If the request path uses "/select" but no Request
724
		 Handler has that name, and if handleSelect="true" has been specified in
725
		 the requestDispatcher, then the Request Handler is dispatched based on
726
		 the qt parameter.  Handlers without a leading '/' are accessed this way
727
		 like so: http://host/app/[core/]select?qt=name  If no qt is
728
		 given, then the requestHandler that declares default="true" will be
729
		 used or the one named "standard".
730

    
731
		 If a Request Handler is declared with startup="lazy", then it will
732
		 not be initialized until the first request that uses it.
733

    
734
	  -->
735
	<!-- SearchHandler
736

    
737
		 http://wiki.apache.org/solr/SearchHandler
738

    
739
		 For processing Search Queries, the primary Request Handler
740
		 provided with Solr is "SearchHandler" It delegates to a sequent
741
		 of SearchComponents (see below) and supports distributed
742
		 queries across multiple shards
743
	  -->
744
	<requestHandler name="/select" class="solr.SearchHandler">
745
		<!-- default values for query parameters can be specified, these
746
			 will be overridden by parameters in the request
747
		  -->
748
		<lst name="defaults">
749
			<str name="echoParams">explicit</str>
750
			<str name="q.op">AND</str>
751
			<int name="rows">10</int>
752
			<!-- <str name="df">text</str> -->
753
		</lst>
754
		<!-- In addition to defaults, "appends" params can be specified
755
			 to identify values which should be appended to the list of
756
			 multi-val params from the query (or the existing "defaults").
757
		  -->
758
		<!-- In this example, the param "fq=instock:true" would be appended to
759
			 any query time fq params the user may specify, as a mechanism for
760
			 partitioning the index, independent of any user selected filtering
761
			 that may also be desired (perhaps as a result of faceted searching).
762

    
763
			 NOTE: there is *absolutely* nothing a client can do to prevent these
764
			 "appends" values from being used, so don't use this mechanism
765
			 unless you are sure you always want it.
766
		  -->
767
		<!--
768
		   <lst name="appends">
769
			 <str name="fq">inStock:true</str>
770
		   </lst>
771
		  -->
772
		<!-- "invariants" are a way of letting the Solr maintainer lock down
773
			 the options available to Solr clients.  Any params values
774
			 specified here are used regardless of what values may be specified
775
			 in either the query, the "defaults", or the "appends" params.
776

    
777
			 In this example, the facet.field and facet.query params would
778
			 be fixed, limiting the facets clients can use.  Faceting is
779
			 not turned on by default - but if the client does specify
780
			 facet=true in the request, these are the only facets they
781
			 will be able to see counts for; regardless of what other
782
			 facet.field or facet.query params they may specify.
783

    
784
			 NOTE: there is *absolutely* nothing a client can do to prevent these
785
			 "invariants" values from being used, so don't use this mechanism
786
			 unless you are sure you always want it.
787
		  -->
788
		<!--
789
		   <lst name="invariants">
790
			 <str name="facet.field">cat</str>
791
			 <str name="facet.field">manu_exact</str>
792
			 <str name="facet.query">price:[* TO 500]</str>
793
			 <str name="facet.query">price:[500 TO *]</str>
794
		   </lst>
795
		  -->
796
		<!-- If the default list of SearchComponents is not desired, that
797
			 list can either be overridden completely, or components can be
798
			 prepended or appended to the default list.  (see below)
799
		  -->
800
		<!--
801
		   <arr name="components">
802
			 <str>nameOfCustomComponent1</str>
803
			 <str>nameOfCustomComponent2</str>
804
		   </arr>
805
		  -->
806
	</requestHandler>
807

    
808
	<!-- A request handler that returns indented JSON by default -->
809
	<requestHandler name="/query" class="solr.SearchHandler">
810
		<lst name="defaults">
811
			<str name="echoParams">explicit</str>
812
			<str name="wt">json</str>
813
			<str name="indent">true</str>
814
		</lst>
815
	</requestHandler>
816

    
817

    
818
	<!-- A Robust Example
819

    
820
		 This example SearchHandler declaration shows off usage of the
821
		 SearchHandler with many defaults declared
822

    
823
		 Note that multiple instances of the same Request Handler
824
		 (SearchHandler) can be registered multiple times with different
825
		 names (and different init parameters)
826
	  -->
827
	<requestHandler name="/browse" class="solr.SearchHandler" useParams="query,facets,velocity,browse">
828
		<lst name="defaults">
829
			<str name="echoParams">explicit</str>
830
		</lst>
831
	</requestHandler>
832

    
833
	<initParams path="/update/**,/query,/select,/tvrh,/elevate,/spell,/browse">
834
		<lst name="defaults">
835
			<str name="df">__all</str>
836
		</lst>
837
	</initParams>
838

    
839
	<!-- This enabled schemaless mode
840
	<initParams path="/update/**">
841
	  <lst name="defaults">
842
		<str name="update.chain">add-unknown-fields-to-the-schema</str>
843
	  </lst>
844
	</initParams>
845
	-->
846

    
847
	<!-- Solr Cell Update Request Handler
848

    
849
		 http://wiki.apache.org/solr/ExtractingRequestHandler
850

    
851
	  -->
852
	<requestHandler name="/update/extract"
853
	                startup="lazy"
854
	                class="solr.extraction.ExtractingRequestHandler" >
855
		<lst name="defaults">
856
			<str name="lowernames">true</str>
857
			<str name="fmap.meta">ignored_</str>
858
			<str name="fmap.content">__all</str>
859
		</lst>
860
	</requestHandler>
861
	<!-- Search Components
862

    
863
		 Search components are registered to SolrCore and used by
864
		 instances of SearchHandler (which can access them by name)
865

    
866
		 By default, the following components are available:
867

    
868
		 <searchComponent name="query"     class="solr.QueryComponent" />
869
		 <searchComponent name="facet"     class="solr.FacetComponent" />
870
		 <searchComponent name="mlt"       class="solr.MoreLikeThisComponent" />
871
		 <searchComponent name="highlight" class="solr.HighlightComponent" />
872
		 <searchComponent name="stats"     class="solr.StatsComponent" />
873
		 <searchComponent name="debug"     class="solr.DebugComponent" />
874

    
875
		 Default configuration in a requestHandler would look like:
876

    
877
		 <arr name="components">
878
		   <str>query</str>
879
		   <str>facet</str>
880
		   <str>mlt</str>
881
		   <str>highlight</str>
882
		   <str>stats</str>
883
		   <str>debug</str>
884
		 </arr>
885

    
886
		 If you register a searchComponent to one of the standard names,
887
		 that will be used instead of the default.
888

    
889
		 To insert components before or after the 'standard' components, use:
890

    
891
		 <arr name="first-components">
892
		   <str>myFirstComponentName</str>
893
		 </arr>
894

    
895
		 <arr name="last-components">
896
		   <str>myLastComponentName</str>
897
		 </arr>
898

    
899
		 NOTE: The component registered with the name "debug" will
900
		 always be executed after the "last-components"
901

    
902
	   -->
903

    
904
	<!-- Spell Check
905

    
906
		 The spell check component can return a list of alternative spelling
907
		 suggestions.
908

    
909
		 http://wiki.apache.org/solr/SpellCheckComponent
910
	  -->
911
	<searchComponent name="spellcheck" class="solr.SpellCheckComponent">
912

    
913
		<str name="queryAnalyzerFieldType">text_general</str>
914

    
915
		<!-- Multiple "Spell Checkers" can be declared and used by this
916
			 component
917
		  -->
918

    
919
		<!-- a spellchecker built from a field of the main index -->
920
		<lst name="spellchecker">
921
			<str name="name">default</str>
922
			<str name="field">__all</str>
923
			<str name="classname">solr.DirectSolrSpellChecker</str>
924
			<!-- the spellcheck distance measure used, the default is the internal levenshtein -->
925
			<str name="distanceMeasure">internal</str>
926
			<!-- minimum accuracy needed to be considered a valid spellcheck suggestion -->
927
			<float name="accuracy">0.5</float>
928
			<!-- the maximum #edits we consider when enumerating terms: can be 1 or 2 -->
929
			<int name="maxEdits">2</int>
930
			<!-- the minimum shared prefix when enumerating terms -->
931
			<int name="minPrefix">1</int>
932
			<!-- maximum number of inspections per result. -->
933
			<int name="maxInspections">5</int>
934
			<!-- minimum length of a query term to be considered for correction -->
935
			<int name="minQueryLength">4</int>
936
			<!-- maximum threshold of documents a query term can appear to be considered for correction -->
937
			<float name="maxQueryFrequency">0.01</float>
938
			<!-- uncomment this to require suggestions to occur in 1% of the documents
939
			  <float name="thresholdTokenFrequency">.01</float>
940
			-->
941
		</lst>
942

    
943
		<!-- a spellchecker that can break or combine words.  See "/spell" handler below for usage -->
944
		<!--
945
		<lst name="spellchecker">
946
		  <str name="name">wordbreak</str>
947
		  <str name="classname">solr.WordBreakSolrSpellChecker</str>
948
		  <str name="field">name</str>
949
		  <str name="combineWords">true</str>
950
		  <str name="breakWords">true</str>
951
		  <int name="maxChanges">10</int>
952
		</lst>
953
		-->
954
	</searchComponent>
955

    
956
	<!-- A request handler for demonstrating the spellcheck component.
957

    
958
		 NOTE: This is purely as an example.  The whole purpose of the
959
		 SpellCheckComponent is to hook it into the request handler that
960
		 handles your normal user queries so that a separate request is
961
		 not needed to get suggestions.
962

    
963
		 IN OTHER WORDS, THERE IS REALLY GOOD CHANCE THE SETUP BELOW IS
964
		 NOT WHAT YOU WANT FOR YOUR PRODUCTION SYSTEM!
965

    
966
		 See http://wiki.apache.org/solr/SpellCheckComponent for details
967
		 on the request parameters.
968
	  -->
969
	<requestHandler name="/spell" class="solr.SearchHandler" startup="lazy">
970
		<lst name="defaults">
971
			<!-- Solr will use suggestions from both the 'default' spellchecker
972
				 and from the 'wordbreak' spellchecker and combine them.
973
				 collations (re-written queries) can include a combination of
974
				 corrections from both spellcheckers -->
975
			<str name="spellcheck.dictionary">default</str>
976
			<str name="spellcheck">on</str>
977
			<str name="spellcheck.extendedResults">true</str>
978
			<str name="spellcheck.count">10</str>
979
			<str name="spellcheck.alternativeTermCount">5</str>
980
			<str name="spellcheck.maxResultsForSuggest">5</str>
981
			<str name="spellcheck.collate">true</str>
982
			<str name="spellcheck.collateExtendedResults">true</str>
983
			<str name="spellcheck.maxCollationTries">10</str>
984
			<str name="spellcheck.maxCollations">5</str>
985
		</lst>
986
		<arr name="last-components">
987
			<str>spellcheck</str>
988
		</arr>
989
	</requestHandler>
990

    
991
	<!-- Term Vector Component
992

    
993
		 http://wiki.apache.org/solr/TermVectorComponent
994
	  -->
995
	<searchComponent name="tvComponent" class="solr.TermVectorComponent"/>
996

    
997
	<!-- A request handler for demonstrating the term vector component
998

    
999
		 This is purely as an example.
1000

    
1001
		 In reality you will likely want to add the component to your
1002
		 already specified request handlers.
1003
	  -->
1004
	<requestHandler name="/tvrh" class="solr.SearchHandler" startup="lazy">
1005
		<lst name="defaults">
1006
			<bool name="tv">true</bool>
1007
		</lst>
1008
		<arr name="last-components">
1009
			<str>tvComponent</str>
1010
		</arr>
1011
	</requestHandler>
1012

    
1013
	<!-- Clustering Component. (Omitted here. See the default Solr example for a typical configuration.) -->
1014

    
1015
	<!-- Terms Component
1016

    
1017
		 http://wiki.apache.org/solr/TermsComponent
1018

    
1019
		 A component to return terms and document frequency of those
1020
		 terms
1021
	  -->
1022
	<searchComponent name="terms" class="solr.TermsComponent"/>
1023

    
1024
	<!-- A request handler for demonstrating the terms component -->
1025
	<requestHandler name="/terms" class="solr.SearchHandler" startup="lazy">
1026
		<lst name="defaults">
1027
			<bool name="terms">true</bool>
1028
			<bool name="distrib">false</bool>
1029
		</lst>
1030
		<arr name="components">
1031
			<str>terms</str>
1032
		</arr>
1033
	</requestHandler>
1034

    
1035

    
1036
	<!-- Query Elevation Component
1037

    
1038
		 http://wiki.apache.org/solr/QueryElevationComponent
1039

    
1040
		 a search component that enables you to configure the top
1041
		 results for a given query regardless of the normal lucene
1042
		 scoring.
1043
	  -->
1044
	<searchComponent name="elevator" class="solr.QueryElevationComponent" >
1045
		<!-- pick a fieldType to analyze queries -->
1046
		<str name="queryFieldType">string</str>
1047
		<str name="config-file">elevate.xml</str>
1048
	</searchComponent>
1049

    
1050
	<!-- A request handler for demonstrating the elevator component -->
1051
	<requestHandler name="/elevate" class="solr.SearchHandler" startup="lazy">
1052
		<lst name="defaults">
1053
			<str name="echoParams">explicit</str>
1054
		</lst>
1055
		<arr name="last-components">
1056
			<str>elevator</str>
1057
		</arr>
1058
	</requestHandler>
1059

    
1060
	<!-- Highlighting Component
1061

    
1062
		 http://wiki.apache.org/solr/HighlightingParameters
1063
	  -->
1064
	<searchComponent class="solr.HighlightComponent" name="highlight">
1065
		<highlighting>
1066
			<!-- Configure the standard fragmenter -->
1067
			<!-- This could most likely be commented out in the "default" case -->
1068
			<fragmenter name="gap"
1069
			            default="true"
1070
			            class="solr.highlight.GapFragmenter">
1071
				<lst name="defaults">
1072
					<int name="hl.fragsize">100</int>
1073
				</lst>
1074
			</fragmenter>
1075

    
1076
			<!-- A regular-expression-based fragmenter
1077
				 (for sentence extraction)
1078
			  -->
1079
			<fragmenter name="regex"
1080
			            class="solr.highlight.RegexFragmenter">
1081
				<lst name="defaults">
1082
					<!-- slightly smaller fragsizes work better because of slop -->
1083
					<int name="hl.fragsize">70</int>
1084
					<!-- allow 50% slop on fragment sizes -->
1085
					<float name="hl.regex.slop">0.5</float>
1086
					<!-- a basic sentence pattern -->
1087
					<str name="hl.regex.pattern">[-\w ,/\n\&quot;&apos;]{20,200}</str>
1088
				</lst>
1089
			</fragmenter>
1090

    
1091
			<!-- Configure the standard formatter -->
1092
			<formatter name="html"
1093
			           default="true"
1094
			           class="solr.highlight.HtmlFormatter">
1095
				<lst name="defaults">
1096
					<str name="hl.simple.pre"><![CDATA[<em>]]></str>
1097
					<str name="hl.simple.post"><![CDATA[</em>]]></str>
1098
				</lst>
1099
			</formatter>
1100

    
1101
			<!-- Configure the standard encoder -->
1102
			<encoder name="html"
1103
			         class="solr.highlight.HtmlEncoder" />
1104

    
1105
			<!-- Configure the standard fragListBuilder -->
1106
			<fragListBuilder name="simple"
1107
			                 class="solr.highlight.SimpleFragListBuilder"/>
1108

    
1109
			<!-- Configure the single fragListBuilder -->
1110
			<fragListBuilder name="single"
1111
			                 class="solr.highlight.SingleFragListBuilder"/>
1112

    
1113
			<!-- Configure the weighted fragListBuilder -->
1114
			<fragListBuilder name="weighted"
1115
			                 default="true"
1116
			                 class="solr.highlight.WeightedFragListBuilder"/>
1117

    
1118
			<!-- default tag FragmentsBuilder -->
1119
			<fragmentsBuilder name="default"
1120
			                  default="true"
1121
			                  class="solr.highlight.ScoreOrderFragmentsBuilder">
1122
				<!--
1123
				<lst name="defaults">
1124
				  <str name="hl.multiValuedSeparatorChar">/</str>
1125
				</lst>
1126
				-->
1127
			</fragmentsBuilder>
1128

    
1129
			<!-- multi-colored tag FragmentsBuilder -->
1130
			<fragmentsBuilder name="colored"
1131
			                  class="solr.highlight.ScoreOrderFragmentsBuilder">
1132
				<lst name="defaults">
1133
					<str name="hl.tag.pre"><![CDATA[
1134
               <b style="background:yellow">,<b style="background:lawgreen">,
1135
               <b style="background:aquamarine">,<b style="background:magenta">,
1136
               <b style="background:palegreen">,<b style="background:coral">,
1137
               <b style="background:wheat">,<b style="background:khaki">,
1138
               <b style="background:lime">,<b style="background:deepskyblue">]]></str>
1139
					<str name="hl.tag.post"><![CDATA[</b>]]></str>
1140
				</lst>
1141
			</fragmentsBuilder>
1142

    
1143
			<boundaryScanner name="default"
1144
			                 default="true"
1145
			                 class="solr.highlight.SimpleBoundaryScanner">
1146
				<lst name="defaults">
1147
					<str name="hl.bs.maxScan">10</str>
1148
					<str name="hl.bs.chars">.,!? &#9;&#10;&#13;</str>
1149
				</lst>
1150
			</boundaryScanner>
1151

    
1152
			<boundaryScanner name="breakIterator"
1153
			                 class="solr.highlight.BreakIteratorBoundaryScanner">
1154
				<lst name="defaults">
1155
					<!-- type should be one of CHARACTER, WORD(default), LINE and SENTENCE -->
1156
					<str name="hl.bs.type">WORD</str>
1157
					<!-- language and country are used when constructing Locale object.  -->
1158
					<!-- And the Locale object will be used when getting instance of BreakIterator -->
1159
					<str name="hl.bs.language">en</str>
1160
					<str name="hl.bs.country">US</str>
1161
				</lst>
1162
			</boundaryScanner>
1163
		</highlighting>
1164
	</searchComponent>
1165

    
1166
	<!-- Update Processors
1167

    
1168
		 Chains of Update Processor Factories for dealing with Update
1169
		 Requests can be declared, and then used by name in Update
1170
		 Request Processors
1171

    
1172
		 http://wiki.apache.org/solr/UpdateRequestProcessor
1173

    
1174
	  -->
1175

    
1176
	<!-- Add unknown fields to the schema
1177

    
1178
		 An example field type guessing update processor that will
1179
		 attempt to parse string-typed field values as Booleans, Longs,
1180
		 Doubles, or Dates, and then add schema fields with the guessed
1181
		 field types.
1182

    
1183
		 This requires that the schema is both managed and mutable, by
1184
		 declaring schemaFactory as ManagedIndexSchemaFactory, with
1185
		 mutable specified as true.
1186

    
1187
		 See http://wiki.apache.org/solr/GuessingFieldTypes
1188
	  -->
1189
	<updateRequestProcessorChain name="add-unknown-fields-to-the-schema">
1190
		<!-- UUIDUpdateProcessorFactory will generate an id if none is present in the incoming document -->
1191
		<processor class="solr.UUIDUpdateProcessorFactory" />
1192
		<processor class="solr.RemoveBlankFieldUpdateProcessorFactory"/>
1193
		<processor class="solr.FieldNameMutatingUpdateProcessorFactory">
1194
			<str name="pattern">[^\w-\.]</str>
1195
			<str name="replacement">_</str>
1196
		</processor>
1197
		<processor class="solr.ParseBooleanFieldUpdateProcessorFactory"/>
1198
		<processor class="solr.ParseLongFieldUpdateProcessorFactory"/>
1199
		<processor class="solr.ParseDoubleFieldUpdateProcessorFactory"/>
1200
		<processor class="solr.ParseDateFieldUpdateProcessorFactory">
1201
			<arr name="format">
1202
				<str>yyyy-MM-dd'T'HH:mm:ss.SSSZ</str>
1203
				<str>yyyy-MM-dd'T'HH:mm:ss,SSSZ</str>
1204
				<str>yyyy-MM-dd'T'HH:mm:ss.SSS</str>
1205
				<str>yyyy-MM-dd'T'HH:mm:ss,SSS</str>
1206
				<str>yyyy-MM-dd'T'HH:mm:ssZ</str>
1207
				<str>yyyy-MM-dd'T'HH:mm:ss</str>
1208
				<str>yyyy-MM-dd'T'HH:mmZ</str>
1209
				<str>yyyy-MM-dd'T'HH:mm</str>
1210
				<str>yyyy-MM-dd HH:mm:ss.SSSZ</str>
1211
				<str>yyyy-MM-dd HH:mm:ss,SSSZ</str>
1212
				<str>yyyy-MM-dd HH:mm:ss.SSS</str>
1213
				<str>yyyy-MM-dd HH:mm:ss,SSS</str>
1214
				<str>yyyy-MM-dd HH:mm:ssZ</str>
1215
				<str>yyyy-MM-dd HH:mm:ss</str>
1216
				<str>yyyy-MM-dd HH:mmZ</str>
1217
				<str>yyyy-MM-dd HH:mm</str>
1218
				<str>yyyy-MM-dd</str>
1219
			</arr>
1220
		</processor>
1221
		<processor class="solr.AddSchemaFieldsUpdateProcessorFactory">
1222
			<str name="defaultFieldType">strings</str>
1223
			<lst name="typeMapping">
1224
				<str name="valueClass">java.lang.Boolean</str>
1225
				<str name="fieldType">booleans</str>
1226
			</lst>
1227
			<lst name="typeMapping">
1228
				<str name="valueClass">java.util.Date</str>
1229
				<str name="fieldType">tdates</str>
1230
			</lst>
1231
			<lst name="typeMapping">
1232
				<str name="valueClass">java.lang.Long</str>
1233
				<str name="valueClass">java.lang.Integer</str>
1234
				<str name="fieldType">tlongs</str>
1235
			</lst>
1236
			<lst name="typeMapping">
1237
				<str name="valueClass">java.lang.Number</str>
1238
				<str name="fieldType">tdoubles</str>
1239
			</lst>
1240
		</processor>
1241

    
1242
		<processor class="solr.LogUpdateProcessorFactory"/>
1243
		<processor class="solr.DistributedUpdateProcessorFactory"/>
1244
		<processor class="solr.RunUpdateProcessorFactory"/>
1245
	</updateRequestProcessorChain>
1246

    
1247
	<!-- Deduplication
1248

    
1249
		 An example dedup update processor that creates the "id" field
1250
		 on the fly based on the hash code of some other fields.  This
1251
		 example has overwriteDupes set to false since we are using the
1252
		 id field as the signatureField and Solr will maintain
1253
		 uniqueness based on that anyway.
1254

    
1255
	  -->
1256
	<!--
1257
	   <updateRequestProcessorChain name="dedupe">
1258
		 <processor class="solr.processor.SignatureUpdateProcessorFactory">
1259
		   <bool name="enabled">true</bool>
1260
		   <str name="signatureField">id</str>
1261
		   <bool name="overwriteDupes">false</bool>
1262
		   <str name="fields">name,features,cat</str>
1263
		   <str name="signatureClass">solr.processor.Lookup3Signature</str>
1264
		 </processor>
1265
		 <processor class="solr.LogUpdateProcessorFactory" />
1266
		 <processor class="solr.RunUpdateProcessorFactory" />
1267
	   </updateRequestProcessorChain>
1268
	  -->
1269

    
1270
	<!-- Language identification
1271

    
1272
		 This example update chain identifies the language of the incoming
1273
		 documents using the langid contrib. The detected language is
1274
		 written to field language_s. No field name mapping is done.
1275
		 The fields used for detection are text, title, subject and description,
1276
		 making this example suitable for detecting languages form full-text
1277
		 rich documents injected via ExtractingRequestHandler.
1278
		 See more about langId at http://wiki.apache.org/solr/LanguageDetection
1279
	  -->
1280
	<!--
1281
	 <updateRequestProcessorChain name="langid">
1282
	   <processor class="org.apache.solr.update.processor.TikaLanguageIdentifierUpdateProcessorFactory">
1283
		 <str name="langid.fl">text,title,subject,description</str>
1284
		 <str name="langid.langField">language_s</str>
1285
		 <str name="langid.fallback">en</str>
1286
	   </processor>
1287
	   <processor class="solr.LogUpdateProcessorFactory" />
1288
	   <processor class="solr.RunUpdateProcessorFactory" />
1289
	 </updateRequestProcessorChain>
1290
	-->
1291

    
1292
	<!-- Script update processor
1293

    
1294
	  This example hooks in an update processor implemented using JavaScript.
1295

    
1296
	  See more about the script update processor at http://wiki.apache.org/solr/ScriptUpdateProcessor
1297
	-->
1298
	<!--
1299
	  <updateRequestProcessorChain name="script">
1300
		<processor class="solr.StatelessScriptUpdateProcessorFactory">
1301
		  <str name="script">update-script.js</str>
1302
		  <lst name="params">
1303
			<str name="config_param">example config parameter</str>
1304
		  </lst>
1305
		</processor>
1306
		<processor class="solr.RunUpdateProcessorFactory" />
1307
	  </updateRequestProcessorChain>
1308
	-->
1309

    
1310
	<!-- Response Writers
1311

    
1312
		 http://wiki.apache.org/solr/QueryResponseWriter
1313

    
1314
		 Request responses will be written using the writer specified by
1315
		 the 'wt' request parameter matching the name of a registered
1316
		 writer.
1317

    
1318
		 The "default" writer is the default and will be used if 'wt' is
1319
		 not specified in the request.
1320
	  -->
1321
	<!-- The following response writers are implicitly configured unless
1322
		 overridden...
1323
	  -->
1324
	<!--
1325
	   <queryResponseWriter name="xml"
1326
							default="true"
1327
							class="solr.XMLResponseWriter" />
1328
	   <queryResponseWriter name="json" class="solr.JSONResponseWriter"/>
1329
	   <queryResponseWriter name="python" class="solr.PythonResponseWriter"/>
1330
	   <queryResponseWriter name="ruby" class="solr.RubyResponseWriter"/>
1331
	   <queryResponseWriter name="php" class="solr.PHPResponseWriter"/>
1332
	   <queryResponseWriter name="phps" class="solr.PHPSerializedResponseWriter"/>
1333
	   <queryResponseWriter name="csv" class="solr.CSVResponseWriter"/>
1334
	   <queryResponseWriter name="schema.xml" class="solr.SchemaXmlResponseWriter"/>
1335
	  -->
1336

    
1337
	<queryResponseWriter name="json" class="solr.JSONResponseWriter">
1338
		<!-- For the purposes of the tutorial, JSON responses are written as
1339
		 plain text so that they are easy to read in *any* browser.
1340
		 If you expect a MIME type of "application/json" just remove this override.
1341
		-->
1342
		<str name="content-type">text/plain; charset=UTF-8</str>
1343
	</queryResponseWriter>
1344

    
1345
	<!--
1346
	   Custom response writers can be declared as needed...
1347
	  -->
1348
	<queryResponseWriter name="velocity" class="solr.VelocityResponseWriter" startup="lazy">
1349
		<str name="template.base.dir">\${velocity.template.base.dir:}</str>
1350
		<str name="solr.resource.loader.enabled">\${velocity.solr.resource.loader.enabled:true}</str>
1351
		<str name="params.resource.loader.enabled">\${velocity.params.resource.loader.enabled:false}</str>
1352
	</queryResponseWriter>
1353

    
1354
	<!-- XSLT response writer transforms the XML output by any xslt file found
1355
		 in Solr's conf/xslt directory.  Changes to xslt files are checked for
1356
		 every xsltCacheLifetimeSeconds.
1357
	  -->
1358
	<queryResponseWriter name="xslt" class="solr.XSLTResponseWriter">
1359
		<int name="xsltCacheLifetimeSeconds">5</int>
1360
	</queryResponseWriter>
1361

    
1362
	<!-- Query Parsers
1363

    
1364
		 https://cwiki.apache.org/confluence/display/solr/Query+Syntax+and+Parsing
1365

    
1366
		 Multiple QParserPlugins can be registered by name, and then
1367
		 used in either the "defType" param for the QueryComponent (used
1368
		 by SearchHandler) or in LocalParams
1369
	  -->
1370
	<!-- example of registering a query parser -->
1371
	<!--
1372
	   <queryParser name="myparser" class="com.mycompany.MyQParserPlugin"/>
1373
	  -->
1374

    
1375
	<!-- Function Parsers
1376

    
1377
		 http://wiki.apache.org/solr/FunctionQuery
1378

    
1379
		 Multiple ValueSourceParsers can be registered by name, and then
1380
		 used as function names when using the "func" QParser.
1381
	  -->
1382
	<!-- example of registering a custom function parser  -->
1383
	<!--
1384
	   <valueSourceParser name="myfunc"
1385
						  class="com.mycompany.MyValueSourceParser" />
1386
	  -->
1387

    
1388

    
1389
	<!-- Document Transformers
1390
		 http://wiki.apache.org/solr/DocTransformers
1391
	  -->
1392
	<!--
1393
	   Could be something like:
1394
	   <transformer name="db" class="com.mycompany.LoadFromDatabaseTransformer" >
1395
		 <int name="connection">jdbc://....</int>
1396
	   </transformer>
1397

    
1398
	   To add a constant value to all docs, use:
1399
	   <transformer name="mytrans2" class="org.apache.solr.response.transform.ValueAugmenterFactory" >
1400
		 <int name="value">5</int>
1401
	   </transformer>
1402

    
1403
	   If you want the user to still be able to change it with _value:something_ use this:
1404
	   <transformer name="mytrans3" class="org.apache.solr.response.transform.ValueAugmenterFactory" >
1405
		 <double name="defaultValue">5</double>
1406
	   </transformer>
1407

    
1408
		If you are using the QueryElevationComponent, you may wish to mark documents that get boosted.  The
1409
		EditorialMarkerFactory will do exactly that:
1410
	   <transformer name="qecBooster" class="org.apache.solr.response.transform.EditorialMarkerFactory" />
1411
	  -->
1412
</config>
(2-2/2)