|
@@ -16,9 +16,9 @@
|
16
|
16
|
limitations under the License.
|
17
|
17
|
-->
|
18
|
18
|
|
19
|
|
-<!--
|
|
19
|
+<!--
|
20
|
20
|
For more details about configurations options that may appear in
|
21
|
|
- this file, see http://wiki.apache.org/solr/SolrConfigXml.
|
|
21
|
+ this file, see http://wiki.apache.org/solr/SolrConfigXml.
|
22
|
22
|
-->
|
23
|
23
|
<config>
|
24
|
24
|
<!-- In all configuration below, a prefix of "solr." for class names
|
|
@@ -40,7 +40,7 @@
|
40
|
40
|
-Dsolr.abortOnConfigurationError=false
|
41
|
41
|
-->
|
42
|
42
|
<abortOnConfigurationError>${solr.abortOnConfigurationError:true}</abortOnConfigurationError>
|
43
|
|
-
|
|
43
|
+
|
44
|
44
|
<!-- Controls what version of Lucene various components of Solr
|
45
|
45
|
adhere to. Generally, you want to use the latest version to
|
46
|
46
|
get all bug fixes and improvements. It is highly recommended
|
|
@@ -60,11 +60,11 @@
|
60
|
60
|
If a "./lib" directory exists in your instanceDir, all files
|
61
|
61
|
found in it are included as if you had used the following
|
62
|
62
|
syntax...
|
63
|
|
-
|
|
63
|
+
|
64
|
64
|
<lib dir="./lib" />
|
65
|
65
|
-->
|
66
|
66
|
|
67
|
|
- <!-- A 'dir' option by itself adds any files found in the directory
|
|
67
|
+ <!-- A 'dir' option by itself adds any files found in the directory
|
68
|
68
|
to the classpath, this is useful for including all jars in a
|
69
|
69
|
directory.
|
70
|
70
|
-->
|
|
@@ -85,7 +85,7 @@
|
85
|
85
|
|
86
|
86
|
<lib dir="../../dist/" regex="apache-solr-dataimporthandler-\d.*\.jar" />
|
87
|
87
|
<lib dir="../../contrib/dataimporthandler/lib/" regex=".*\.jar" />
|
88
|
|
-
|
|
88
|
+
|
89
|
89
|
<lib dir="../../dist/" regex="apache-solr-langid-\d.*\.jar" />
|
90
|
90
|
<lib dir="../../contrib/langid/lib/" regex=".*\.jar" />
|
91
|
91
|
|
|
@@ -96,17 +96,17 @@
|
96
|
96
|
<!-- If a 'dir' option (with or without a regex) is used and nothing
|
97
|
97
|
is found that matches, it will be ignored
|
98
|
98
|
-->
|
99
|
|
- <!--
|
|
99
|
+ <!--
|
100
|
100
|
<lib dir="/total/crap/dir/ignored" />
|
101
|
101
|
-->
|
102
|
|
- <!-- an exact 'path' can be used instead of a 'dir' to specify a
|
103
|
|
- specific file. This will cause a serious error to be logged if
|
|
102
|
+ <!-- an exact 'path' can be used instead of a 'dir' to specify a
|
|
103
|
+ specific file. This will cause a serious error to be logged if
|
104
|
104
|
it can't be loaded.
|
105
|
105
|
-->
|
106
|
106
|
<!--
|
107
|
|
- <lib path="../a-jar-that-does-not-exist.jar" />
|
|
107
|
+ <lib path="../a-jar-that-does-not-exist.jar" />
|
108
|
108
|
-->
|
109
|
|
-
|
|
109
|
+
|
110
|
110
|
<!-- Data Directory
|
111
|
111
|
|
112
|
112
|
Used to specify an alternate directory to hold all index data
|
|
@@ -118,7 +118,7 @@
|
118
|
118
|
|
119
|
119
|
|
120
|
120
|
<!-- The DirectoryFactory to use for indexes.
|
121
|
|
-
|
|
121
|
+
|
122
|
122
|
solr.StandardDirectoryFactory, the default, is filesystem
|
123
|
123
|
based and tries to pick the best implementation for the current
|
124
|
124
|
JVM and platform. One can force a particular implementation
|
|
@@ -128,16 +128,16 @@
|
128
|
128
|
solr.RAMDirectoryFactory is memory based, not
|
129
|
129
|
persistent, and doesn't work with replication.
|
130
|
130
|
-->
|
131
|
|
- <directoryFactory name="DirectoryFactory"
|
|
131
|
+ <directoryFactory name="DirectoryFactory"
|
132
|
132
|
class="${solr.directoryFactory:solr.StandardDirectoryFactory}"/>
|
133
|
133
|
|
134
|
134
|
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
135
|
135
|
Index Config - These settings control low-level behavior of indexing
|
136
|
136
|
Most example settings here show the default value, but are commented
|
137
|
137
|
out, to more easily see where customizations have been made.
|
138
|
|
-
|
|
138
|
+
|
139
|
139
|
Note: As of Solr 3.6, the <indexDefaults> and <mainIndex> sections
|
140
|
|
- are deprecated and not shown in the example config. They will
|
|
140
|
+ are deprecated and not shown in the example config. They will
|
141
|
141
|
still work, but will go away for good in 4.0
|
142
|
142
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
|
143
|
143
|
<indexConfig>
|
|
@@ -146,8 +146,8 @@
|
146
|
146
|
<!-- Maximum time to wait for a write lock (ms) for an IndexWriter. Default: 1000 -->
|
147
|
147
|
<!-- <writeLockTimeout>1000</writeLockTimeout> -->
|
148
|
148
|
|
149
|
|
- <!-- Expert: Enabling compound file will use less files for the index,
|
150
|
|
- using fewer file descriptors on the expense of performance decrease.
|
|
149
|
+ <!-- Expert: Enabling compound file will use less files for the index,
|
|
150
|
+ using fewer file descriptors on the expense of performance decrease.
|
151
|
151
|
Default in Lucene is "true". Default in Solr is "false" (since 3.6) -->
|
152
|
152
|
<!-- <useCompoundFile>false</useCompoundFile> -->
|
153
|
153
|
|
|
@@ -161,7 +161,7 @@
|
161
|
161
|
<!-- <ramBufferSizeMB>32</ramBufferSizeMB> -->
|
162
|
162
|
<!-- <maxBufferedDocs>1000</maxBufferedDocs> -->
|
163
|
163
|
|
164
|
|
- <!-- Expert: Merge Policy
|
|
164
|
+ <!-- Expert: Merge Policy
|
165
|
165
|
The Merge Policy in Lucene controls how merging of segments is done.
|
166
|
166
|
The default since Solr/Lucene 3.3 is TieredMergePolicy.
|
167
|
167
|
The default since Lucene 2.3 was the LogByteSizeMergePolicy,
|
|
@@ -173,7 +173,7 @@
|
173
|
173
|
<int name="segmentsPerTier">10</int>
|
174
|
174
|
</mergePolicy>
|
175
|
175
|
-->
|
176
|
|
-
|
|
176
|
+
|
177
|
177
|
<!-- Merge Factor
|
178
|
178
|
The merge factor controls how many segments will get merged at a time.
|
179
|
179
|
For TieredMergePolicy, mergeFactor is a convenience parameter which
|
|
@@ -182,7 +182,7 @@
|
182
|
182
|
will be allowed before they are merged into one.
|
183
|
183
|
Default is 10 for both merge policies.
|
184
|
184
|
-->
|
185
|
|
- <!--
|
|
185
|
+ <!--
|
186
|
186
|
<mergeFactor>10</mergeFactor>
|
187
|
187
|
-->
|
188
|
188
|
|
|
@@ -192,15 +192,15 @@
|
192
|
192
|
can perform merges in the background using separate threads.
|
193
|
193
|
The SerialMergeScheduler (Lucene 2.2 default) does not.
|
194
|
194
|
-->
|
195
|
|
- <!--
|
|
195
|
+ <!--
|
196
|
196
|
<mergeScheduler class="org.apache.lucene.index.ConcurrentMergeScheduler"/>
|
197
|
197
|
-->
|
198
|
198
|
|
199
|
|
- <!-- LockFactory
|
|
199
|
+ <!-- LockFactory
|
200
|
200
|
|
201
|
201
|
This option specifies which Lucene LockFactory implementation
|
202
|
202
|
to use.
|
203
|
|
-
|
|
203
|
+
|
204
|
204
|
single = SingleInstanceLockFactory - suggested for a
|
205
|
205
|
read-only index or when there is no possibility of
|
206
|
206
|
another process trying to modify the index.
|
|
@@ -229,7 +229,7 @@
|
229
|
229
|
<!--
|
230
|
230
|
<unlockOnStartup>false</unlockOnStartup>
|
231
|
231
|
-->
|
232
|
|
-
|
|
232
|
+
|
233
|
233
|
<!-- Expert: Controls how often Lucene loads terms into memory
|
234
|
234
|
Default is 128 and is likely good for most everyone.
|
235
|
235
|
-->
|
|
@@ -238,7 +238,7 @@
|
238
|
238
|
<!-- If true, IndexReaders will be reopened (often more efficient)
|
239
|
239
|
instead of closed and then opened. Default: true
|
240
|
240
|
-->
|
241
|
|
- <!--
|
|
241
|
+ <!--
|
242
|
242
|
<reopenReaders>true</reopenReaders>
|
243
|
243
|
-->
|
244
|
244
|
|
|
@@ -252,11 +252,11 @@
|
252
|
252
|
The default Solr IndexDeletionPolicy implementation supports
|
253
|
253
|
deleting index commit points on number of commits, age of
|
254
|
254
|
commit point and optimized status.
|
255
|
|
-
|
|
255
|
+
|
256
|
256
|
The latest commit point should always be preserved regardless
|
257
|
257
|
of the criteria.
|
258
|
258
|
-->
|
259
|
|
- <!--
|
|
259
|
+ <!--
|
260
|
260
|
<deletionPolicy class="solr.SolrDeletionPolicy">
|
261
|
261
|
-->
|
262
|
262
|
<!-- The number of commit points to be kept -->
|
|
@@ -271,24 +271,24 @@
|
271
|
271
|
<str name="maxCommitAge">30MINUTES</str>
|
272
|
272
|
<str name="maxCommitAge">1DAY</str>
|
273
|
273
|
-->
|
274
|
|
- <!--
|
|
274
|
+ <!--
|
275
|
275
|
</deletionPolicy>
|
276
|
276
|
-->
|
277
|
277
|
|
278
|
278
|
<!-- Lucene Infostream
|
279
|
|
-
|
|
279
|
+
|
280
|
280
|
To aid in advanced debugging, Lucene provides an "InfoStream"
|
281
|
281
|
of detailed information when indexing.
|
282
|
282
|
|
283
|
283
|
Setting The value to true will instruct the underlying Lucene
|
284
|
284
|
IndexWriter to write its debugging info the specified file
|
285
|
285
|
-->
|
286
|
|
- <!-- <infoStream file="INFOSTREAM.txt">false</infoStream> -->
|
|
286
|
+ <!-- <infoStream file="INFOSTREAM.txt">false</infoStream> -->
|
287
|
287
|
</indexConfig>
|
288
|
288
|
|
289
|
289
|
|
290
|
290
|
<!-- JMX
|
291
|
|
-
|
|
291
|
+
|
292
|
292
|
This example enables JMX if and only if an existing MBeanServer
|
293
|
293
|
is found, use this if you want to configure JMX through JVM
|
294
|
294
|
parameters. Remove this to disable exposing Solr configuration
|
|
@@ -298,7 +298,7 @@
|
298
|
298
|
-->
|
299
|
299
|
<jmx />
|
300
|
300
|
<!-- If you want to connect to a particular server, specify the
|
301
|
|
- agentId
|
|
301
|
+ agentId
|
302
|
302
|
-->
|
303
|
303
|
<!-- <jmx agentId="myAgent" /> -->
|
304
|
304
|
<!-- If you want to start a new MBeanServer, specify the serviceUrl -->
|
|
@@ -312,7 +312,7 @@
|
312
|
312
|
|
313
|
313
|
Perform a <commit/> automatically under certain conditions.
|
314
|
314
|
Instead of enabling autoCommit, consider using "commitWithin"
|
315
|
|
- when adding documents.
|
|
315
|
+ when adding documents.
|
316
|
316
|
|
317
|
317
|
http://wiki.apache.org/solr/UpdateXmlMessages
|
318
|
318
|
|
|
@@ -321,17 +321,17 @@
|
321
|
321
|
|
322
|
322
|
maxTime - Maximum amount of time that is allowed to pass
|
323
|
323
|
since a document was added before automaticly
|
324
|
|
- triggering a new commit.
|
|
324
|
+ triggering a new commit.
|
325
|
325
|
-->
|
326
|
326
|
<!--
|
327
|
|
- <autoCommit>
|
|
327
|
+ <autoCommit>
|
328
|
328
|
<maxDocs>10000</maxDocs>
|
329
|
|
- <maxTime>1000</maxTime>
|
|
329
|
+ <maxTime>1000</maxTime>
|
330
|
330
|
</autoCommit>
|
331
|
331
|
-->
|
332
|
332
|
|
333
|
333
|
<!-- Update Related Event Listeners
|
334
|
|
-
|
|
334
|
+
|
335
|
335
|
Various IndexWriter related events can trigger Listeners to
|
336
|
336
|
take actions.
|
337
|
337
|
|
|
@@ -340,10 +340,10 @@
|
340
|
340
|
-->
|
341
|
341
|
<!-- The RunExecutableListener executes an external command from a
|
342
|
342
|
hook such as postCommit or postOptimize.
|
343
|
|
-
|
|
343
|
+
|
344
|
344
|
exe - the name of the executable to run
|
345
|
345
|
dir - dir to use as the current working directory. (default=".")
|
346
|
|
- wait - the calling thread waits until the executable returns.
|
|
346
|
+ wait - the calling thread waits until the executable returns.
|
347
|
347
|
(default="true")
|
348
|
348
|
args - the arguments to pass to the program. (default is none)
|
349
|
349
|
env - environment variables to set. (default is none)
|
|
@@ -362,7 +362,7 @@
|
362
|
362
|
</listener>
|
363
|
363
|
-->
|
364
|
364
|
</updateHandler>
|
365
|
|
-
|
|
365
|
+
|
366
|
366
|
<!-- IndexReaderFactory
|
367
|
367
|
|
368
|
368
|
Use the following format to specify a custom IndexReaderFactory,
|
|
@@ -394,7 +394,7 @@
|
394
|
394
|
be specified.
|
395
|
395
|
-->
|
396
|
396
|
<!--
|
397
|
|
- <indexReaderFactory name="IndexReaderFactory"
|
|
397
|
+ <indexReaderFactory name="IndexReaderFactory"
|
398
|
398
|
class="solr.StandardIndexReaderFactory">
|
399
|
399
|
<int name="setTermIndexDivisor">12</int>
|
400
|
400
|
</indexReaderFactory >
|
|
@@ -410,12 +410,12 @@
|
410
|
410
|
is thrown if exceeded.
|
411
|
411
|
|
412
|
412
|
** WARNING **
|
413
|
|
-
|
|
413
|
+
|
414
|
414
|
This option actually modifies a global Lucene property that
|
415
|
415
|
will affect all SolrCores. If multiple solrconfig.xml files
|
416
|
416
|
disagree on this property, the value at any given moment will
|
417
|
417
|
be based on the last SolrCore to be initialized.
|
418
|
|
-
|
|
418
|
+
|
419
|
419
|
-->
|
420
|
420
|
<maxBooleanClauses>1024</maxBooleanClauses>
|
421
|
421
|
|
|
@@ -424,7 +424,7 @@
|
424
|
424
|
|
425
|
425
|
There are two implementations of cache available for Solr,
|
426
|
426
|
LRUCache, based on a synchronized LinkedHashMap, and
|
427
|
|
- FastLRUCache, based on a ConcurrentHashMap.
|
|
427
|
+ FastLRUCache, based on a ConcurrentHashMap.
|
428
|
428
|
|
429
|
429
|
FastLRUCache has faster gets and slower puts in single
|
430
|
430
|
threaded operation and thus is generally faster than LRUCache
|
|
@@ -449,7 +449,7 @@
|
449
|
449
|
initialSize - the initial capacity (number of entries) of
|
450
|
450
|
the cache. (see java.util.HashMap)
|
451
|
451
|
autowarmCount - the number of entries to prepopulate from
|
452
|
|
- and old cache.
|
|
452
|
+ and old cache.
|
453
|
453
|
-->
|
454
|
454
|
<filterCache class="solr.FastLRUCache"
|
455
|
455
|
size="512"
|
|
@@ -457,29 +457,29 @@
|
457
|
457
|
autowarmCount="0"/>
|
458
|
458
|
|
459
|
459
|
<!-- Query Result Cache
|
460
|
|
-
|
|
460
|
+
|
461
|
461
|
Caches results of searches - ordered lists of document ids
|
462
|
|
- (DocList) based on a query, a sort, and the range of documents
|
463
|
|
- requested.
|
|
462
|
+ (DocList) based on a query, a sort, and the range of documents
|
|
463
|
+ requested.
|
464
|
464
|
-->
|
465
|
465
|
<queryResultCache class="solr.LRUCache"
|
466
|
466
|
size="512"
|
467
|
467
|
initialSize="512"
|
468
|
468
|
autowarmCount="0"/>
|
469
|
|
-
|
|
469
|
+
|
470
|
470
|
<!-- Document Cache
|
471
|
471
|
|
472
|
472
|
Caches Lucene Document objects (the stored fields for each
|
473
|
473
|
document). Since Lucene internal document ids are transient,
|
474
|
|
- this cache will not be autowarmed.
|
|
474
|
+ this cache will not be autowarmed.
|
475
|
475
|
-->
|
476
|
476
|
<documentCache class="solr.LRUCache"
|
477
|
477
|
size="512"
|
478
|
478
|
initialSize="512"
|
479
|
479
|
autowarmCount="0"/>
|
480
|
|
-
|
|
480
|
+
|
481
|
481
|
<!-- Field Value Cache
|
482
|
|
-
|
|
482
|
+
|
483
|
483
|
Cache used to hold field values that are quickly accessible
|
484
|
484
|
by document id. The fieldValueCache is created by default
|
485
|
485
|
even if not configured here.
|
|
@@ -497,8 +497,8 @@
|
497
|
497
|
name through SolrIndexSearcher.getCache(),cacheLookup(), and
|
498
|
498
|
cacheInsert(). The purpose is to enable easy caching of
|
499
|
499
|
user/application level data. The regenerator argument should
|
500
|
|
- be specified as an implementation of solr.CacheRegenerator
|
501
|
|
- if autowarming is desired.
|
|
500
|
+ be specified as an implementation of solr.CacheRegenerator
|
|
501
|
+ if autowarming is desired.
|
502
|
502
|
-->
|
503
|
503
|
<!--
|
504
|
504
|
<cache name="myUserCache"
|
|
@@ -543,14 +543,14 @@
|
543
|
543
|
An optimization for use with the queryResultCache. When a search
|
544
|
544
|
is requested, a superset of the requested number of document ids
|
545
|
545
|
are collected. For example, if a search for a particular query
|
546
|
|
- requests matching documents 10 through 19, and queryWindowSize
|
547
|
|
- is 50, then documents 0 through 49 will be collected and cached.
|
548
|
|
- Any further requests in that range can be satisfied via the cache.
|
|
546
|
+ requests matching documents 10 through 19, and queryWindowSize
|
|
547
|
+ is 50, then documents 0 through 49 will be collected and cached.
|
|
548
|
+ Any further requests in that range can be satisfied via the cache.
|
549
|
549
|
-->
|
550
|
550
|
<queryResultWindowSize>20</queryResultWindowSize>
|
551
|
551
|
|
552
|
552
|
<!-- Maximum number of documents to cache for any entry in the
|
553
|
|
- queryResultCache.
|
|
553
|
+ queryResultCache.
|
554
|
554
|
-->
|
555
|
555
|
<queryResultMaxDocsCached>200</queryResultMaxDocsCached>
|
556
|
556
|
|
|
@@ -568,10 +568,10 @@
|
568
|
568
|
prepared but there is no current registered searcher to handle
|
569
|
569
|
requests or to gain autowarming data from.
|
570
|
570
|
|
571
|
|
-
|
|
571
|
+
|
572
|
572
|
-->
|
573
|
573
|
<!-- QuerySenderListener takes an array of NamedList and executes a
|
574
|
|
- local query request for each NamedList in sequence.
|
|
574
|
+ local query request for each NamedList in sequence.
|
575
|
575
|
-->
|
576
|
576
|
<listener event="newSearcher" class="solr.QuerySenderListener">
|
577
|
577
|
<arr name="queries">
|
|
@@ -599,7 +599,7 @@
|
599
|
599
|
<useColdSearcher>false</useColdSearcher>
|
600
|
600
|
|
601
|
601
|
<!-- Max Warming Searchers
|
602
|
|
-
|
|
602
|
+
|
603
|
603
|
Maximum number of searchers that may be warming in the
|
604
|
604
|
background concurrently. An error is returned if this limit
|
605
|
605
|
is exceeded.
|
|
@@ -636,14 +636,14 @@
|
636
|
636
|
|
637
|
637
|
multipartUploadLimitInKB - specifies the max size of
|
638
|
638
|
Multipart File Uploads that Solr will allow in a Request.
|
639
|
|
-
|
|
639
|
+
|
640
|
640
|
*** WARNING ***
|
641
|
641
|
The settings below authorize Solr to fetch remote files, You
|
642
|
642
|
should make sure your system has some authentication before
|
643
|
643
|
using enableRemoteStreaming="true"
|
644
|
644
|
|
645
|
|
- -->
|
646
|
|
- <requestParsers enableRemoteStreaming="true"
|
|
645
|
+ -->
|
|
646
|
+ <requestParsers enableRemoteStreaming="true"
|
647
|
647
|
multipartUploadLimitInKB="2048000" />
|
648
|
648
|
|
649
|
649
|
<!-- HTTP Caching
|
|
@@ -657,21 +657,21 @@
|
657
|
657
|
<!-- If you include a <cacheControl> directive, it will be used to
|
658
|
658
|
generate a Cache-Control header (as well as an Expires header
|
659
|
659
|
if the value contains "max-age=")
|
660
|
|
-
|
|
660
|
+
|
661
|
661
|
By default, no Cache-Control header is generated.
|
662
|
|
-
|
|
662
|
+
|
663
|
663
|
You can use the <cacheControl> option even if you have set
|
664
|
664
|
never304="true"
|
665
|
665
|
-->
|
666
|
666
|
<!--
|
667
|
667
|
<httpCaching never304="true" >
|
668
|
|
- <cacheControl>max-age=30, public</cacheControl>
|
|
668
|
+ <cacheControl>max-age=30, public</cacheControl>
|
669
|
669
|
</httpCaching>
|
670
|
670
|
-->
|
671
|
671
|
<!-- To enable Solr to respond with automatically generated HTTP
|
672
|
672
|
Caching headers, and to response to Cache Validation requests
|
673
|
673
|
correctly, set the value of never304="false"
|
674
|
|
-
|
|
674
|
+
|
675
|
675
|
This will cause Solr to generate Last-Modified and ETag
|
676
|
676
|
headers based on the properties of the Index.
|
677
|
677
|
|
|
@@ -696,12 +696,12 @@
|
696
|
696
|
<!--
|
697
|
697
|
<httpCaching lastModifiedFrom="openTime"
|
698
|
698
|
etagSeed="Solr">
|
699
|
|
- <cacheControl>max-age=30, public</cacheControl>
|
|
699
|
+ <cacheControl>max-age=30, public</cacheControl>
|
700
|
700
|
</httpCaching>
|
701
|
701
|
-->
|
702
|
702
|
</requestDispatcher>
|
703
|
703
|
|
704
|
|
- <!-- Request Handlers
|
|
704
|
+ <!-- Request Handlers
|
705
|
705
|
|
706
|
706
|
http://wiki.apache.org/solr/SolrRequestHandler
|
707
|
707
|
|
|
@@ -857,8 +857,8 @@
|
857
|
857
|
-->
|
858
|
858
|
</requestHandler>
|
859
|
859
|
|
860
|
|
- <!-- XML Update Request Handler.
|
861
|
|
-
|
|
860
|
+ <!-- XML Update Request Handler.
|
|
861
|
+
|
862
|
862
|
http://wiki.apache.org/solr/UpdateXmlMessages
|
863
|
863
|
|
864
|
864
|
The canonical Request Handler for Modifying the Index through
|
|
@@ -868,10 +868,10 @@
|
868
|
868
|
type header if posted in the body. For example, curl now
|
869
|
869
|
requires: -H 'Content-type:text/xml; charset=utf-8'
|
870
|
870
|
-->
|
871
|
|
- <requestHandler name="/update"
|
|
871
|
+ <requestHandler name="/update"
|
872
|
872
|
class="solr.XmlUpdateRequestHandler">
|
873
|
|
- <!-- See below for information on defining
|
874
|
|
- updateRequestProcessorChains that can be used by name
|
|
873
|
+ <!-- See below for information on defining
|
|
874
|
+ updateRequestProcessorChains that can be used by name
|
875
|
875
|
on each Update Request
|
876
|
876
|
-->
|
877
|
877
|
<!--
|
|
@@ -883,29 +883,29 @@
|
883
|
883
|
<!-- Binary Update Request Handler
|
884
|
884
|
http://wiki.apache.org/solr/javabin
|
885
|
885
|
-->
|
886
|
|
- <requestHandler name="/update/javabin"
|
|
886
|
+ <requestHandler name="/update/javabin"
|
887
|
887
|
class="solr.BinaryUpdateRequestHandler" />
|
888
|
888
|
|
889
|
889
|
<!-- CSV Update Request Handler
|
890
|
890
|
http://wiki.apache.org/solr/UpdateCSV
|
891
|
891
|
-->
|
892
|
|
- <requestHandler name="/update/csv"
|
893
|
|
- class="solr.CSVRequestHandler"
|
|
892
|
+ <requestHandler name="/update/csv"
|
|
893
|
+ class="solr.CSVRequestHandler"
|
894
|
894
|
startup="lazy" />
|
895
|
895
|
|
896
|
896
|
<!-- JSON Update Request Handler
|
897
|
897
|
http://wiki.apache.org/solr/UpdateJSON
|
898
|
898
|
-->
|
899
|
|
- <requestHandler name="/update/json"
|
900
|
|
- class="solr.JsonUpdateRequestHandler"
|
|
899
|
+ <requestHandler name="/update/json"
|
|
900
|
+ class="solr.JsonUpdateRequestHandler"
|
901
|
901
|
startup="lazy" />
|
902
|
902
|
|
903
|
903
|
<!-- Solr Cell Update Request Handler
|
904
|
904
|
|
905
|
|
- http://wiki.apache.org/solr/ExtractingRequestHandler
|
|
905
|
+ http://wiki.apache.org/solr/ExtractingRequestHandler
|
906
|
906
|
|
907
|
907
|
-->
|
908
|
|
- <requestHandler name="/update/extract"
|
|
908
|
+ <requestHandler name="/update/extract"
|
909
|
909
|
startup="lazy"
|
910
|
910
|
class="solr.extraction.ExtractingRequestHandler" >
|
911
|
911
|
<lst name="defaults">
|
|
@@ -947,7 +947,7 @@
|
947
|
947
|
field value analysis will be marked as "matched" for every
|
948
|
948
|
token that is produces by the query analysis
|
949
|
949
|
-->
|
950
|
|
- <requestHandler name="/analysis/field"
|
|
950
|
+ <requestHandler name="/analysis/field"
|
951
|
951
|
startup="lazy"
|
952
|
952
|
class="solr.FieldAnalysisRequestHandler" />
|
953
|
953
|
|
|
@@ -980,18 +980,18 @@
|
980
|
980
|
request parameter that holds the query text to be analyzed. It
|
981
|
981
|
also supports the "analysis.showmatch" parameter which when set to
|
982
|
982
|
true, all field tokens that match the query tokens will be marked
|
983
|
|
- as a "match".
|
|
983
|
+ as a "match".
|
984
|
984
|
-->
|
985
|
|
- <requestHandler name="/analysis/document"
|
986
|
|
- class="solr.DocumentAnalysisRequestHandler"
|
|
985
|
+ <requestHandler name="/analysis/document"
|
|
986
|
+ class="solr.DocumentAnalysisRequestHandler"
|
987
|
987
|
startup="lazy" />
|
988
|
988
|
|
989
|
989
|
<!-- Admin Handlers
|
990
|
990
|
|
991
|
991
|
Admin Handlers - This will register all the standard admin
|
992
|
|
- RequestHandlers.
|
|
992
|
+ RequestHandlers.
|
993
|
993
|
-->
|
994
|
|
- <requestHandler name="/admin/"
|
|
994
|
+ <requestHandler name="/admin/"
|
995
|
995
|
class="solr.admin.AdminHandlers" />
|
996
|
996
|
<!-- This single handler is equivalent to the following... -->
|
997
|
997
|
<!--
|
|
@@ -1003,14 +1003,14 @@
|
1003
|
1003
|
<requestHandler name="/admin/file" class="solr.admin.ShowFileRequestHandler" >
|
1004
|
1004
|
-->
|
1005
|
1005
|
<!-- If you wish to hide files under ${solr.home}/conf, explicitly
|
1006
|
|
- register the ShowFileRequestHandler using:
|
|
1006
|
+ register the ShowFileRequestHandler using:
|
1007
|
1007
|
-->
|
1008
|
1008
|
<!--
|
1009
|
|
- <requestHandler name="/admin/file"
|
|
1009
|
+ <requestHandler name="/admin/file"
|
1010
|
1010
|
class="solr.admin.ShowFileRequestHandler" >
|
1011
|
1011
|
<lst name="invariants">
|
1012
|
|
- <str name="hidden">synonyms.txt</str>
|
1013
|
|
- <str name="hidden">anotherfile.txt</str>
|
|
1012
|
+ <str name="hidden">synonyms.txt</str>
|
|
1013
|
+ <str name="hidden">anotherfile.txt</str>
|
1014
|
1014
|
</lst>
|
1015
|
1015
|
</requestHandler>
|
1016
|
1016
|
-->
|
|
@@ -1028,7 +1028,7 @@
|
1028
|
1028
|
<!-- Echo the request contents back to the client -->
|
1029
|
1029
|
<requestHandler name="/debug/dump" class="solr.DumpRequestHandler" >
|
1030
|
1030
|
<lst name="defaults">
|
1031
|
|
- <str name="echoParams">explicit</str>
|
|
1031
|
+ <str name="echoParams">explicit</str>
|
1032
|
1032
|
<str name="echoHandler">true</str>
|
1033
|
1033
|
</lst>
|
1034
|
1034
|
</requestHandler>
|
|
@@ -1038,7 +1038,7 @@
|
1038
|
1038
|
The SolrReplicationHandler supports replicating indexes from a
|
1039
|
1039
|
"master" used for indexing and "slaves" used for queries.
|
1040
|
1040
|
|
1041
|
|
- http://wiki.apache.org/solr/SolrReplication
|
|
1041
|
+ http://wiki.apache.org/solr/SolrReplication
|
1042
|
1042
|
|
1043
|
1043
|
In the example below, remove the <lst name="master"> section if
|
1044
|
1044
|
this is just a slave and remove the <lst name="slave"> section
|
|
@@ -1060,18 +1060,18 @@
|
1060
|
1060
|
|
1061
|
1061
|
<!-- Search Components
|
1062
|
1062
|
|
1063
|
|
- Search components are registered to SolrCore and used by
|
|
1063
|
+ Search components are registered to SolrCore and used by
|
1064
|
1064
|
instances of SearchHandler (which can access them by name)
|
1065
|
|
-
|
|
1065
|
+
|
1066
|
1066
|
By default, the following components are available:
|
1067
|
|
-
|
|
1067
|
+
|
1068
|
1068
|
<searchComponent name="query" class="solr.QueryComponent" />
|
1069
|
1069
|
<searchComponent name="facet" class="solr.FacetComponent" />
|
1070
|
1070
|
<searchComponent name="mlt" class="solr.MoreLikeThisComponent" />
|
1071
|
1071
|
<searchComponent name="highlight" class="solr.HighlightComponent" />
|
1072
|
1072
|
<searchComponent name="stats" class="solr.StatsComponent" />
|
1073
|
1073
|
<searchComponent name="debug" class="solr.DebugComponent" />
|
1074
|
|
-
|
|
1074
|
+
|
1075
|
1075
|
Default configuration in a requestHandler would look like:
|
1076
|
1076
|
|
1077
|
1077
|
<arr name="components">
|
|
@@ -1083,28 +1083,28 @@
|
1083
|
1083
|
<str>debug</str>
|
1084
|
1084
|
</arr>
|
1085
|
1085
|
|
1086
|
|
- If you register a searchComponent to one of the standard names,
|
|
1086
|
+ If you register a searchComponent to one of the standard names,
|
1087
|
1087
|
that will be used instead of the default.
|
1088
|
1088
|
|
1089
|
1089
|
To insert components before or after the 'standard' components, use:
|
1090
|
|
-
|
|
1090
|
+
|
1091
|
1091
|
<arr name="first-components">
|
1092
|
1092
|
<str>myFirstComponentName</str>
|
1093
|
1093
|
</arr>
|
1094
|
|
-
|
|
1094
|
+
|
1095
|
1095
|
<arr name="last-components">
|
1096
|
1096
|
<str>myLastComponentName</str>
|
1097
|
1097
|
</arr>
|
1098
|
1098
|
|
1099
|
1099
|
NOTE: The component registered with the name "debug" will
|
1100
|
|
- always be executed after the "last-components"
|
1101
|
|
-
|
|
1100
|
+ always be executed after the "last-components"
|
|
1101
|
+
|
1102
|
1102
|
-->
|
1103
|
1103
|
|
1104
|
1104
|
<!-- Spell Check
|
1105
|
1105
|
|
1106
|
1106
|
The spell check component can return a list of alternative spelling
|
1107
|
|
- suggestions.
|
|
1107
|
+ suggestions.
|
1108
|
1108
|
|
1109
|
1109
|
http://wiki.apache.org/solr/SpellCheckComponent
|
1110
|
1110
|
-->
|
|
@@ -1123,7 +1123,7 @@
|
1123
|
1123
|
<str name="name">default</str>
|
1124
|
1124
|
<str name="field">name</str>
|
1125
|
1125
|
<str name="spellcheckIndexDir">spellchecker</str>
|
1126
|
|
- <!-- uncomment this to require terms to occur in 1% of the documents
|
|
1126
|
+ <!-- uncomment this to require terms to occur in 1% of the documents
|
1127
|
1127
|
in order to be included in the dictionary
|
1128
|
1128
|
-->
|
1129
|
1129
|
<!--
|
|
@@ -1143,7 +1143,7 @@
|
1143
|
1143
|
</lst>
|
1144
|
1144
|
-->
|
1145
|
1145
|
|
1146
|
|
- <!-- a spellchecker that use an alternate comparator
|
|
1146
|
+ <!-- a spellchecker that use an alternate comparator
|
1147
|
1147
|
|
1148
|
1148
|
comparatorClass be one of:
|
1149
|
1149
|
1. score (default)
|
|
@@ -1171,7 +1171,7 @@
|
1171
|
1171
|
-->
|
1172
|
1172
|
</searchComponent>
|
1173
|
1173
|
|
1174
|
|
- <!-- A request handler for demonstrating the spellcheck component.
|
|
1174
|
+ <!-- A request handler for demonstrating the spellcheck component.
|
1175
|
1175
|
|
1176
|
1176
|
NOTE: This is purely as an example. The whole purpose of the
|
1177
|
1177
|
SpellCheckComponent is to hook it into the request handler that
|
|
@@ -1180,7 +1180,7 @@
|
1180
|
1180
|
|
1181
|
1181
|
IN OTHER WORDS, THERE IS REALLY GOOD CHANCE THE SETUP BELOW IS
|
1182
|
1182
|
NOT WHAT YOU WANT FOR YOUR PRODUCTION SYSTEM!
|
1183
|
|
-
|
|
1183
|
+
|
1184
|
1184
|
See http://wiki.apache.org/solr/SpellCheckComponent for details
|
1185
|
1185
|
on the request parameters.
|
1186
|
1186
|
-->
|
|
@@ -1206,8 +1206,8 @@
|
1206
|
1206
|
|
1207
|
1207
|
This is purely as an example.
|
1208
|
1208
|
|
1209
|
|
- In reality you will likely want to add the component to your
|
1210
|
|
- already specified request handlers.
|
|
1209
|
+ In reality you will likely want to add the component to your
|
|
1210
|
+ already specified request handlers.
|
1211
|
1211
|
-->
|
1212
|
1212
|
<requestHandler name="/tvrh" class="solr.SearchHandler" startup="lazy">
|
1213
|
1213
|
<lst name="defaults">
|
|
@@ -1230,7 +1230,7 @@
|
1230
|
1230
|
|
1231
|
1231
|
java -Dsolr.clustering.enabled=true -jar start.jar
|
1232
|
1232
|
-->
|
1233
|
|
- <searchComponent name="clustering"
|
|
1233
|
+ <searchComponent name="clustering"
|
1234
|
1234
|
enable="${solr.clustering.enabled:false}"
|
1235
|
1235
|
class="solr.clustering.ClusteringComponent" >
|
1236
|
1236
|
<!-- Declare an engine -->
|
|
@@ -1238,14 +1238,14 @@
|
1238
|
1238
|
<!-- The name, only one can be named "default" -->
|
1239
|
1239
|
<str name="name">default</str>
|
1240
|
1240
|
|
1241
|
|
- <!-- Class name of Carrot2 clustering algorithm.
|
1242
|
|
-
|
|
1241
|
+ <!-- Class name of Carrot2 clustering algorithm.
|
|
1242
|
+
|
1243
|
1243
|
Currently available algorithms are:
|
1244
|
|
-
|
|
1244
|
+
|
1245
|
1245
|
* org.carrot2.clustering.lingo.LingoClusteringAlgorithm
|
1246
|
1246
|
* org.carrot2.clustering.stc.STCClusteringAlgorithm
|
1247
|
1247
|
* org.carrot2.clustering.kmeans.BisectingKMeansClusteringAlgorithm
|
1248
|
|
-
|
|
1248
|
+
|
1249
|
1249
|
See http://project.carrot2.org/algorithms.html for the
|
1250
|
1250
|
algorithm's characteristics.
|
1251
|
1251
|
-->
|
|
@@ -1261,7 +1261,7 @@
|
1261
|
1261
|
name and attribute value as parameter value.
|
1262
|
1262
|
-->
|
1263
|
1263
|
<str name="LingoClusteringAlgorithm.desiredClusterCountBase">20</str>
|
1264
|
|
-
|
|
1264
|
+
|
1265
|
1265
|
<!-- Location of Carrot2 lexical resources.
|
1266
|
1266
|
|
1267
|
1267
|
A directory from which to load Carrot2-specific stop words
|
|
@@ -1276,7 +1276,7 @@
|
1276
|
1276
|
<str name="carrot.lexicalResourcesDir">clustering/carrot2</str>
|
1277
|
1277
|
|
1278
|
1278
|
<!-- The language to assume for the documents.
|
1279
|
|
-
|
|
1279
|
+
|
1280
|
1280
|
For a list of allowed values, see:
|
1281
|
1281
|
http://download.carrot2.org/stable/manual/#section.attribute.lingo.MultilingualClustering.defaultLanguage
|
1282
|
1282
|
-->
|
|
@@ -1292,8 +1292,8 @@
|
1292
|
1292
|
|
1293
|
1293
|
This is purely as an example.
|
1294
|
1294
|
|
1295
|
|
- In reality you will likely want to add the component to your
|
1296
|
|
- already specified request handlers.
|
|
1295
|
+ In reality you will likely want to add the component to your
|
|
1296
|
+ already specified request handlers.
|
1297
|
1297
|
-->
|
1298
|
1298
|
<requestHandler name="/clustering"
|
1299
|
1299
|
startup="lazy"
|
|
@@ -1314,7 +1314,7 @@
|
1314
|
1314
|
<!--<int name="carrot.numDescriptions">5</int>-->
|
1315
|
1315
|
<!-- produce sub clusters -->
|
1316
|
1316
|
<bool name="carrot.outputSubClusters">false</bool>
|
1317
|
|
-
|
|
1317
|
+
|
1318
|
1318
|
<str name="df">text</str>
|
1319
|
1319
|
<str name="defType">edismax</str>
|
1320
|
1320
|
<str name="qf">
|
|
@@ -1323,12 +1323,12 @@
|
1323
|
1323
|
<str name="q.alt">*:*</str>
|
1324
|
1324
|
<str name="rows">10</str>
|
1325
|
1325
|
<str name="fl">*,score</str>
|
1326
|
|
- </lst>
|
|
1326
|
+ </lst>
|
1327
|
1327
|
<arr name="last-components">
|
1328
|
1328
|
<str>clustering</str>
|
1329
|
1329
|
</arr>
|
1330
|
1330
|
</requestHandler>
|
1331
|
|
-
|
|
1331
|
+
|
1332
|
1332
|
<!-- Terms Component
|
1333
|
1333
|
|
1334
|
1334
|
http://wiki.apache.org/solr/TermsComponent
|
|
@@ -1342,7 +1342,7 @@
|
1342
|
1342
|
<requestHandler name="/terms" class="solr.SearchHandler" startup="lazy">
|
1343
|
1343
|
<lst name="defaults">
|
1344
|
1344
|
<bool name="terms">true</bool>
|
1345
|
|
- </lst>
|
|
1345
|
+ </lst>
|
1346
|
1346
|
<arr name="components">
|
1347
|
1347
|
<str>terms</str>
|
1348
|
1348
|
</arr>
|
|
@@ -1382,7 +1382,7 @@
|
1382
|
1382
|
<highlighting>
|
1383
|
1383
|
<!-- Configure the standard fragmenter -->
|
1384
|
1384
|
<!-- This could most likely be commented out in the "default" case -->
|
1385
|
|
- <fragmenter name="gap"
|
|
1385
|
+ <fragmenter name="gap"
|
1386
|
1386
|
default="true"
|
1387
|
1387
|
class="solr.highlight.GapFragmenter">
|
1388
|
1388
|
<lst name="defaults">
|
|
@@ -1390,10 +1390,10 @@
|
1390
|
1390
|
</lst>
|
1391
|
1391
|
</fragmenter>
|
1392
|
1392
|
|
1393
|
|
- <!-- A regular-expression-based fragmenter
|
1394
|
|
- (for sentence extraction)
|
|
1393
|
+ <!-- A regular-expression-based fragmenter
|
|
1394
|
+ (for sentence extraction)
|
1395
|
1395
|
-->
|
1396
|
|
- <fragmenter name="regex"
|
|
1396
|
+ <fragmenter name="regex"
|
1397
|
1397
|
class="solr.highlight.RegexFragmenter">
|
1398
|
1398
|
<lst name="defaults">
|
1399
|
1399
|
<!-- slightly smaller fragsizes work better because of slop -->
|
|
@@ -1406,7 +1406,7 @@
|
1406
|
1406
|
</fragmenter>
|
1407
|
1407
|
|
1408
|
1408
|
<!-- Configure the standard formatter -->
|
1409
|
|
- <formatter name="html"
|
|
1409
|
+ <formatter name="html"
|
1410
|
1410
|
default="true"
|
1411
|
1411
|
class="solr.highlight.HtmlFormatter">
|
1412
|
1412
|
<lst name="defaults">
|
|
@@ -1416,23 +1416,23 @@
|
1416
|
1416
|
</formatter>
|
1417
|
1417
|
|
1418
|
1418
|
<!-- Configure the standard encoder -->
|
1419
|
|
- <encoder name="html"
|
|
1419
|
+ <encoder name="html"
|
1420
|
1420
|
class="solr.highlight.HtmlEncoder" />
|
1421
|
1421
|
|
1422
|
1422
|
<!-- Configure the standard fragListBuilder -->
|
1423
|
|
- <fragListBuilder name="simple"
|
|
1423
|
+ <fragListBuilder name="simple"
|
1424
|
1424
|
default="true"
|
1425
|
1425
|
class="solr.highlight.SimpleFragListBuilder"/>
|
1426
|
1426
|
|
1427
|
1427
|
<!-- Configure the single fragListBuilder -->
|
1428
|
|
- <fragListBuilder name="single"
|
|
1428
|
+ <fragListBuilder name="single"
|
1429
|
1429
|
class="solr.highlight.SingleFragListBuilder"/>
|
1430
|
1430
|
|
1431
|
1431
|
<!-- default tag FragmentsBuilder -->
|
1432
|
|
- <fragmentsBuilder name="default"
|
|
1432
|
+ <fragmentsBuilder name="default"
|
1433
|
1433
|
default="true"
|
1434
|
1434
|
class="solr.highlight.ScoreOrderFragmentsBuilder">
|
1435
|
|
- <!--
|
|
1435
|
+ <!--
|
1436
|
1436
|
<lst name="defaults">
|
1437
|
1437
|
<str name="hl.multiValuedSeparatorChar">/</str>
|
1438
|
1438
|
</lst>
|
|
@@ -1440,7 +1440,7 @@
|
1440
|
1440
|
</fragmentsBuilder>
|
1441
|
1441
|
|
1442
|
1442
|
<!-- multi-colored tag FragmentsBuilder -->
|
1443
|
|
- <fragmentsBuilder name="colored"
|
|
1443
|
+ <fragmentsBuilder name="colored"
|
1444
|
1444
|
class="solr.highlight.ScoreOrderFragmentsBuilder">
|
1445
|
1445
|
<lst name="defaults">
|
1446
|
1446
|
<str name="hl.tag.pre"><![CDATA[
|
|
@@ -1452,8 +1452,8 @@
|
1452
|
1452
|
<str name="hl.tag.post"><![CDATA[</b>]]></str>
|
1453
|
1453
|
</lst>
|
1454
|
1454
|
</fragmentsBuilder>
|
1455
|
|
-
|
1456
|
|
- <boundaryScanner name="default"
|
|
1455
|
+
|
|
1456
|
+ <boundaryScanner name="default"
|
1457
|
1457
|
default="true"
|
1458
|
1458
|
class="solr.highlight.SimpleBoundaryScanner">
|
1459
|
1459
|
<lst name="defaults">
|
|
@@ -1461,20 +1461,20 @@
|
1461
|
1461
|
<str name="hl.bs.chars">.,!? 	 </str>
|
1462
|
1462
|
</lst>
|
1463
|
1463
|
</boundaryScanner>
|
1464
|
|
-
|
1465
|
|
- <boundaryScanner name="breakIterator"
|
|
1464
|
+
|
|
1465
|
+ <boundaryScanner name="breakIterator"
|
1466
|
1466
|
class="solr.highlight.BreakIteratorBoundaryScanner">
|
1467
|
1467
|
<lst name="defaults">
|
1468
|
1468
|
<!-- type should be one of:
|
1469
|
|
- * CHARACTER
|
|
1469
|
+ * CHARACTER
|
1470
|
1470
|
* WORD (default)
|
1471
|
1471
|
* LINE
|
1472
|
|
- * SENTENCE
|
|
1472
|
+ * SENTENCE
|
1473
|
1473
|
-->
|
1474
|
1474
|
<str name="hl.bs.type">WORD</str>
|
1475
|
|
- <!-- language and country are used when constructing Locale
|
1476
|
|
- object which will be used when getting instance of
|
1477
|
|
- BreakIterator
|
|
1475
|
+ <!-- language and country are used when constructing Locale
|
|
1476
|
+ object which will be used when getting instance of
|
|
1477
|
+ BreakIterator
|
1478
|
1478
|
-->
|
1479
|
1479
|
<str name="hl.bs.language">en</str>
|
1480
|
1480
|
<str name="hl.bs.country">US</str>
|
|
@@ -1491,15 +1491,15 @@
|
1491
|
1491
|
|
1492
|
1492
|
http://wiki.apache.org/solr/UpdateRequestProcessor
|
1493
|
1493
|
|
1494
|
|
- -->
|
|
1494
|
+ -->
|
1495
|
1495
|
<!-- Deduplication
|
1496
|
1496
|
|
1497
|
1497
|
An example dedup update processor that creates the "id" field
|
1498
|
1498
|
on the fly based on the hash code of some other fields. This
|
1499
|
1499
|
example has overwriteDupes set to false since we are using the
|
1500
|
1500
|
id field as the signatureField and Solr will maintain
|
1501
|
|
- uniqueness based on that anyway.
|
1502
|
|
-
|
|
1501
|
+ uniqueness based on that anyway.
|
|
1502
|
+
|
1503
|
1503
|
-->
|
1504
|
1504
|
<!--
|
1505
|
1505
|
<updateRequestProcessorChain name="dedupe">
|
|
@@ -1535,7 +1535,7 @@
|
1535
|
1535
|
<processor class="solr.RunUpdateProcessorFactory" />
|
1536
|
1536
|
</updateRequestProcessorChain>
|
1537
|
1537
|
-->
|
1538
|
|
-
|
|
1538
|
+
|
1539
|
1539
|
<!-- Response Writers
|
1540
|
1540
|
|
1541
|
1541
|
http://wiki.apache.org/solr/QueryResponseWriter
|
|
@@ -1551,7 +1551,7 @@
|
1551
|
1551
|
overridden...
|
1552
|
1552
|
-->
|
1553
|
1553
|
<!--
|
1554
|
|
- <queryResponseWriter name="xml"
|
|
1554
|
+ <queryResponseWriter name="xml"
|
1555
|
1555
|
default="true"
|
1556
|
1556
|
class="solr.XMLResponseWriter" />
|
1557
|
1557
|
<queryResponseWriter name="json" class="solr.JSONResponseWriter"/>
|
|
@@ -1569,16 +1569,16 @@
|
1569
|
1569
|
-->
|
1570
|
1570
|
<str name="content-type">text/plain; charset=UTF-8</str>
|
1571
|
1571
|
</queryResponseWriter>
|
1572
|
|
-
|
|
1572
|
+
|
1573
|
1573
|
<!--
|
1574
|
1574
|
Custom response writers can be declared as needed...
|
1575
|
1575
|
-->
|
1576
|
1576
|
<queryResponseWriter name="velocity" class="solr.VelocityResponseWriter" startup="lazy"/>
|
1577
|
|
-
|
|
1577
|
+
|
1578
|
1578
|
|
1579
|
1579
|
<!-- XSLT response writer transforms the XML output by any xslt file found
|
1580
|
1580
|
in Solr's conf/xslt directory. Changes to xslt files are checked for
|
1581
|
|
- every xsltCacheLifetimeSeconds.
|
|
1581
|
+ every xsltCacheLifetimeSeconds.
|
1582
|
1582
|
-->
|
1583
|
1583
|
<queryResponseWriter name="xslt" class="solr.XSLTResponseWriter">
|
1584
|
1584
|
<int name="xsltCacheLifetimeSeconds">5</int>
|
|
@@ -1606,7 +1606,7 @@
|
1606
|
1606
|
-->
|
1607
|
1607
|
<!-- example of registering a custom function parser -->
|
1608
|
1608
|
<!--
|
1609
|
|
- <valueSourceParser name="myfunc"
|
|
1609
|
+ <valueSourceParser name="myfunc"
|
1610
|
1610
|
class="com.mycompany.MyValueSourceParser" />
|
1611
|
1611
|
-->
|
1612
|
1612
|
|
|
@@ -1615,7 +1615,7 @@
|
1615
|
1615
|
<defaultQuery>*:*</defaultQuery>
|
1616
|
1616
|
|
1617
|
1617
|
<!-- configure a healthcheck file for servers behind a
|
1618
|
|
- loadbalancer
|
|
1618
|
+ loadbalancer
|
1619
|
1619
|
-->
|
1620
|
1620
|
<!--
|
1621
|
1621
|
<healthcheck type="file">server-enabled</healthcheck>
|