blacklight-access_controls 6.0.0 → 6.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/README.textile +3 -5
  3. data/VERSION +1 -1
  4. data/blacklight-access_controls.gemspec +1 -1
  5. data/solr_conf/conf/_rest_managed.json +3 -0
  6. data/solr_conf/conf/admin-extra.html +12 -5
  7. data/solr_conf/conf/elevate.xml +1 -3
  8. data/solr_conf/conf/mapping-ISOLatin1Accent.txt +76 -76
  9. data/solr_conf/conf/schema.xml +257 -238
  10. data/solr_conf/conf/scripts.conf +24 -0
  11. data/solr_conf/conf/solrconfig.xml +37 -153
  12. data/solr_conf/conf/stopwords.txt +44 -0
  13. data/solr_conf/conf/{lang/stopwords_en.txt → stopwords_en.txt} +5 -1
  14. data/solr_conf/conf/synonyms.txt +5 -3
  15. data/solr_conf/conf/xslt/example.xsl +1 -1
  16. data/solr_conf/conf/xslt/example_atom.xsl +1 -1
  17. data/solr_conf/conf/xslt/example_rss.xsl +1 -1
  18. data/solr_conf/conf/xslt/luke.xsl +3 -3
  19. metadata +8 -60
  20. data/solr_conf/conf/abc123 +0 -0
  21. data/solr_conf/conf/admin-extra.menu-bottom.html +0 -25
  22. data/solr_conf/conf/admin-extra.menu-top.html +0 -25
  23. data/solr_conf/conf/clustering/carrot2/kmeans-attributes.xml +0 -19
  24. data/solr_conf/conf/clustering/carrot2/lingo-attributes.xml +0 -24
  25. data/solr_conf/conf/clustering/carrot2/stc-attributes.xml +0 -19
  26. data/solr_conf/conf/currency.xml +0 -67
  27. data/solr_conf/conf/dataimport.properties +0 -3
  28. data/solr_conf/conf/db-data-config.xml +0 -93
  29. data/solr_conf/conf/lang/contractions_ca.txt +0 -8
  30. data/solr_conf/conf/lang/contractions_fr.txt +0 -15
  31. data/solr_conf/conf/lang/contractions_ga.txt +0 -5
  32. data/solr_conf/conf/lang/contractions_it.txt +0 -23
  33. data/solr_conf/conf/lang/hyphenations_ga.txt +0 -5
  34. data/solr_conf/conf/lang/stemdict_nl.txt +0 -6
  35. data/solr_conf/conf/lang/stoptags_ja.txt +0 -420
  36. data/solr_conf/conf/lang/stopwords_ar.txt +0 -125
  37. data/solr_conf/conf/lang/stopwords_bg.txt +0 -193
  38. data/solr_conf/conf/lang/stopwords_ca.txt +0 -220
  39. data/solr_conf/conf/lang/stopwords_ckb.txt +0 -136
  40. data/solr_conf/conf/lang/stopwords_cz.txt +0 -172
  41. data/solr_conf/conf/lang/stopwords_da.txt +0 -110
  42. data/solr_conf/conf/lang/stopwords_de.txt +0 -294
  43. data/solr_conf/conf/lang/stopwords_el.txt +0 -78
  44. data/solr_conf/conf/lang/stopwords_es.txt +0 -356
  45. data/solr_conf/conf/lang/stopwords_eu.txt +0 -99
  46. data/solr_conf/conf/lang/stopwords_fa.txt +0 -313
  47. data/solr_conf/conf/lang/stopwords_fi.txt +0 -97
  48. data/solr_conf/conf/lang/stopwords_fr.txt +0 -186
  49. data/solr_conf/conf/lang/stopwords_ga.txt +0 -110
  50. data/solr_conf/conf/lang/stopwords_gl.txt +0 -161
  51. data/solr_conf/conf/lang/stopwords_hi.txt +0 -235
  52. data/solr_conf/conf/lang/stopwords_hu.txt +0 -211
  53. data/solr_conf/conf/lang/stopwords_hy.txt +0 -46
  54. data/solr_conf/conf/lang/stopwords_id.txt +0 -359
  55. data/solr_conf/conf/lang/stopwords_it.txt +0 -303
  56. data/solr_conf/conf/lang/stopwords_ja.txt +0 -127
  57. data/solr_conf/conf/lang/stopwords_lv.txt +0 -172
  58. data/solr_conf/conf/lang/stopwords_nl.txt +0 -119
  59. data/solr_conf/conf/lang/stopwords_no.txt +0 -194
  60. data/solr_conf/conf/lang/stopwords_pt.txt +0 -253
  61. data/solr_conf/conf/lang/stopwords_ro.txt +0 -233
  62. data/solr_conf/conf/lang/stopwords_ru.txt +0 -243
  63. data/solr_conf/conf/lang/stopwords_sv.txt +0 -133
  64. data/solr_conf/conf/lang/stopwords_th.txt +0 -119
  65. data/solr_conf/conf/lang/stopwords_tr.txt +0 -212
  66. data/solr_conf/conf/lang/userdict_ja.txt +0 -29
  67. data/solr_conf/conf/mapping-FoldToASCII.txt +0 -3813
  68. data/solr_conf/conf/solrconfig.adams.xml +0 -1903
  69. data/solr_conf/conf/solrconfig.old.xml +0 -1634
  70. data/solr_conf/conf/solrconfig.xml.orig +0 -3531
  71. data/solr_conf/conf/update-script.js +0 -53
  72. data/solr_conf/conf/xslt/updateXml.xsl +0 -70
@@ -1,3531 +0,0 @@
1
- <<<<<<< HEAD
2
- <?xml version="1.0" encoding="UTF-8" ?>
3
- <!--
4
- Licensed to the Apache Software Foundation (ASF) under one or more
5
- contributor license agreements. See the NOTICE file distributed with
6
- this work for additional information regarding copyright ownership.
7
- The ASF licenses this file to You under the Apache License, Version 2.0
8
- (the "License"); you may not use this file except in compliance with
9
- the License. You may obtain a copy of the License at
10
-
11
- http://www.apache.org/licenses/LICENSE-2.0
12
-
13
- Unless required by applicable law or agreed to in writing, software
14
- distributed under the License is distributed on an "AS IS" BASIS,
15
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- See the License for the specific language governing permissions and
17
- limitations under the License.
18
- -->
19
-
20
- <!--
21
- For more details about configurations options that may appear in
22
- this file, see http://wiki.apache.org/solr/SolrConfigXml.
23
- -->
24
- <config>
25
- <!-- In all configuration below, a prefix of "solr." for class names
26
- is an alias that causes solr to search appropriate packages,
27
- including org.apache.solr.(search|update|request|core|analysis)
28
-
29
- You may also specify a fully qualified Java classname if you
30
- have your own custom plugins.
31
- -->
32
-
33
- <!-- Controls what version of Lucene various components of Solr
34
- adhere to. Generally, you want to use the latest version to
35
- get all bug fixes and improvements. It is highly recommended
36
- that you fully re-index after changing this setting as it can
37
- affect both how text is indexed and queried.
38
- -->
39
- <luceneMatchVersion>4.10.4</luceneMatchVersion>
40
-
41
- <!-- <lib/> directives can be used to instruct Solr to load any Jars
42
- identified and use them to resolve any "plugins" specified in
43
- your solrconfig.xml or schema.xml (ie: Analyzers, Request
44
- Handlers, etc...).
45
-
46
- All directories and paths are resolved relative to the
47
- instanceDir.
48
-
49
- Please note that <lib/> directives are processed in the order
50
- that they appear in your solrconfig.xml file, and are "stacked"
51
- on top of each other when building a ClassLoader - so if you have
52
- plugin jars with dependencies on other jars, the "lower level"
53
- dependency jars should be loaded first.
54
-
55
- If a "./lib" directory exists in your instanceDir, all files
56
- found in it are included as if you had used the following
57
- syntax...
58
-
59
- <lib dir="./lib" />
60
- -->
61
- <lib dir="../lib/contrib/analysis-extras/lib" />
62
- <lib dir="../lib/contrib/analysis-extras/lucene-libs" />
63
- <lib dir="../lib/contrib/extraction/lib" regex=".*\.jar" />
64
-
65
- <!-- Data Directory
66
-
67
- Used to specify an alternate directory to hold all index data
68
- other than the default ./data under the Solr home. If
69
- replication is in use, this should match the replication
70
- configuration.
71
- -->
72
- <dataDir>${solr.data.dir:}</dataDir>
73
-
74
- <!-- The DirectoryFactory to use for indexes.
75
-
76
- solr.StandardDirectoryFactory is filesystem
77
- based and tries to pick the best implementation for the current
78
- JVM and platform. solr.NRTCachingDirectoryFactory, the default,
79
- wraps solr.StandardDirectoryFactory and caches small files in memory
80
- for better NRT performance.
81
-
82
- One can force a particular implementation via solr.MMapDirectoryFactory,
83
- solr.NIOFSDirectoryFactory, or solr.SimpleFSDirectoryFactory.
84
-
85
- solr.RAMDirectoryFactory is memory based, not
86
- persistent, and doesn't work with replication.
87
- -->
88
- <directoryFactory name="DirectoryFactory"
89
- class="${solr.directoryFactory:solr.NRTCachingDirectoryFactory}">
90
-
91
-
92
- <!-- These will be used if you are using the solr.HdfsDirectoryFactory,
93
- otherwise they will be ignored. If you don't plan on using hdfs,
94
- you can safely remove this section. -->
95
- <!-- The root directory that collection data should be written to. -->
96
- <str name="solr.hdfs.home">${solr.hdfs.home:}</str>
97
- <!-- The hadoop configuration files to use for the hdfs client. -->
98
- <str name="solr.hdfs.confdir">${solr.hdfs.confdir:}</str>
99
- <!-- Enable/Disable the hdfs cache. -->
100
- <str name="solr.hdfs.blockcache.enabled">${solr.hdfs.blockcache.enabled:true}</str>
101
- <!-- Enable/Disable using one global cache for all SolrCores.
102
- The settings used will be from the first HdfsDirectoryFactory created. -->
103
- <str name="solr.hdfs.blockcache.global">${solr.hdfs.blockcache.global:true}</str>
104
-
105
- </directoryFactory>
106
-
107
- <!-- The CodecFactory for defining the format of the inverted index.
108
- The default implementation is SchemaCodecFactory, which is the official Lucene
109
- index format, but hooks into the schema to provide per-field customization of
110
- the postings lists and per-document values in the fieldType element
111
- (postingsFormat/docValuesFormat). Note that most of the alternative implementations
112
- are experimental, so if you choose to customize the index format, its a good
113
- idea to convert back to the official format e.g. via IndexWriter.addIndexes(IndexReader)
114
- before upgrading to a newer version to avoid unnecessary reindexing.
115
- -->
116
- <codecFactory class="solr.SchemaCodecFactory"/>
117
-
118
- <!-- To enable dynamic schema REST APIs, use the following for <schemaFactory>:
119
-
120
- <schemaFactory class="ManagedIndexSchemaFactory">
121
- <bool name="mutable">true</bool>
122
- <str name="managedSchemaResourceName">managed-schema</str>
123
- </schemaFactory>
124
-
125
- When ManagedIndexSchemaFactory is specified, Solr will load the schema from
126
- he resource named in 'managedSchemaResourceName', rather than from schema.xml.
127
- Note that the managed schema resource CANNOT be named schema.xml. If the managed
128
- schema does not exist, Solr will create it after reading schema.xml, then rename
129
- 'schema.xml' to 'schema.xml.bak'.
130
-
131
- Do NOT hand edit the managed schema - external modifications will be ignored and
132
- overwritten as a result of schema modification REST API calls.
133
-
134
- When ManagedIndexSchemaFactory is specified with mutable = true, schema
135
- modification REST API calls will be allowed; otherwise, error responses will be
136
- sent back for these requests.
137
- -->
138
- <schemaFactory class="ClassicIndexSchemaFactory"/>
139
-
140
- <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
141
- Index Config - These settings control low-level behavior of indexing
142
- Most example settings here show the default value, but are commented
143
- out, to more easily see where customizations have been made.
144
-
145
- Note: This replaces <indexDefaults> and <mainIndex> from older versions
146
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
147
- <indexConfig>
148
- <!-- maxFieldLength was removed in 4.0. To get similar behavior, include a
149
- LimitTokenCountFilterFactory in your fieldType definition. E.g.
150
- <filter class="solr.LimitTokenCountFilterFactory" maxTokenCount="10000"/>
151
- -->
152
- <!-- Maximum time to wait for a write lock (ms) for an IndexWriter. Default: 1000 -->
153
- <!-- <writeLockTimeout>1000</writeLockTimeout> -->
154
-
155
- <!-- The maximum number of simultaneous threads that may be
156
- indexing documents at once in IndexWriter; if more than this
157
- many threads arrive they will wait for others to finish.
158
- Default in Solr/Lucene is 8. -->
159
- <!-- <maxIndexingThreads>8</maxIndexingThreads> -->
160
-
161
- <!-- Expert: Enabling compound file will use less files for the index,
162
- using fewer file descriptors on the expense of performance decrease.
163
- Default in Lucene is "true". Default in Solr is "false" (since 3.6) -->
164
- <!-- <useCompoundFile>false</useCompoundFile> -->
165
-
166
- <!-- ramBufferSizeMB sets the amount of RAM that may be used by Lucene
167
- indexing for buffering added documents and deletions before they are
168
- flushed to the Directory.
169
- maxBufferedDocs sets a limit on the number of documents buffered
170
- before flushing.
171
- If both ramBufferSizeMB and maxBufferedDocs is set, then
172
- Lucene will flush based on whichever limit is hit first.
173
- The default is 100 MB. -->
174
- <!-- <ramBufferSizeMB>100</ramBufferSizeMB> -->
175
- <!-- <maxBufferedDocs>1000</maxBufferedDocs> -->
176
-
177
- <!-- Expert: Merge Policy
178
- The Merge Policy in Lucene controls how merging of segments is done.
179
- The default since Solr/Lucene 3.3 is TieredMergePolicy.
180
- The default since Lucene 2.3 was the LogByteSizeMergePolicy,
181
- Even older versions of Lucene used LogDocMergePolicy.
182
- -->
183
- <!--
184
- <mergePolicy class="org.apache.lucene.index.TieredMergePolicy">
185
- <int name="maxMergeAtOnce">10</int>
186
- <int name="segmentsPerTier">10</int>
187
- </mergePolicy>
188
- -->
189
-
190
- <!-- Merge Factor
191
- The merge factor controls how many segments will get merged at a time.
192
- For TieredMergePolicy, mergeFactor is a convenience parameter which
193
- will set both MaxMergeAtOnce and SegmentsPerTier at once.
194
- For LogByteSizeMergePolicy, mergeFactor decides how many new segments
195
- will be allowed before they are merged into one.
196
- Default is 10 for both merge policies.
197
- -->
198
- <!--
199
- <mergeFactor>10</mergeFactor>
200
- -->
201
-
202
- <!-- Expert: Merge Scheduler
203
- The Merge Scheduler in Lucene controls how merges are
204
- performed. The ConcurrentMergeScheduler (Lucene 2.3 default)
205
- can perform merges in the background using separate threads.
206
- The SerialMergeScheduler (Lucene 2.2 default) does not.
207
- -->
208
- <!--
209
- <mergeScheduler class="org.apache.lucene.index.ConcurrentMergeScheduler"/>
210
- -->
211
-
212
- <!-- LockFactory
213
-
214
- This option specifies which Lucene LockFactory implementation
215
- to use.
216
-
217
- single = SingleInstanceLockFactory - suggested for a
218
- read-only index or when there is no possibility of
219
- another process trying to modify the index.
220
- native = NativeFSLockFactory - uses OS native file locking.
221
- Do not use when multiple solr webapps in the same
222
- JVM are attempting to share a single index.
223
- simple = SimpleFSLockFactory - uses a plain file for locking
224
-
225
- Defaults: 'native' is default for Solr3.6 and later, otherwise
226
- 'simple' is the default
227
-
228
- More details on the nuances of each LockFactory...
229
- http://wiki.apache.org/lucene-java/AvailableLockFactories
230
- -->
231
- <lockType>${solr.lock.type:native}</lockType>
232
-
233
- <!-- Unlock On Startup
234
-
235
- If true, unlock any held write or commit locks on startup.
236
- This defeats the locking mechanism that allows multiple
237
- processes to safely access a lucene index, and should be used
238
- with care. Default is "false".
239
-
240
- This is not needed if lock type is 'single'
241
- -->
242
- <!--
243
- <unlockOnStartup>false</unlockOnStartup>
244
- -->
245
-
246
- <!-- Expert: Controls how often Lucene loads terms into memory
247
- Default is 128 and is likely good for most everyone.
248
- -->
249
- <!-- <termIndexInterval>128</termIndexInterval> -->
250
-
251
- <!-- If true, IndexReaders will be opened/reopened from the IndexWriter
252
- instead of from the Directory. Hosts in a master/slave setup
253
- should have this set to false while those in a SolrCloud
254
- cluster need to be set to true. Default: true
255
- -->
256
- <!--
257
- <nrtMode>true</nrtMode>
258
- -->
259
-
260
- <!-- Commit Deletion Policy
261
- Custom deletion policies can be specified here. The class must
262
- implement org.apache.lucene.index.IndexDeletionPolicy.
263
-
264
- The default Solr IndexDeletionPolicy implementation supports
265
- deleting index commit points on number of commits, age of
266
- commit point and optimized status.
267
-
268
- The latest commit point should always be preserved regardless
269
- of the criteria.
270
- -->
271
- <!--
272
- <deletionPolicy class="solr.SolrDeletionPolicy">
273
- -->
274
- <!-- The number of commit points to be kept -->
275
- <!-- <str name="maxCommitsToKeep">1</str> -->
276
- <!-- The number of optimized commit points to be kept -->
277
- <!-- <str name="maxOptimizedCommitsToKeep">0</str> -->
278
- <!--
279
- Delete all commit points once they have reached the given age.
280
- Supports DateMathParser syntax e.g.
281
- -->
282
- <!--
283
- <str name="maxCommitAge">30MINUTES</str>
284
- <str name="maxCommitAge">1DAY</str>
285
- -->
286
- <!--
287
- </deletionPolicy>
288
- -->
289
-
290
- <!-- Lucene Infostream
291
-
292
- To aid in advanced debugging, Lucene provides an "InfoStream"
293
- of detailed information when indexing.
294
-
295
- Setting the value to true will instruct the underlying Lucene
296
- IndexWriter to write its info stream to solr's log. By default,
297
- this is enabled here, and controlled through log4j.properties.
298
- -->
299
- <infoStream>true</infoStream>
300
-
301
- <!--
302
- Use true to enable this safety check, which can help
303
- reduce the risk of propagating index corruption from older segments
304
- into new ones, at the expense of slower merging.
305
- -->
306
- <checkIntegrityAtMerge>false</checkIntegrityAtMerge>
307
- </indexConfig>
308
-
309
-
310
- <!-- JMX
311
-
312
- This example enables JMX if and only if an existing MBeanServer
313
- is found, use this if you want to configure JMX through JVM
314
- parameters. Remove this to disable exposing Solr configuration
315
- and statistics to JMX.
316
-
317
- For more details see http://wiki.apache.org/solr/SolrJmx
318
- -->
319
- <jmx />
320
- <!-- If you want to connect to a particular server, specify the
321
- agentId
322
- -->
323
- <!-- <jmx agentId="myAgent" /> -->
324
- <!-- If you want to start a new MBeanServer, specify the serviceUrl -->
325
- <!-- <jmx serviceUrl="service:jmx:rmi:///jndi/rmi://localhost:9999/solr"/>
326
- -->
327
-
328
- <!-- The default high-performance update handler -->
329
- <updateHandler class="solr.DirectUpdateHandler2">
330
-
331
- <!-- Enables a transaction log, used for real-time get, durability, and
332
- and solr cloud replica recovery. The log can grow as big as
333
- uncommitted changes to the index, so use of a hard autoCommit
334
- is recommended (see below).
335
- "dir" - the target directory for transaction logs, defaults to the
336
- solr data directory. -->
337
- <updateLog>
338
- <str name="dir">${solr.ulog.dir:}</str>
339
- </updateLog>
340
-
341
- <!-- AutoCommit
342
-
343
- Perform a hard commit automatically under certain conditions.
344
- Instead of enabling autoCommit, consider using "commitWithin"
345
- when adding documents.
346
-
347
- http://wiki.apache.org/solr/UpdateXmlMessages
348
-
349
- maxDocs - Maximum number of documents to add since the last
350
- commit before automatically triggering a new commit.
351
-
352
- maxTime - Maximum amount of time in ms that is allowed to pass
353
- since a document was added before automatically
354
- triggering a new commit.
355
- openSearcher - if false, the commit causes recent index changes
356
- to be flushed to stable storage, but does not cause a new
357
- searcher to be opened to make those changes visible.
358
-
359
- If the updateLog is enabled, then it's highly recommended to
360
- have some sort of hard autoCommit to limit the log size.
361
- -->
362
- <autoCommit>
363
- <maxTime>${solr.autoCommit.maxTime:15000}</maxTime>
364
- <openSearcher>false</openSearcher>
365
- </autoCommit>
366
-
367
- <!-- softAutoCommit is like autoCommit except it causes a
368
- 'soft' commit which only ensures that changes are visible
369
- but does not ensure that data is synced to disk. This is
370
- faster and more near-realtime friendly than a hard commit.
371
- -->
372
-
373
- <autoSoftCommit>
374
- <maxTime>${solr.autoSoftCommit.maxTime:-1}</maxTime>
375
- </autoSoftCommit>
376
-
377
- <!-- Update Related Event Listeners
378
-
379
- Various IndexWriter related events can trigger Listeners to
380
- take actions.
381
-
382
- postCommit - fired after every commit or optimize command
383
- postOptimize - fired after every optimize command
384
- -->
385
- <!-- The RunExecutableListener executes an external command from a
386
- hook such as postCommit or postOptimize.
387
-
388
- exe - the name of the executable to run
389
- dir - dir to use as the current working directory. (default=".")
390
- wait - the calling thread waits until the executable returns.
391
- (default="true")
392
- args - the arguments to pass to the program. (default is none)
393
- env - environment variables to set. (default is none)
394
- -->
395
- <!-- This example shows how RunExecutableListener could be used
396
- with the script based replication...
397
- http://wiki.apache.org/solr/CollectionDistribution
398
- -->
399
- <!--
400
- <listener event="postCommit" class="solr.RunExecutableListener">
401
- <str name="exe">solr/bin/snapshooter</str>
402
- <str name="dir">.</str>
403
- <bool name="wait">true</bool>
404
- <arr name="args"> <str>arg1</str> <str>arg2</str> </arr>
405
- <arr name="env"> <str>MYVAR=val1</str> </arr>
406
- </listener>
407
- -->
408
-
409
- </updateHandler>
410
- <requestHandler name="search" class="solr.SearchHandler" default="true">
411
- <!-- default values for query parameters can be specified, these
412
- will be overridden by parameters in the request
413
- -->
414
- <lst name="defaults">
415
- <str name="defType">edismax</str>
416
- <str name="echoParams">explicit</str>
417
- <str name="q.alt">*:*</str>
418
- <str name="mm">2&lt;-1 5&lt;-2 6&lt;90%</str>
419
- <int name="qs">1</int>
420
- <int name="ps">2</int>
421
- <float name="tie">0.01</float>
422
- <!-- this qf and pf are used by default, if not otherwise specified by
423
- client. The default blacklight_config will use these for the
424
- "keywords" search. See the author_qf/author_pf, title_qf, etc
425
- below, which the default blacklight_config will specify for
426
- those searches. You may also be interested in:
427
- http://wiki.apache.org/solr/LocalParams
428
- -->
429
- <str name="qf">
430
- id
431
- all_text_timv
432
- active_fedora_model_ssi
433
- object_type_si
434
- </str>
435
- <str name="pf">
436
- all_text_timv^10
437
- </str>
438
-
439
- <str name="author_qf">
440
- </str>
441
- <str name="author_pf">
442
- </str>
443
- <str name="title_qf">
444
- </str>
445
- <str name="title_pf">
446
- </str>
447
- <str name="subject_qf">
448
- </str>
449
- <str name="subject_pf">
450
- </str>
451
-
452
- <str name="fl">
453
- *,
454
- score
455
- </str>
456
-
457
- <str name="facet">true</str>
458
- <str name="facet.mincount">1</str>
459
- <str name="facet.limit">10</str>
460
- <str name="facet.field">active_fedora_model_ssi</str>
461
- <str name="facet.field">object_type_si</str>
462
-
463
- <str name="spellcheck">true</str>
464
- <str name="spellcheck.dictionary">default</str>
465
- <str name="spellcheck.onlyMorePopular">true</str>
466
- <str name="spellcheck.extendedResults">true</str>
467
- <str name="spellcheck.collate">false</str>
468
- <str name="spellcheck.count">5</str>
469
-
470
- </lst>
471
- <arr name="last-components">
472
- <str>spellcheck</str>
473
- </arr>
474
- </requestHandler>
475
- <requestHandler name="permissions" class="solr.SearchHandler" >
476
- <lst name="defaults">
477
- <str name="facet">off</str>
478
- <str name="echoParams">all</str>
479
- <str name="rows">1</str>
480
- <str name="q">{!raw f=id v=$id}</str> <!-- use id=666 instead of q=id:666 -->
481
- <str name="fl">
482
- id,
483
- access_ssim,
484
- discover_access_group_ssim,discover_access_person_ssim,
485
- read_access_group_ssim,read_access_person_ssim,
486
- edit_access_group_ssim,edit_access_person_ssim,
487
- depositor_ti,
488
- embargo_release_date_dtsi
489
- inheritable_access_ssim,
490
- inheritable_discover_access_group_ssim,inheritable_discover_access_person_ssim,
491
- inheritable_read_access_group_ssim,inheritable_read_access_person_ssim,
492
- inheritable_edit_access_group_ssim,inheritable_edit_access_person_ssim,
493
- inheritable_embargo_release_date_dtsi
494
- </str>
495
- </lst>
496
- </requestHandler>
497
- <requestHandler name="standard" class="solr.SearchHandler">
498
- <lst name="defaults">
499
- <str name="echoParams">explicit</str>
500
- <str name="defType">lucene</str>
501
- </lst>
502
- </requestHandler>
503
- <requestHandler name="document" class="solr.SearchHandler" >
504
- <lst name="defaults">
505
- <str name="echoParams">all</str>
506
- <str name="fl">*</str>
507
- <str name="rows">1</str>
508
- <str name="q">{!raw f=id v=$id}</str> <!-- use id=666 instead of q=id:666 -->
509
- </lst>
510
- </requestHandler>
511
-
512
- <!-- IndexReaderFactory
513
-
514
- Use the following format to specify a custom IndexReaderFactory,
515
- which allows for alternate IndexReader implementations.
516
-
517
- ** Experimental Feature **
518
-
519
- Please note - Using a custom IndexReaderFactory may prevent
520
- certain other features from working. The API to
521
- IndexReaderFactory may change without warning or may even be
522
- removed from future releases if the problems cannot be
523
- resolved.
524
-
525
-
526
- ** Features that may not work with custom IndexReaderFactory **
527
-
528
- The ReplicationHandler assumes a disk-resident index. Using a
529
- custom IndexReader implementation may cause incompatibility
530
- with ReplicationHandler and may cause replication to not work
531
- correctly. See SOLR-1366 for details.
532
-
533
- -->
534
- <!--
535
- <indexReaderFactory name="IndexReaderFactory" class="package.class">
536
- <str name="someArg">Some Value</str>
537
- </indexReaderFactory >
538
- -->
539
- <!-- By explicitly declaring the Factory, the termIndexDivisor can
540
- be specified.
541
- -->
542
- <!--
543
- <indexReaderFactory name="IndexReaderFactory"
544
- class="solr.StandardIndexReaderFactory">
545
- <int name="setTermIndexDivisor">12</int>
546
- </indexReaderFactory >
547
- -->
548
-
549
- <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
550
- Query section - these settings control query time things like caches
551
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
552
- <query>
553
- <!-- Max Boolean Clauses
554
-
555
- Maximum number of clauses in each BooleanQuery, an exception
556
- is thrown if exceeded.
557
-
558
- ** WARNING **
559
-
560
- This option actually modifies a global Lucene property that
561
- will affect all SolrCores. If multiple solrconfig.xml files
562
- disagree on this property, the value at any given moment will
563
- be based on the last SolrCore to be initialized.
564
-
565
- -->
566
- <maxBooleanClauses>1024</maxBooleanClauses>
567
-
568
-
569
- <!-- Solr Internal Query Caches
570
-
571
- There are two implementations of cache available for Solr,
572
- LRUCache, based on a synchronized LinkedHashMap, and
573
- FastLRUCache, based on a ConcurrentHashMap.
574
-
575
- FastLRUCache has faster gets and slower puts in single
576
- threaded operation and thus is generally faster than LRUCache
577
- when the hit ratio of the cache is high (> 75%), and may be
578
- faster under other scenarios on multi-cpu systems.
579
- -->
580
-
581
- <!-- Filter Cache
582
-
583
- Cache used by SolrIndexSearcher for filters (DocSets),
584
- unordered sets of *all* documents that match a query. When a
585
- new searcher is opened, its caches may be prepopulated or
586
- "autowarmed" using data from caches in the old searcher.
587
- autowarmCount is the number of items to prepopulate. For
588
- LRUCache, the autowarmed items will be the most recently
589
- accessed items.
590
-
591
- Parameters:
592
- class - the SolrCache implementation LRUCache or
593
- (LRUCache or FastLRUCache)
594
- size - the maximum number of entries in the cache
595
- initialSize - the initial capacity (number of entries) of
596
- the cache. (see java.util.HashMap)
597
- autowarmCount - the number of entries to prepopulate from
598
- and old cache.
599
- -->
600
- <filterCache class="solr.FastLRUCache"
601
- size="512"
602
- initialSize="512"
603
- autowarmCount="0"/>
604
-
605
- <!-- Query Result Cache
606
-
607
- Caches results of searches - ordered lists of document ids
608
- (DocList) based on a query, a sort, and the range of documents requested.
609
- -->
610
- <queryResultCache class="solr.LRUCache"
611
- size="512"
612
- initialSize="512"
613
- autowarmCount="0"/>
614
-
615
- <!-- Document Cache
616
-
617
- Caches Lucene Document objects (the stored fields for each
618
- document). Since Lucene internal document ids are transient,
619
- this cache will not be autowarmed.
620
- -->
621
- <documentCache class="solr.LRUCache"
622
- size="512"
623
- initialSize="512"
624
- autowarmCount="0"/>
625
-
626
- <!-- custom cache currently used by block join -->
627
- <cache name="perSegFilter"
628
- class="solr.search.LRUCache"
629
- size="10"
630
- initialSize="0"
631
- autowarmCount="10"
632
- regenerator="solr.NoOpRegenerator" />
633
-
634
- <!-- Field Value Cache
635
-
636
- Cache used to hold field values that are quickly accessible
637
- by document id. The fieldValueCache is created by default
638
- even if not configured here.
639
- -->
640
- <!--
641
- <fieldValueCache class="solr.FastLRUCache"
642
- size="512"
643
- autowarmCount="128"
644
- showItems="32" />
645
- -->
646
-
647
- <!-- Custom Cache
648
-
649
- Example of a generic cache. These caches may be accessed by
650
- name through SolrIndexSearcher.getCache(),cacheLookup(), and
651
- cacheInsert(). The purpose is to enable easy caching of
652
- user/application level data. The regenerator argument should
653
- be specified as an implementation of solr.CacheRegenerator
654
- if autowarming is desired.
655
- -->
656
- <!--
657
- <cache name="myUserCache"
658
- class="solr.LRUCache"
659
- size="4096"
660
- initialSize="1024"
661
- autowarmCount="1024"
662
- regenerator="com.mycompany.MyRegenerator"
663
- />
664
- -->
665
-
666
-
667
- <!-- Lazy Field Loading
668
-
669
- If true, stored fields that are not requested will be loaded
670
- lazily. This can result in a significant speed improvement
671
- if the usual case is to not load all stored fields,
672
- especially if the skipped fields are large compressed text
673
- fields.
674
- -->
675
- <enableLazyFieldLoading>true</enableLazyFieldLoading>
676
-
677
- <!-- Use Filter For Sorted Query
678
-
679
- A possible optimization that attempts to use a filter to
680
- satisfy a search. If the requested sort does not include
681
- score, then the filterCache will be checked for a filter
682
- matching the query. If found, the filter will be used as the
683
- source of document ids, and then the sort will be applied to
684
- that.
685
-
686
- For most situations, this will not be useful unless you
687
- frequently get the same search repeatedly with different sort
688
- options, and none of them ever use "score"
689
- -->
690
- <!--
691
- <useFilterForSortedQuery>true</useFilterForSortedQuery>
692
- -->
693
-
694
- <!-- Result Window Size
695
-
696
- An optimization for use with the queryResultCache. When a search
697
- is requested, a superset of the requested number of document ids
698
- are collected. For example, if a search for a particular query
699
- requests matching documents 10 through 19, and queryWindowSize is 50,
700
- then documents 0 through 49 will be collected and cached. Any further
701
- requests in that range can be satisfied via the cache.
702
- -->
703
- <queryResultWindowSize>20</queryResultWindowSize>
704
-
705
- <!-- Maximum number of documents to cache for any entry in the
706
- queryResultCache.
707
- -->
708
- <queryResultMaxDocsCached>200</queryResultMaxDocsCached>
709
-
710
- <!-- Query Related Event Listeners
711
-
712
- Various IndexSearcher related events can trigger Listeners to
713
- take actions.
714
-
715
- newSearcher - fired whenever a new searcher is being prepared
716
- and there is a current searcher handling requests (aka
717
- registered). It can be used to prime certain caches to
718
- prevent long request times for certain requests.
719
-
720
- firstSearcher - fired whenever a new searcher is being
721
- prepared but there is no current registered searcher to handle
722
- requests or to gain autowarming data from.
723
-
724
-
725
- -->
726
- <!-- QuerySenderListener takes an array of NamedList and executes a
727
- local query request for each NamedList in sequence.
728
- -->
729
- <listener event="newSearcher" class="solr.QuerySenderListener">
730
- <arr name="queries">
731
- <!--
732
- <lst><str name="q">solr</str><str name="sort">price asc</str></lst>
733
- <lst><str name="q">rocks</str><str name="sort">weight asc</str></lst>
734
- -->
735
- </arr>
736
- </listener>
737
- <listener event="firstSearcher" class="solr.QuerySenderListener">
738
- <arr name="queries">
739
- <lst>
740
- <str name="q">static firstSearcher warming in solrconfig.xml</str>
741
- </lst>
742
- </arr>
743
- </listener>
744
-
745
- <!-- Use Cold Searcher
746
-
747
- If a search request comes in and there is no current
748
- registered searcher, then immediately register the still
749
- warming searcher and use it. If "false" then all requests
750
- will block until the first searcher is done warming.
751
- -->
752
- <useColdSearcher>false</useColdSearcher>
753
-
754
- <!-- Max Warming Searchers
755
-
756
- Maximum number of searchers that may be warming in the
757
- background concurrently. An error is returned if this limit
758
- is exceeded.
759
-
760
- Recommend values of 1-2 for read-only slaves, higher for
761
- masters w/o cache warming.
762
- -->
763
- <maxWarmingSearchers>2</maxWarmingSearchers>
764
-
765
- </query>
766
-
767
-
768
- <!-- Request Dispatcher
769
-
770
- This section contains instructions for how the SolrDispatchFilter
771
- should behave when processing requests for this SolrCore.
772
-
773
- handleSelect is a legacy option that affects the behavior of requests
774
- such as /select?qt=XXX
775
-
776
- handleSelect="true" will cause the SolrDispatchFilter to process
777
- the request and dispatch the query to a handler specified by the
778
- "qt" param, assuming "/select" isn't already registered.
779
-
780
- handleSelect="false" will cause the SolrDispatchFilter to
781
- ignore "/select" requests, resulting in a 404 unless a handler
782
- is explicitly registered with the name "/select"
783
-
784
- handleSelect="true" is not recommended for new users, but is the default
785
- for backwards compatibility
786
- -->
787
- <requestDispatcher handleSelect="true" >
788
-
789
- <!-- Request Parsing
790
-
791
- These settings indicate how Solr Requests may be parsed, and
792
- what restrictions may be placed on the ContentStreams from
793
- those requests
794
-
795
- enableRemoteStreaming - enables use of the stream.file
796
- and stream.url parameters for specifying remote streams.
797
-
798
- multipartUploadLimitInKB - specifies the max size (in KiB) of
799
- Multipart File Uploads that Solr will allow in a Request.
800
-
801
- formdataUploadLimitInKB - specifies the max size (in KiB) of
802
- form data (application/x-www-form-urlencoded) sent via
803
- POST. You can use POST to pass request parameters not
804
- fitting into the URL.
805
-
806
- addHttpRequestToContext - if set to true, it will instruct
807
- the requestParsers to include the original HttpServletRequest
808
- object in the context map of the SolrQueryRequest under the
809
- key "httpRequest". It will not be used by any of the existing
810
- Solr components, but may be useful when developing custom
811
- plugins.
812
-
813
- *** WARNING ***
814
- The settings below authorize Solr to fetch remote files, You
815
- should make sure your system has some authentication before
816
- using enableRemoteStreaming="true"
817
-
818
- -->
819
- <requestParsers enableRemoteStreaming="true"
820
- multipartUploadLimitInKB="2048000"
821
- formdataUploadLimitInKB="2048"
822
- addHttpRequestToContext="false"/>
823
-
824
- <!-- HTTP Caching
825
-
826
- Set HTTP caching related parameters (for proxy caches and clients).
827
-
828
- The options below instruct Solr not to output any HTTP Caching
829
- related headers
830
- -->
831
- <httpCaching never304="true" />
832
- <!-- If you include a <cacheControl> directive, it will be used to
833
- generate a Cache-Control header (as well as an Expires header
834
- if the value contains "max-age=")
835
-
836
- By default, no Cache-Control header is generated.
837
-
838
- You can use the <cacheControl> option even if you have set
839
- never304="true"
840
- -->
841
- <!--
842
- <httpCaching never304="true" >
843
- <cacheControl>max-age=30, public</cacheControl>
844
- </httpCaching>
845
- -->
846
- <!-- To enable Solr to respond with automatically generated HTTP
847
- Caching headers, and to response to Cache Validation requests
848
- correctly, set the value of never304="false"
849
-
850
- This will cause Solr to generate Last-Modified and ETag
851
- headers based on the properties of the Index.
852
-
853
- The following options can also be specified to affect the
854
- values of these headers...
855
-
856
- lastModFrom - the default value is "openTime" which means the
857
- Last-Modified value (and validation against If-Modified-Since
858
- requests) will all be relative to when the current Searcher
859
- was opened. You can change it to lastModFrom="dirLastMod" if
860
- you want the value to exactly correspond to when the physical
861
- index was last modified.
862
-
863
- etagSeed="..." is an option you can change to force the ETag
864
- header (and validation against If-None-Match requests) to be
865
- different even if the index has not changed (ie: when making
866
- significant changes to your config file)
867
-
868
- (lastModifiedFrom and etagSeed are both ignored if you use
869
- the never304="true" option)
870
- -->
871
- <!--
872
- <httpCaching lastModifiedFrom="openTime"
873
- etagSeed="Solr">
874
- <cacheControl>max-age=30, public</cacheControl>
875
- </httpCaching>
876
- -->
877
- </requestDispatcher>
878
-
879
- <!-- Request Handlers
880
-
881
- http://wiki.apache.org/solr/SolrRequestHandler
882
-
883
- Incoming queries will be dispatched to a specific handler by name
884
- based on the path specified in the request.
885
-
886
- Legacy behavior: If the request path uses "/select" but no Request
887
- Handler has that name, and if handleSelect="true" has been specified in
888
- the requestDispatcher, then the Request Handler is dispatched based on
889
- the qt parameter. Handlers without a leading '/' are accessed this way
890
- like so: http://host/app/[core/]select?qt=name If no qt is
891
- given, then the requestHandler that declares default="true" will be
892
- used or the one named "standard".
893
-
894
- If a Request Handler is declared with startup="lazy", then it will
895
- not be initialized until the first request that uses it.
896
-
897
- -->
898
-
899
- <!-- A request handler that returns indented JSON by default -->
900
- <requestHandler name="/query" class="solr.SearchHandler">
901
- <lst name="defaults">
902
- <str name="echoParams">explicit</str>
903
- <str name="wt">json</str>
904
- <str name="indent">true</str>
905
- <str name="df">text</str>
906
- </lst>
907
- </requestHandler>
908
-
909
-
910
- <!-- realtime get handler, guaranteed to return the latest stored fields of
911
- any document, without the need to commit or open a new searcher. The
912
- current implementation relies on the updateLog feature being enabled.
913
-
914
- ** WARNING **
915
- Do NOT disable the realtime get handler at /get if you are using
916
- SolrCloud otherwise any leader election will cause a full sync in ALL
917
- replicas for the shard in question. Similarly, a replica recovery will
918
- also always fetch the complete index from the leader because a partial
919
- sync will not be possible in the absence of this handler.
920
- -->
921
- <requestHandler name="/get" class="solr.RealTimeGetHandler">
922
- <lst name="defaults">
923
- <str name="omitHeader">true</str>
924
- <str name="wt">json</str>
925
- <str name="indent">true</str>
926
- </lst>
927
- </requestHandler>
928
-
929
- <!--
930
- The export request handler is used to export full sorted result sets.
931
- Do not change these defaults.
932
- -->
933
-
934
- <requestHandler name="/export" class="solr.SearchHandler">
935
- <lst name="invariants">
936
- <str name="rq">{!xport}</str>
937
- <str name="wt">xsort</str>
938
- <str name="distrib">false</str>
939
- </lst>
940
-
941
- <arr name="components">
942
- <str>query</str>
943
- </arr>
944
- </requestHandler>
945
-
946
-
947
-
948
-
949
-
950
-
951
- <!-- A Robust Example
952
-
953
- This example SearchHandler declaration shows off usage of the
954
- SearchHandler with many defaults declared
955
-
956
- Note that multiple instances of the same Request Handler
957
- (SearchHandler) can be registered multiple times with different
958
- names (and different init parameters)
959
- -->
960
- <requestHandler name="/browse" class="solr.SearchHandler">
961
- <lst name="defaults">
962
- <str name="echoParams">explicit</str>
963
-
964
- <!-- VelocityResponseWriter settings -->
965
- <str name="wt">velocity</str>
966
- <str name="v.template">browse</str>
967
- <str name="v.layout">layout</str>
968
- <str name="title">Solritas</str>
969
-
970
- <!-- Query settings -->
971
- <str name="defType">edismax</str>
972
- <str name="qf">
973
- text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
974
- title^10.0 description^5.0 keywords^5.0 author^2.0 resourcename^1.0
975
- </str>
976
- <str name="df">text</str>
977
- <str name="mm">100%</str>
978
- <str name="q.alt">*:*</str>
979
- <str name="rows">10</str>
980
- <str name="fl">*,score</str>
981
-
982
- <str name="mlt.qf">
983
- text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
984
- title^10.0 description^5.0 keywords^5.0 author^2.0 resourcename^1.0
985
- </str>
986
- <str name="mlt.fl">text,features,name,sku,id,manu,cat,title,description,keywords,author,resourcename</str>
987
- <int name="mlt.count">3</int>
988
-
989
- <!-- Faceting defaults -->
990
- <str name="facet">on</str>
991
- <str name="facet.missing">true</str>
992
- <str name="facet.field">cat</str>
993
- <str name="facet.field">manu_exact</str>
994
- <str name="facet.field">content_type</str>
995
- <str name="facet.field">author_s</str>
996
- <str name="facet.query">ipod</str>
997
- <str name="facet.query">GB</str>
998
- <str name="facet.mincount">1</str>
999
- <str name="facet.pivot">cat,inStock</str>
1000
- <str name="facet.range.other">after</str>
1001
- <str name="facet.range">price</str>
1002
- <int name="f.price.facet.range.start">0</int>
1003
- <int name="f.price.facet.range.end">600</int>
1004
- <int name="f.price.facet.range.gap">50</int>
1005
- <str name="facet.range">popularity</str>
1006
- <int name="f.popularity.facet.range.start">0</int>
1007
- <int name="f.popularity.facet.range.end">10</int>
1008
- <int name="f.popularity.facet.range.gap">3</int>
1009
- <str name="facet.range">manufacturedate_dt</str>
1010
- <str name="f.manufacturedate_dt.facet.range.start">NOW/YEAR-10YEARS</str>
1011
- <str name="f.manufacturedate_dt.facet.range.end">NOW</str>
1012
- <str name="f.manufacturedate_dt.facet.range.gap">+1YEAR</str>
1013
- <str name="f.manufacturedate_dt.facet.range.other">before</str>
1014
- <str name="f.manufacturedate_dt.facet.range.other">after</str>
1015
-
1016
- <!-- Highlighting defaults -->
1017
- <str name="hl">on</str>
1018
- <str name="hl.fl">content features title name</str>
1019
- <str name="hl.preserveMulti">true</str>
1020
- <str name="hl.encoder">html</str>
1021
- <str name="hl.simple.pre">&lt;b&gt;</str>
1022
- <str name="hl.simple.post">&lt;/b&gt;</str>
1023
- <str name="f.title.hl.fragsize">0</str>
1024
- <str name="f.title.hl.alternateField">title</str>
1025
- <str name="f.name.hl.fragsize">0</str>
1026
- <str name="f.name.hl.alternateField">name</str>
1027
- <str name="f.content.hl.snippets">3</str>
1028
- <str name="f.content.hl.fragsize">200</str>
1029
- <str name="f.content.hl.alternateField">content</str>
1030
- <str name="f.content.hl.maxAlternateFieldLength">750</str>
1031
-
1032
- <!-- Spell checking defaults -->
1033
- <str name="spellcheck">on</str>
1034
- <str name="spellcheck.extendedResults">false</str>
1035
- <str name="spellcheck.count">5</str>
1036
- <str name="spellcheck.alternativeTermCount">2</str>
1037
- <str name="spellcheck.maxResultsForSuggest">5</str>
1038
- <str name="spellcheck.collate">true</str>
1039
- <str name="spellcheck.collateExtendedResults">true</str>
1040
- <str name="spellcheck.maxCollationTries">5</str>
1041
- <str name="spellcheck.maxCollations">3</str>
1042
- </lst>
1043
-
1044
- <!-- append spellchecking to our list of components -->
1045
- <arr name="last-components">
1046
- <str>spellcheck</str>
1047
- </arr>
1048
- </requestHandler>
1049
-
1050
-
1051
- <!-- Update Request Handler.
1052
-
1053
- http://wiki.apache.org/solr/UpdateXmlMessages
1054
-
1055
- The canonical Request Handler for Modifying the Index through
1056
- commands specified using XML, JSON, CSV, or JAVABIN
1057
-
1058
- Note: Since solr1.1 requestHandlers requires a valid content
1059
- type header if posted in the body. For example, curl now
1060
- requires: -H 'Content-type:text/xml; charset=utf-8'
1061
-
1062
- To override the request content type and force a specific
1063
- Content-type, use the request parameter:
1064
- ?update.contentType=text/csv
1065
-
1066
- This handler will pick a response format to match the input
1067
- if the 'wt' parameter is not explicit
1068
- -->
1069
-
1070
- <!-- The following are implicitly added.
1071
- <requestHandler name="/update" class="solr.UpdateRequestHandler">
1072
- </requestHandler>
1073
- <requestHandler name="/update/json" class="solr.UpdateRequestHandler">
1074
- <lst name="defaults">
1075
- <str name="stream.contentType">application/json</str>
1076
- </lst>
1077
- </requestHandler>
1078
- <requestHandler name="/update/csv" class="solr.UpdateRequestHandler">
1079
- <lst name="defaults">
1080
- <str name="stream.contentType">application/csv</str>
1081
- </lst>
1082
- </requestHandler>
1083
- -->
1084
-
1085
- <!-- Solr Cell Update Request Handler
1086
-
1087
- http://wiki.apache.org/solr/ExtractingRequestHandler
1088
-
1089
- -->
1090
- <requestHandler name="/update/extract"
1091
- startup="lazy"
1092
- class="solr.extraction.ExtractingRequestHandler" >
1093
- <lst name="defaults">
1094
- <str name="fmap.content">text</str>
1095
- <str name="lowernames">true</str>
1096
- <str name="uprefix">ignored_</str>
1097
-
1098
- <!-- capture link hrefs but ignore div attributes -->
1099
- <str name="captureAttr">true</str>
1100
- <str name="fmap.a">links</str>
1101
- <str name="fmap.div">ignored_</str>
1102
- </lst>
1103
- </requestHandler>
1104
-
1105
-
1106
- <!-- Field Analysis Request Handler
1107
-
1108
- RequestHandler that provides much the same functionality as
1109
- analysis.jsp. Provides the ability to specify multiple field
1110
- types and field names in the same request and outputs
1111
- index-time and query-time analysis for each of them.
1112
-
1113
- Request parameters are:
1114
- analysis.fieldname - field name whose analyzers are to be used
1115
-
1116
- analysis.fieldtype - field type whose analyzers are to be used
1117
- analysis.fieldvalue - text for index-time analysis
1118
- q (or analysis.q) - text for query time analysis
1119
- analysis.showmatch (true|false) - When set to true and when
1120
- query analysis is performed, the produced tokens of the
1121
- field value analysis will be marked as "matched" for every
1122
- token that is produces by the query analysis
1123
- -->
1124
- <requestHandler name="/analysis/field"
1125
- startup="lazy"
1126
- class="solr.FieldAnalysisRequestHandler" />
1127
-
1128
-
1129
- <!-- Document Analysis Handler
1130
-
1131
- http://wiki.apache.org/solr/AnalysisRequestHandler
1132
-
1133
- An analysis handler that provides a breakdown of the analysis
1134
- process of provided documents. This handler expects a (single)
1135
- content stream with the following format:
1136
-
1137
- <docs>
1138
- <doc>
1139
- <field name="id">1</field>
1140
- <field name="name">The Name</field>
1141
- <field name="text">The Text Value</field>
1142
- </doc>
1143
- <doc>...</doc>
1144
- <doc>...</doc>
1145
- ...
1146
- </docs>
1147
-
1148
- Note: Each document must contain a field which serves as the
1149
- unique key. This key is used in the returned response to associate
1150
- an analysis breakdown to the analyzed document.
1151
-
1152
- Like the FieldAnalysisRequestHandler, this handler also supports
1153
- query analysis by sending either an "analysis.query" or "q"
1154
- request parameter that holds the query text to be analyzed. It
1155
- also supports the "analysis.showmatch" parameter which when set to
1156
- true, all field tokens that match the query tokens will be marked
1157
- as a "match".
1158
- -->
1159
- <requestHandler name="/analysis/document"
1160
- class="solr.DocumentAnalysisRequestHandler"
1161
- startup="lazy" />
1162
-
1163
- <!-- Admin Handlers
1164
-
1165
- Admin Handlers - This will register all the standard admin
1166
- RequestHandlers.
1167
- -->
1168
- <requestHandler name="/admin/"
1169
- class="solr.admin.AdminHandlers" />
1170
- <!-- This single handler is equivalent to the following... -->
1171
- <!--
1172
- <requestHandler name="/admin/luke" class="solr.admin.LukeRequestHandler" />
1173
- <requestHandler name="/admin/system" class="solr.admin.SystemInfoHandler" />
1174
- <requestHandler name="/admin/plugins" class="solr.admin.PluginInfoHandler" />
1175
- <requestHandler name="/admin/threads" class="solr.admin.ThreadDumpHandler" />
1176
- <requestHandler name="/admin/properties" class="solr.admin.PropertiesRequestHandler" />
1177
- <requestHandler name="/admin/file" class="solr.admin.ShowFileRequestHandler" >
1178
- -->
1179
- <!-- If you wish to hide files under ${solr.home}/conf, explicitly
1180
- register the ShowFileRequestHandler using the definition below.
1181
- NOTE: The glob pattern ('*') is the only pattern supported at present, *.xml will
1182
- not exclude all files ending in '.xml'. Use it to exclude _all_ updates
1183
- -->
1184
- <!--
1185
- <requestHandler name="/admin/file"
1186
- class="solr.admin.ShowFileRequestHandler" >
1187
- <lst name="invariants">
1188
- <str name="hidden">synonyms.txt</str>
1189
- <str name="hidden">anotherfile.txt</str>
1190
- <str name="hidden">*</str>
1191
- </lst>
1192
- </requestHandler>
1193
- -->
1194
-
1195
- <!-- ping/healthcheck -->
1196
- <requestHandler name="/admin/ping" class="solr.PingRequestHandler">
1197
- <lst name="invariants">
1198
- <str name="q">solrpingquery</str>
1199
- </lst>
1200
- <lst name="defaults">
1201
- <str name="echoParams">all</str>
1202
- </lst>
1203
- <!-- An optional feature of the PingRequestHandler is to configure the
1204
- handler with a "healthcheckFile" which can be used to enable/disable
1205
- the PingRequestHandler.
1206
- relative paths are resolved against the data dir
1207
- -->
1208
- <!-- <str name="healthcheckFile">server-enabled.txt</str> -->
1209
- </requestHandler>
1210
-
1211
- <!-- Echo the request contents back to the client -->
1212
- <requestHandler name="/debug/dump" class="solr.DumpRequestHandler" >
1213
- <lst name="defaults">
1214
- <str name="echoParams">explicit</str>
1215
- <str name="echoHandler">true</str>
1216
- </lst>
1217
- </requestHandler>
1218
-
1219
- <!-- Solr Replication
1220
-
1221
- The SolrReplicationHandler supports replicating indexes from a
1222
- "master" used for indexing and "slaves" used for queries.
1223
-
1224
- http://wiki.apache.org/solr/SolrReplication
1225
-
1226
- It is also necessary for SolrCloud to function (in Cloud mode, the
1227
- replication handler is used to bulk transfer segments when nodes
1228
- are added or need to recover).
1229
-
1230
- https://wiki.apache.org/solr/SolrCloud/
1231
- -->
1232
- <requestHandler name="/replication" class="solr.ReplicationHandler" >
1233
- <!--
1234
- To enable simple master/slave replication, uncomment one of the
1235
- sections below, depending on whether this solr instance should be
1236
- the "master" or a "slave". If this instance is a "slave" you will
1237
- also need to fill in the masterUrl to point to a real machine.
1238
- -->
1239
- <!--
1240
- <lst name="master">
1241
- <str name="replicateAfter">commit</str>
1242
- <str name="replicateAfter">startup</str>
1243
- <str name="confFiles">schema.xml,stopwords.txt</str>
1244
- </lst>
1245
- -->
1246
- <!--
1247
- <lst name="slave">
1248
- <str name="masterUrl">http://your-master-hostname:8983/solr</str>
1249
- <str name="pollInterval">00:00:60</str>
1250
- </lst>
1251
- -->
1252
- </requestHandler>
1253
-
1254
- <!-- Search Components
1255
-
1256
- Search components are registered to SolrCore and used by
1257
- instances of SearchHandler (which can access them by name)
1258
-
1259
- By default, the following components are available:
1260
-
1261
- <searchComponent name="query" class="solr.QueryComponent" />
1262
- <searchComponent name="facet" class="solr.FacetComponent" />
1263
- <searchComponent name="mlt" class="solr.MoreLikeThisComponent" />
1264
- <searchComponent name="highlight" class="solr.HighlightComponent" />
1265
- <searchComponent name="stats" class="solr.StatsComponent" />
1266
- <searchComponent name="debug" class="solr.DebugComponent" />
1267
-
1268
- Default configuration in a requestHandler would look like:
1269
-
1270
- <arr name="components">
1271
- <str>query</str>
1272
- <str>facet</str>
1273
- <str>mlt</str>
1274
- <str>highlight</str>
1275
- <str>stats</str>
1276
- <str>debug</str>
1277
- </arr>
1278
-
1279
- If you register a searchComponent to one of the standard names,
1280
- that will be used instead of the default.
1281
-
1282
- To insert components before or after the 'standard' components, use:
1283
-
1284
- <arr name="first-components">
1285
- <str>myFirstComponentName</str>
1286
- </arr>
1287
-
1288
- <arr name="last-components">
1289
- <str>myLastComponentName</str>
1290
- </arr>
1291
-
1292
- NOTE: The component registered with the name "debug" will
1293
- always be executed after the "last-components"
1294
-
1295
- -->
1296
-
1297
- <!-- Spell Check
1298
-
1299
- The spell check component can return a list of alternative spelling
1300
- suggestions.
1301
-
1302
- http://wiki.apache.org/solr/SpellCheckComponent
1303
- -->
1304
- <searchComponent name="spellcheck" class="solr.SpellCheckComponent">
1305
-
1306
- <str name="queryAnalyzerFieldType">text_general</str>
1307
-
1308
- <!-- Multiple "Spell Checkers" can be declared and used by this
1309
- component
1310
- -->
1311
-
1312
- <!-- a spellchecker built from a field of the main index -->
1313
- <lst name="spellchecker">
1314
- <str name="name">default</str>
1315
- <str name="field">text</str>
1316
- <str name="classname">solr.DirectSolrSpellChecker</str>
1317
- <!-- the spellcheck distance measure used, the default is the internal levenshtein -->
1318
- <str name="distanceMeasure">internal</str>
1319
- <!-- minimum accuracy needed to be considered a valid spellcheck suggestion -->
1320
- <float name="accuracy">0.5</float>
1321
- <!-- the maximum #edits we consider when enumerating terms: can be 1 or 2 -->
1322
- <int name="maxEdits">2</int>
1323
- <!-- the minimum shared prefix when enumerating terms -->
1324
- <int name="minPrefix">1</int>
1325
- <!-- maximum number of inspections per result. -->
1326
- <int name="maxInspections">5</int>
1327
- <!-- minimum length of a query term to be considered for correction -->
1328
- <int name="minQueryLength">4</int>
1329
- <!-- maximum threshold of documents a query term can appear to be considered for correction -->
1330
- <float name="maxQueryFrequency">0.01</float>
1331
- <!-- uncomment this to require suggestions to occur in 1% of the documents
1332
- <float name="thresholdTokenFrequency">.01</float>
1333
- -->
1334
- </lst>
1335
-
1336
- <!-- a spellchecker that can break or combine words. See "/spell" handler below for usage -->
1337
- <lst name="spellchecker">
1338
- <str name="name">wordbreak</str>
1339
- <str name="classname">solr.WordBreakSolrSpellChecker</str>
1340
- <str name="field">name</str>
1341
- <str name="combineWords">true</str>
1342
- <str name="breakWords">true</str>
1343
- <int name="maxChanges">10</int>
1344
- </lst>
1345
-
1346
- <!-- a spellchecker that uses a different distance measure -->
1347
- <!--
1348
- <lst name="spellchecker">
1349
- <str name="name">jarowinkler</str>
1350
- <str name="field">spell</str>
1351
- <str name="classname">solr.DirectSolrSpellChecker</str>
1352
- <str name="distanceMeasure">
1353
- org.apache.lucene.search.spell.JaroWinklerDistance
1354
- </str>
1355
- </lst>
1356
- -->
1357
-
1358
- <!-- a spellchecker that use an alternate comparator
1359
-
1360
- comparatorClass be one of:
1361
- 1. score (default)
1362
- 2. freq (Frequency first, then score)
1363
- 3. A fully qualified class name
1364
- -->
1365
- <!--
1366
- <lst name="spellchecker">
1367
- <str name="name">freq</str>
1368
- <str name="field">lowerfilt</str>
1369
- <str name="classname">solr.DirectSolrSpellChecker</str>
1370
- <str name="comparatorClass">freq</str>
1371
- -->
1372
-
1373
- <!-- A spellchecker that reads the list of words from a file -->
1374
- <!--
1375
- <lst name="spellchecker">
1376
- <str name="classname">solr.FileBasedSpellChecker</str>
1377
- <str name="name">file</str>
1378
- <str name="sourceLocation">spellings.txt</str>
1379
- <str name="characterEncoding">UTF-8</str>
1380
- <str name="spellcheckIndexDir">spellcheckerFile</str>
1381
- </lst>
1382
- -->
1383
- </searchComponent>
1384
-
1385
- <!-- A request handler for demonstrating the spellcheck component.
1386
-
1387
- NOTE: This is purely as an example. The whole purpose of the
1388
- SpellCheckComponent is to hook it into the request handler that
1389
- handles your normal user queries so that a separate request is
1390
- not needed to get suggestions.
1391
-
1392
- IN OTHER WORDS, THERE IS REALLY GOOD CHANCE THE SETUP BELOW IS
1393
- NOT WHAT YOU WANT FOR YOUR PRODUCTION SYSTEM!
1394
-
1395
- See http://wiki.apache.org/solr/SpellCheckComponent for details
1396
- on the request parameters.
1397
- -->
1398
- <requestHandler name="/spell" class="solr.SearchHandler" startup="lazy">
1399
- <lst name="defaults">
1400
- <str name="df">text</str>
1401
- <!-- Solr will use suggestions from both the 'default' spellchecker
1402
- and from the 'wordbreak' spellchecker and combine them.
1403
- collations (re-written queries) can include a combination of
1404
- corrections from both spellcheckers -->
1405
- <str name="spellcheck.dictionary">default</str>
1406
- <str name="spellcheck.dictionary">wordbreak</str>
1407
- <str name="spellcheck">on</str>
1408
- <str name="spellcheck.extendedResults">true</str>
1409
- <str name="spellcheck.count">10</str>
1410
- <str name="spellcheck.alternativeTermCount">5</str>
1411
- <str name="spellcheck.maxResultsForSuggest">5</str>
1412
- <str name="spellcheck.collate">true</str>
1413
- <str name="spellcheck.collateExtendedResults">true</str>
1414
- <str name="spellcheck.maxCollationTries">10</str>
1415
- <str name="spellcheck.maxCollations">5</str>
1416
- </lst>
1417
- <arr name="last-components">
1418
- <str>spellcheck</str>
1419
- </arr>
1420
- </requestHandler>
1421
-
1422
- <!-- This causes long startup times on big indexes, even when never used. See SOLR-6679
1423
- <searchComponent name="suggest" class="solr.SuggestComponent">
1424
- <lst name="suggester">
1425
- <str name="name">mySuggester</str>
1426
- <str name="lookupImpl">FuzzyLookupFactory</str>
1427
- <str name="dictionaryImpl">DocumentDictionaryFactory</str>
1428
- <str name="field">cat</str>
1429
- <str name="weightField">price</str>
1430
- <str name="suggestAnalyzerFieldType">string</str>
1431
- </lst>
1432
- </searchComponent>
1433
-
1434
- <requestHandler name="/suggest" class="solr.SearchHandler" startup="lazy">
1435
- <lst name="defaults">
1436
- <str name="suggest">true</str>
1437
- <str name="suggest.count">10</str>
1438
- </lst>
1439
- <arr name="components">
1440
- <str>suggest</str>
1441
- </arr>
1442
- </requestHandler>
1443
- -->
1444
-
1445
- <!-- Term Vector Component
1446
-
1447
- http://wiki.apache.org/solr/TermVectorComponent
1448
- -->
1449
- <searchComponent name="tvComponent" class="solr.TermVectorComponent"/>
1450
-
1451
- <!-- A request handler for demonstrating the term vector component
1452
-
1453
- This is purely as an example.
1454
-
1455
- In reality you will likely want to add the component to your
1456
- already specified request handlers.
1457
- -->
1458
- <requestHandler name="/tvrh" class="solr.SearchHandler" startup="lazy">
1459
- <lst name="defaults">
1460
- <str name="df">text</str>
1461
- <bool name="tv">true</bool>
1462
- </lst>
1463
- <arr name="last-components">
1464
- <str>tvComponent</str>
1465
- </arr>
1466
- </requestHandler>
1467
-
1468
- <!-- Clustering Component
1469
-
1470
- You'll need to set the solr.clustering.enabled system property
1471
- when running solr to run with clustering enabled:
1472
-
1473
- java -Dsolr.clustering.enabled=true -jar start.jar
1474
-
1475
- http://wiki.apache.org/solr/ClusteringComponent
1476
- http://carrot2.github.io/solr-integration-strategies/
1477
- -->
1478
- <searchComponent name="clustering"
1479
- enable="${solr.clustering.enabled:false}"
1480
- class="solr.clustering.ClusteringComponent" >
1481
- <lst name="engine">
1482
- <str name="name">lingo</str>
1483
-
1484
- <!-- Class name of a clustering algorithm compatible with the Carrot2 framework.
1485
-
1486
- Currently available open source algorithms are:
1487
- * org.carrot2.clustering.lingo.LingoClusteringAlgorithm
1488
- * org.carrot2.clustering.stc.STCClusteringAlgorithm
1489
- * org.carrot2.clustering.kmeans.BisectingKMeansClusteringAlgorithm
1490
-
1491
- See http://project.carrot2.org/algorithms.html for more information.
1492
-
1493
- A commercial algorithm Lingo3G (needs to be installed separately) is defined as:
1494
- * com.carrotsearch.lingo3g.Lingo3GClusteringAlgorithm
1495
- -->
1496
- <str name="carrot.algorithm">org.carrot2.clustering.lingo.LingoClusteringAlgorithm</str>
1497
-
1498
- <!-- Override location of the clustering algorithm's resources
1499
- (attribute definitions and lexical resources).
1500
-
1501
- A directory from which to load algorithm-specific stop words,
1502
- stop labels and attribute definition XMLs.
1503
-
1504
- For an overview of Carrot2 lexical resources, see:
1505
- http://download.carrot2.org/head/manual/#chapter.lexical-resources
1506
-
1507
- For an overview of Lingo3G lexical resources, see:
1508
- http://download.carrotsearch.com/lingo3g/manual/#chapter.lexical-resources
1509
- -->
1510
- <str name="carrot.resourcesDir">clustering/carrot2</str>
1511
- </lst>
1512
-
1513
- <!-- An example definition for the STC clustering algorithm. -->
1514
- <lst name="engine">
1515
- <str name="name">stc</str>
1516
- <str name="carrot.algorithm">org.carrot2.clustering.stc.STCClusteringAlgorithm</str>
1517
- </lst>
1518
-
1519
- <!-- An example definition for the bisecting kmeans clustering algorithm. -->
1520
- <lst name="engine">
1521
- <str name="name">kmeans</str>
1522
- <str name="carrot.algorithm">org.carrot2.clustering.kmeans.BisectingKMeansClusteringAlgorithm</str>
1523
- </lst>
1524
- </searchComponent>
1525
-
1526
- <!-- A request handler for demonstrating the clustering component
1527
-
1528
- This is purely as an example.
1529
-
1530
- In reality you will likely want to add the component to your
1531
- already specified request handlers.
1532
- -->
1533
- <requestHandler name="/clustering"
1534
- startup="lazy"
1535
- enable="${solr.clustering.enabled:false}"
1536
- class="solr.SearchHandler">
1537
- <lst name="defaults">
1538
- <bool name="clustering">true</bool>
1539
- <bool name="clustering.results">true</bool>
1540
- <!-- Field name with the logical "title" of a each document (optional) -->
1541
- <str name="carrot.title">name</str>
1542
- <!-- Field name with the logical "URL" of a each document (optional) -->
1543
- <str name="carrot.url">id</str>
1544
- <!-- Field name with the logical "content" of a each document (optional) -->
1545
- <str name="carrot.snippet">features</str>
1546
- <!-- Apply highlighter to the title/ content and use this for clustering. -->
1547
- <bool name="carrot.produceSummary">true</bool>
1548
- <!-- the maximum number of labels per cluster -->
1549
- <!--<int name="carrot.numDescriptions">5</int>-->
1550
- <!-- produce sub clusters -->
1551
- <bool name="carrot.outputSubClusters">false</bool>
1552
-
1553
- <!-- Configure the remaining request handler parameters. -->
1554
- <str name="defType">edismax</str>
1555
- <str name="qf">
1556
- text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
1557
- </str>
1558
- <str name="q.alt">*:*</str>
1559
- <str name="rows">10</str>
1560
- <str name="fl">*,score</str>
1561
- </lst>
1562
- <arr name="last-components">
1563
- <str>clustering</str>
1564
- </arr>
1565
- </requestHandler>
1566
-
1567
- <!-- Terms Component
1568
-
1569
- http://wiki.apache.org/solr/TermsComponent
1570
-
1571
- A component to return terms and document frequency of those
1572
- terms
1573
- -->
1574
- <searchComponent name="terms" class="solr.TermsComponent"/>
1575
-
1576
- <!-- A request handler for demonstrating the terms component -->
1577
- <requestHandler name="/terms" class="solr.SearchHandler" startup="lazy">
1578
- <lst name="defaults">
1579
- <bool name="terms">true</bool>
1580
- <bool name="distrib">false</bool>
1581
- </lst>
1582
- <arr name="components">
1583
- <str>terms</str>
1584
- </arr>
1585
- </requestHandler>
1586
-
1587
-
1588
- <!-- Query Elevation Component
1589
-
1590
- http://wiki.apache.org/solr/QueryElevationComponent
1591
-
1592
- a search component that enables you to configure the top
1593
- results for a given query regardless of the normal lucene
1594
- scoring.
1595
- -->
1596
- <searchComponent name="elevator" class="solr.QueryElevationComponent" >
1597
- <!-- pick a fieldType to analyze queries -->
1598
- <str name="queryFieldType">string</str>
1599
- <str name="config-file">elevate.xml</str>
1600
- </searchComponent>
1601
-
1602
- <!-- A request handler for demonstrating the elevator component -->
1603
- <requestHandler name="/elevate" class="solr.SearchHandler" startup="lazy">
1604
- <lst name="defaults">
1605
- <str name="echoParams">explicit</str>
1606
- <str name="df">text</str>
1607
- </lst>
1608
- <arr name="last-components">
1609
- <str>elevator</str>
1610
- </arr>
1611
- </requestHandler>
1612
-
1613
- <!-- Highlighting Component
1614
-
1615
- http://wiki.apache.org/solr/HighlightingParameters
1616
- -->
1617
- <searchComponent class="solr.HighlightComponent" name="highlight">
1618
- <highlighting>
1619
- <!-- Configure the standard fragmenter -->
1620
- <!-- This could most likely be commented out in the "default" case -->
1621
- <fragmenter name="gap"
1622
- default="true"
1623
- class="solr.highlight.GapFragmenter">
1624
- <lst name="defaults">
1625
- <int name="hl.fragsize">100</int>
1626
- </lst>
1627
- </fragmenter>
1628
-
1629
- <!-- A regular-expression-based fragmenter
1630
- (for sentence extraction)
1631
- -->
1632
- <fragmenter name="regex"
1633
- class="solr.highlight.RegexFragmenter">
1634
- <lst name="defaults">
1635
- <!-- slightly smaller fragsizes work better because of slop -->
1636
- <int name="hl.fragsize">70</int>
1637
- <!-- allow 50% slop on fragment sizes -->
1638
- <float name="hl.regex.slop">0.5</float>
1639
- <!-- a basic sentence pattern -->
1640
- <str name="hl.regex.pattern">[-\w ,/\n\&quot;&apos;]{20,200}</str>
1641
- </lst>
1642
- </fragmenter>
1643
-
1644
- <!-- Configure the standard formatter -->
1645
- <formatter name="html"
1646
- default="true"
1647
- class="solr.highlight.HtmlFormatter">
1648
- <lst name="defaults">
1649
- <str name="hl.simple.pre"><![CDATA[<em>]]></str>
1650
- <str name="hl.simple.post"><![CDATA[</em>]]></str>
1651
- </lst>
1652
- </formatter>
1653
-
1654
- <!-- Configure the standard encoder -->
1655
- <encoder name="html"
1656
- class="solr.highlight.HtmlEncoder" />
1657
-
1658
- <!-- Configure the standard fragListBuilder -->
1659
- <fragListBuilder name="simple"
1660
- class="solr.highlight.SimpleFragListBuilder"/>
1661
-
1662
- <!-- Configure the single fragListBuilder -->
1663
- <fragListBuilder name="single"
1664
- class="solr.highlight.SingleFragListBuilder"/>
1665
-
1666
- <!-- Configure the weighted fragListBuilder -->
1667
- <fragListBuilder name="weighted"
1668
- default="true"
1669
- class="solr.highlight.WeightedFragListBuilder"/>
1670
-
1671
- <!-- default tag FragmentsBuilder -->
1672
- <fragmentsBuilder name="default"
1673
- default="true"
1674
- class="solr.highlight.ScoreOrderFragmentsBuilder">
1675
- <!--
1676
- <lst name="defaults">
1677
- <str name="hl.multiValuedSeparatorChar">/</str>
1678
- </lst>
1679
- -->
1680
- </fragmentsBuilder>
1681
-
1682
- <!-- multi-colored tag FragmentsBuilder -->
1683
- <fragmentsBuilder name="colored"
1684
- class="solr.highlight.ScoreOrderFragmentsBuilder">
1685
- <lst name="defaults">
1686
- <str name="hl.tag.pre"><![CDATA[
1687
- <b style="background:yellow">,<b style="background:lawgreen">,
1688
- <b style="background:aquamarine">,<b style="background:magenta">,
1689
- <b style="background:palegreen">,<b style="background:coral">,
1690
- <b style="background:wheat">,<b style="background:khaki">,
1691
- <b style="background:lime">,<b style="background:deepskyblue">]]></str>
1692
- <str name="hl.tag.post"><![CDATA[</b>]]></str>
1693
- </lst>
1694
- </fragmentsBuilder>
1695
-
1696
- <boundaryScanner name="default"
1697
- default="true"
1698
- class="solr.highlight.SimpleBoundaryScanner">
1699
- <lst name="defaults">
1700
- <str name="hl.bs.maxScan">10</str>
1701
- <str name="hl.bs.chars">.,!? &#9;&#10;&#13;</str>
1702
- </lst>
1703
- </boundaryScanner>
1704
-
1705
- <boundaryScanner name="breakIterator"
1706
- class="solr.highlight.BreakIteratorBoundaryScanner">
1707
- <lst name="defaults">
1708
- <!-- type should be one of CHARACTER, WORD(default), LINE and SENTENCE -->
1709
- <str name="hl.bs.type">WORD</str>
1710
- <!-- language and country are used when constructing Locale object. -->
1711
- <!-- And the Locale object will be used when getting instance of BreakIterator -->
1712
- <str name="hl.bs.language">en</str>
1713
- <str name="hl.bs.country">US</str>
1714
- </lst>
1715
- </boundaryScanner>
1716
- </highlighting>
1717
- </searchComponent>
1718
-
1719
- <!-- Update Processors
1720
-
1721
- Chains of Update Processor Factories for dealing with Update
1722
- Requests can be declared, and then used by name in Update
1723
- Request Processors
1724
-
1725
- http://wiki.apache.org/solr/UpdateRequestProcessor
1726
-
1727
- -->
1728
- <!-- Deduplication
1729
-
1730
- An example dedup update processor that creates the "id" field
1731
- on the fly based on the hash code of some other fields. This
1732
- example has overwriteDupes set to false since we are using the
1733
- id field as the signatureField and Solr will maintain
1734
- uniqueness based on that anyway.
1735
-
1736
- -->
1737
- <!--
1738
- <updateRequestProcessorChain name="dedupe">
1739
- <processor class="solr.processor.SignatureUpdateProcessorFactory">
1740
- <bool name="enabled">true</bool>
1741
- <str name="signatureField">id</str>
1742
- <bool name="overwriteDupes">false</bool>
1743
- <str name="fields">name,features,cat</str>
1744
- <str name="signatureClass">solr.processor.Lookup3Signature</str>
1745
- </processor>
1746
- <processor class="solr.LogUpdateProcessorFactory" />
1747
- <processor class="solr.RunUpdateProcessorFactory" />
1748
- </updateRequestProcessorChain>
1749
- -->
1750
-
1751
- <!-- Language identification
1752
-
1753
- This example update chain identifies the language of the incoming
1754
- documents using the langid contrib. The detected language is
1755
- written to field language_s. No field name mapping is done.
1756
- The fields used for detection are text, title, subject and description,
1757
- making this example suitable for detecting languages form full-text
1758
- rich documents injected via ExtractingRequestHandler.
1759
- See more about langId at http://wiki.apache.org/solr/LanguageDetection
1760
- -->
1761
- <!--
1762
- <updateRequestProcessorChain name="langid">
1763
- <processor class="org.apache.solr.update.processor.TikaLanguageIdentifierUpdateProcessorFactory">
1764
- <str name="langid.fl">text,title,subject,description</str>
1765
- <str name="langid.langField">language_s</str>
1766
- <str name="langid.fallback">en</str>
1767
- </processor>
1768
- <processor class="solr.LogUpdateProcessorFactory" />
1769
- <processor class="solr.RunUpdateProcessorFactory" />
1770
- </updateRequestProcessorChain>
1771
- -->
1772
-
1773
- <!-- Script update processor
1774
-
1775
- This example hooks in an update processor implemented using JavaScript.
1776
-
1777
- See more about the script update processor at http://wiki.apache.org/solr/ScriptUpdateProcessor
1778
- -->
1779
- <!--
1780
- <updateRequestProcessorChain name="script">
1781
- <processor class="solr.StatelessScriptUpdateProcessorFactory">
1782
- <str name="script">update-script.js</str>
1783
- <lst name="params">
1784
- <str name="config_param">example config parameter</str>
1785
- </lst>
1786
- </processor>
1787
- <processor class="solr.RunUpdateProcessorFactory" />
1788
- </updateRequestProcessorChain>
1789
- -->
1790
-
1791
- <!-- Response Writers
1792
-
1793
- http://wiki.apache.org/solr/QueryResponseWriter
1794
-
1795
- Request responses will be written using the writer specified by
1796
- the 'wt' request parameter matching the name of a registered
1797
- writer.
1798
-
1799
- The "default" writer is the default and will be used if 'wt' is
1800
- not specified in the request.
1801
- -->
1802
- <!-- The following response writers are implicitly configured unless
1803
- overridden...
1804
- -->
1805
- <!--
1806
- <queryResponseWriter name="xml"
1807
- default="true"
1808
- class="solr.XMLResponseWriter" />
1809
- <queryResponseWriter name="json" class="solr.JSONResponseWriter"/>
1810
- <queryResponseWriter name="python" class="solr.PythonResponseWriter"/>
1811
- <queryResponseWriter name="ruby" class="solr.RubyResponseWriter"/>
1812
- <queryResponseWriter name="php" class="solr.PHPResponseWriter"/>
1813
- <queryResponseWriter name="phps" class="solr.PHPSerializedResponseWriter"/>
1814
- <queryResponseWriter name="csv" class="solr.CSVResponseWriter"/>
1815
- <queryResponseWriter name="schema.xml" class="solr.SchemaXmlResponseWriter"/>
1816
- -->
1817
-
1818
- <queryResponseWriter name="json" class="solr.JSONResponseWriter">
1819
- <!-- For the purposes of the tutorial, JSON responses are written as
1820
- plain text so that they are easy to read in *any* browser.
1821
- If you expect a MIME type of "application/json" just remove this override.
1822
- -->
1823
- <str name="content-type">text/plain; charset=UTF-8</str>
1824
- </queryResponseWriter>
1825
-
1826
- <!--
1827
- Custom response writers can be declared as needed...
1828
- -->
1829
- <queryResponseWriter name="velocity" class="solr.VelocityResponseWriter" startup="lazy"/>
1830
-
1831
-
1832
- <!-- XSLT response writer transforms the XML output by any xslt file found
1833
- in Solr's conf/xslt directory. Changes to xslt files are checked for
1834
- every xsltCacheLifetimeSeconds.
1835
- -->
1836
- <queryResponseWriter name="xslt" class="solr.XSLTResponseWriter">
1837
- <int name="xsltCacheLifetimeSeconds">5</int>
1838
- </queryResponseWriter>
1839
-
1840
- <!-- Query Parsers
1841
-
1842
- http://wiki.apache.org/solr/SolrQuerySyntax
1843
-
1844
- Multiple QParserPlugins can be registered by name, and then
1845
- used in either the "defType" param for the QueryComponent (used
1846
- by SearchHandler) or in LocalParams
1847
- -->
1848
- <!-- example of registering a query parser -->
1849
- <!--
1850
- <queryParser name="myparser" class="com.mycompany.MyQParserPlugin"/>
1851
- -->
1852
-
1853
- <!-- Function Parsers
1854
-
1855
- http://wiki.apache.org/solr/FunctionQuery
1856
-
1857
- Multiple ValueSourceParsers can be registered by name, and then
1858
- used as function names when using the "func" QParser.
1859
- -->
1860
- <!-- example of registering a custom function parser -->
1861
- <!--
1862
- <valueSourceParser name="myfunc"
1863
- class="com.mycompany.MyValueSourceParser" />
1864
- -->
1865
-
1866
-
1867
- <!-- Document Transformers
1868
- http://wiki.apache.org/solr/DocTransformers
1869
- -->
1870
- <!--
1871
- Could be something like:
1872
- <transformer name="db" class="com.mycompany.LoadFromDatabaseTransformer" >
1873
- <int name="connection">jdbc://....</int>
1874
- </transformer>
1875
-
1876
- To add a constant value to all docs, use:
1877
- <transformer name="mytrans2" class="org.apache.solr.response.transform.ValueAugmenterFactory" >
1878
- <int name="value">5</int>
1879
- </transformer>
1880
-
1881
- If you want the user to still be able to change it with _value:something_ use this:
1882
- <transformer name="mytrans3" class="org.apache.solr.response.transform.ValueAugmenterFactory" >
1883
- <double name="defaultValue">5</double>
1884
- </transformer>
1885
-
1886
- If you are using the QueryElevationComponent, you may wish to mark documents that get boosted. The
1887
- EditorialMarkerFactory will do exactly that:
1888
- <transformer name="qecBooster" class="org.apache.solr.response.transform.EditorialMarkerFactory" />
1889
- -->
1890
-
1891
-
1892
- <!-- Legacy config for the admin interface -->
1893
- <admin>
1894
- <defaultQuery>*:*</defaultQuery>
1895
- </admin>
1896
-
1897
- </config>
1898
- =======
1899
- <?xml version="1.0" encoding="UTF-8" ?>
1900
- <!--
1901
- Licensed to the Apache Software Foundation (ASF) under one or more
1902
- contributor license agreements. See the NOTICE file distributed with
1903
- this work for additional information regarding copyright ownership.
1904
- The ASF licenses this file to You under the Apache License, Version 2.0
1905
- (the "License"); you may not use this file except in compliance with
1906
- the License. You may obtain a copy of the License at
1907
-
1908
- http://www.apache.org/licenses/LICENSE-2.0
1909
-
1910
- Unless required by applicable law or agreed to in writing, software
1911
- distributed under the License is distributed on an "AS IS" BASIS,
1912
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1913
- See the License for the specific language governing permissions and
1914
- limitations under the License.
1915
- -->
1916
-
1917
- <!--
1918
- For more details about configurations options that may appear in
1919
- this file, see http://wiki.apache.org/solr/SolrConfigXml.
1920
- -->
1921
- <config>
1922
- <!-- In all configuration below, a prefix of "solr." for class names
1923
- is an alias that causes solr to search appropriate packages,
1924
- including org.apache.solr.(search|update|request|core|analysis)
1925
-
1926
- You may also specify a fully qualified Java classname if you
1927
- have your own custom plugins.
1928
- -->
1929
-
1930
- <!-- Controls what version of Lucene various components of Solr
1931
- adhere to. Generally, you want to use the latest version to
1932
- get all bug fixes and improvements. It is highly recommended
1933
- that you fully re-index after changing this setting as it can
1934
- affect both how text is indexed and queried.
1935
- -->
1936
- <luceneMatchVersion>5.2.0</luceneMatchVersion>
1937
-
1938
- <!-- <lib/> directives can be used to instruct Solr to load any Jars
1939
- identified and use them to resolve any "plugins" specified in
1940
- your solrconfig.xml or schema.xml (ie: Analyzers, Request
1941
- Handlers, etc...).
1942
-
1943
- All directories and paths are resolved relative to the
1944
- instanceDir.
1945
-
1946
- Please note that <lib/> directives are processed in the order
1947
- that they appear in your solrconfig.xml file, and are "stacked"
1948
- on top of each other when building a ClassLoader - so if you have
1949
- plugin jars with dependencies on other jars, the "lower level"
1950
- dependency jars should be loaded first.
1951
-
1952
- If a "./lib" directory exists in your instanceDir, all files
1953
- found in it are included as if you had used the following
1954
- syntax...
1955
-
1956
- <lib dir="./lib" />
1957
- -->
1958
-
1959
- <!-- A 'dir' option by itself adds any files found in the directory
1960
- to the classpath, this is useful for including all jars in a
1961
- directory.
1962
-
1963
- When a 'regex' is specified in addition to a 'dir', only the
1964
- files in that directory which completely match the regex
1965
- (anchored on both ends) will be included.
1966
-
1967
- If a 'dir' option (with or without a regex) is used and nothing
1968
- is found that matches, a warning will be logged.
1969
-
1970
- The examples below can be used to load some solr-contribs along
1971
- with their external dependencies.
1972
- -->
1973
- <lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-dataimporthandler-.*\.jar" />
1974
-
1975
- <lib dir="${solr.install.dir:../../../..}/contrib/extraction/lib" regex=".*\.jar" />
1976
- <lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-cell-\d.*\.jar" />
1977
-
1978
- <lib dir="${solr.install.dir:../../../..}/contrib/clustering/lib/" regex=".*\.jar" />
1979
- <lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-clustering-\d.*\.jar" />
1980
-
1981
- <lib dir="${solr.install.dir:../../../..}/contrib/langid/lib/" regex=".*\.jar" />
1982
- <lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-langid-\d.*\.jar" />
1983
-
1984
- <lib dir="${solr.install.dir:../../../..}/contrib/velocity/lib" regex=".*\.jar" />
1985
- <lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-velocity-\d.*\.jar" />
1986
-
1987
- <!-- an exact 'path' can be used instead of a 'dir' to specify a
1988
- specific jar file. This will cause a serious error to be logged
1989
- if it can't be loaded.
1990
- -->
1991
- <!--
1992
- <lib path="../a-jar-that-does-not-exist.jar" />
1993
- -->
1994
-
1995
- <!-- Data Directory
1996
-
1997
- Used to specify an alternate directory to hold all index data
1998
- other than the default ./data under the Solr home. If
1999
- replication is in use, this should match the replication
2000
- configuration.
2001
- -->
2002
- <dataDir>${solr.data.dir:}</dataDir>
2003
-
2004
-
2005
- <!-- The DirectoryFactory to use for indexes.
2006
-
2007
- solr.StandardDirectoryFactory is filesystem
2008
- based and tries to pick the best implementation for the current
2009
- JVM and platform. solr.NRTCachingDirectoryFactory, the default,
2010
- wraps solr.StandardDirectoryFactory and caches small files in memory
2011
- for better NRT performance.
2012
-
2013
- One can force a particular implementation via solr.MMapDirectoryFactory,
2014
- solr.NIOFSDirectoryFactory, or solr.SimpleFSDirectoryFactory.
2015
-
2016
- solr.RAMDirectoryFactory is memory based, not
2017
- persistent, and doesn't work with replication.
2018
- -->
2019
- <directoryFactory name="DirectoryFactory"
2020
- class="${solr.directoryFactory:solr.NRTCachingDirectoryFactory}">
2021
-
2022
-
2023
- <!-- These will be used if you are using the solr.HdfsDirectoryFactory,
2024
- otherwise they will be ignored. If you don't plan on using hdfs,
2025
- you can safely remove this section. -->
2026
- <!-- The root directory that collection data should be written to. -->
2027
- <str name="solr.hdfs.home">${solr.hdfs.home:}</str>
2028
- <!-- The hadoop configuration files to use for the hdfs client. -->
2029
- <str name="solr.hdfs.confdir">${solr.hdfs.confdir:}</str>
2030
- <!-- Enable/Disable the hdfs cache. -->
2031
- <str name="solr.hdfs.blockcache.enabled">${solr.hdfs.blockcache.enabled:true}</str>
2032
- <!-- Enable/Disable using one global cache for all SolrCores.
2033
- The settings used will be from the first HdfsDirectoryFactory created. -->
2034
- <str name="solr.hdfs.blockcache.global">${solr.hdfs.blockcache.global:true}</str>
2035
-
2036
- </directoryFactory>
2037
-
2038
- <!-- The CodecFactory for defining the format of the inverted index.
2039
- The default implementation is SchemaCodecFactory, which is the official Lucene
2040
- index format, but hooks into the schema to provide per-field customization of
2041
- the postings lists and per-document values in the fieldType element
2042
- (postingsFormat/docValuesFormat). Note that most of the alternative implementations
2043
- are experimental, so if you choose to customize the index format, it's a good
2044
- idea to convert back to the official format e.g. via IndexWriter.addIndexes(IndexReader)
2045
- before upgrading to a newer version to avoid unnecessary reindexing.
2046
- -->
2047
- <codecFactory class="solr.SchemaCodecFactory"/>
2048
-
2049
- <!-- To enable dynamic schema REST APIs, use the following for <schemaFactory>:
2050
-
2051
- <schemaFactory class="ManagedIndexSchemaFactory">
2052
- <bool name="mutable">true</bool>
2053
- <str name="managedSchemaResourceName">managed-schema</str>
2054
- </schemaFactory>
2055
-
2056
- When ManagedIndexSchemaFactory is specified, Solr will load the schema from
2057
- the resource named in 'managedSchemaResourceName', rather than from schema.xml.
2058
- Note that the managed schema resource CANNOT be named schema.xml. If the managed
2059
- schema does not exist, Solr will create it after reading schema.xml, then rename
2060
- 'schema.xml' to 'schema.xml.bak'.
2061
-
2062
- Do NOT hand edit the managed schema - external modifications will be ignored and
2063
- overwritten as a result of schema modification REST API calls.
2064
-
2065
- When ManagedIndexSchemaFactory is specified with mutable = true, schema
2066
- modification REST API calls will be allowed; otherwise, error responses will be
2067
- sent back for these requests.
2068
- -->
2069
- <schemaFactory class="ClassicIndexSchemaFactory"/>
2070
-
2071
- <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2072
- Index Config - These settings control low-level behavior of indexing
2073
- Most example settings here show the default value, but are commented
2074
- out, to more easily see where customizations have been made.
2075
-
2076
- Note: This replaces <indexDefaults> and <mainIndex> from older versions
2077
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
2078
- <indexConfig>
2079
- <!-- maxFieldLength was removed in 4.0. To get similar behavior, include a
2080
- LimitTokenCountFilterFactory in your fieldType definition. E.g.
2081
- <filter class="solr.LimitTokenCountFilterFactory" maxTokenCount="10000"/>
2082
- -->
2083
- <!-- Maximum time to wait for a write lock (ms) for an IndexWriter. Default: 1000 -->
2084
- <!-- <writeLockTimeout>1000</writeLockTimeout> -->
2085
-
2086
- <!-- Expert: Enabling compound file will use less files for the index,
2087
- using fewer file descriptors on the expense of performance decrease.
2088
- Default in Lucene is "true". Default in Solr is "false" (since 3.6) -->
2089
- <!-- <useCompoundFile>false</useCompoundFile> -->
2090
-
2091
- <!-- ramBufferSizeMB sets the amount of RAM that may be used by Lucene
2092
- indexing for buffering added documents and deletions before they are
2093
- flushed to the Directory.
2094
- maxBufferedDocs sets a limit on the number of documents buffered
2095
- before flushing.
2096
- If both ramBufferSizeMB and maxBufferedDocs is set, then
2097
- Lucene will flush based on whichever limit is hit first.
2098
- The default is 100 MB. -->
2099
- <!-- <ramBufferSizeMB>100</ramBufferSizeMB> -->
2100
- <!-- <maxBufferedDocs>1000</maxBufferedDocs> -->
2101
-
2102
- <!-- Expert: Merge Policy
2103
- The Merge Policy in Lucene controls how merging of segments is done.
2104
- The default since Solr/Lucene 3.3 is TieredMergePolicy.
2105
- The default since Lucene 2.3 was the LogByteSizeMergePolicy,
2106
- Even older versions of Lucene used LogDocMergePolicy.
2107
- -->
2108
- <!--
2109
- <mergePolicy class="org.apache.lucene.index.TieredMergePolicy">
2110
- <int name="maxMergeAtOnce">10</int>
2111
- <int name="segmentsPerTier">10</int>
2112
- </mergePolicy>
2113
- -->
2114
-
2115
- <!-- Merge Factor
2116
- The merge factor controls how many segments will get merged at a time.
2117
- For TieredMergePolicy, mergeFactor is a convenience parameter which
2118
- will set both MaxMergeAtOnce and SegmentsPerTier at once.
2119
- For LogByteSizeMergePolicy, mergeFactor decides how many new segments
2120
- will be allowed before they are merged into one.
2121
- Default is 10 for both merge policies.
2122
- -->
2123
- <!--
2124
- <mergeFactor>10</mergeFactor>
2125
- -->
2126
-
2127
- <!-- Expert: Merge Scheduler
2128
- The Merge Scheduler in Lucene controls how merges are
2129
- performed. The ConcurrentMergeScheduler (Lucene 2.3 default)
2130
- can perform merges in the background using separate threads.
2131
- The SerialMergeScheduler (Lucene 2.2 default) does not.
2132
- -->
2133
- <!--
2134
- <mergeScheduler class="org.apache.lucene.index.ConcurrentMergeScheduler"/>
2135
- -->
2136
-
2137
- <!-- LockFactory
2138
-
2139
- This option specifies which Lucene LockFactory implementation
2140
- to use.
2141
-
2142
- single = SingleInstanceLockFactory - suggested for a
2143
- read-only index or when there is no possibility of
2144
- another process trying to modify the index.
2145
- native = NativeFSLockFactory - uses OS native file locking.
2146
- Do not use when multiple solr webapps in the same
2147
- JVM are attempting to share a single index.
2148
- simple = SimpleFSLockFactory - uses a plain file for locking
2149
-
2150
- Defaults: 'native' is default for Solr3.6 and later, otherwise
2151
- 'simple' is the default
2152
-
2153
- More details on the nuances of each LockFactory...
2154
- http://wiki.apache.org/lucene-java/AvailableLockFactories
2155
- -->
2156
- <lockType>${solr.lock.type:native}</lockType>
2157
-
2158
- <!-- Commit Deletion Policy
2159
- Custom deletion policies can be specified here. The class must
2160
- implement org.apache.lucene.index.IndexDeletionPolicy.
2161
-
2162
- The default Solr IndexDeletionPolicy implementation supports
2163
- deleting index commit points on number of commits, age of
2164
- commit point and optimized status.
2165
-
2166
- The latest commit point should always be preserved regardless
2167
- of the criteria.
2168
- -->
2169
- <!--
2170
- <deletionPolicy class="solr.SolrDeletionPolicy">
2171
- -->
2172
- <!-- The number of commit points to be kept -->
2173
- <!-- <str name="maxCommitsToKeep">1</str> -->
2174
- <!-- The number of optimized commit points to be kept -->
2175
- <!-- <str name="maxOptimizedCommitsToKeep">0</str> -->
2176
- <!--
2177
- Delete all commit points once they have reached the given age.
2178
- Supports DateMathParser syntax e.g.
2179
- -->
2180
- <!--
2181
- <str name="maxCommitAge">30MINUTES</str>
2182
- <str name="maxCommitAge">1DAY</str>
2183
- -->
2184
- <!--
2185
- </deletionPolicy>
2186
- -->
2187
-
2188
- <!-- Lucene Infostream
2189
-
2190
- To aid in advanced debugging, Lucene provides an "InfoStream"
2191
- of detailed information when indexing.
2192
-
2193
- Setting the value to true will instruct the underlying Lucene
2194
- IndexWriter to write its info stream to solr's log. By default,
2195
- this is enabled here, and controlled through log4j.properties.
2196
- -->
2197
- <infoStream>true</infoStream>
2198
- </indexConfig>
2199
-
2200
-
2201
- <!-- JMX
2202
-
2203
- This example enables JMX if and only if an existing MBeanServer
2204
- is found, use this if you want to configure JMX through JVM
2205
- parameters. Remove this to disable exposing Solr configuration
2206
- and statistics to JMX.
2207
-
2208
- For more details see http://wiki.apache.org/solr/SolrJmx
2209
- -->
2210
- <jmx />
2211
- <!-- If you want to connect to a particular server, specify the
2212
- agentId
2213
- -->
2214
- <!-- <jmx agentId="myAgent" /> -->
2215
- <!-- If you want to start a new MBeanServer, specify the serviceUrl -->
2216
- <!-- <jmx serviceUrl="service:jmx:rmi:///jndi/rmi://localhost:9999/solr"/>
2217
- -->
2218
-
2219
- <!-- The default high-performance update handler -->
2220
- <updateHandler class="solr.DirectUpdateHandler2">
2221
-
2222
- <!-- Enables a transaction log, used for real-time get, durability, and
2223
- and solr cloud replica recovery. The log can grow as big as
2224
- uncommitted changes to the index, so use of a hard autoCommit
2225
- is recommended (see below).
2226
- "dir" - the target directory for transaction logs, defaults to the
2227
- solr data directory. -->
2228
- <updateLog>
2229
- <str name="dir">${solr.ulog.dir:}</str>
2230
- </updateLog>
2231
-
2232
- <!-- AutoCommit
2233
-
2234
- Perform a hard commit automatically under certain conditions.
2235
- Instead of enabling autoCommit, consider using "commitWithin"
2236
- when adding documents.
2237
-
2238
- http://wiki.apache.org/solr/UpdateXmlMessages
2239
-
2240
- maxDocs - Maximum number of documents to add since the last
2241
- commit before automatically triggering a new commit.
2242
-
2243
- maxTime - Maximum amount of time in ms that is allowed to pass
2244
- since a document was added before automatically
2245
- triggering a new commit.
2246
- openSearcher - if false, the commit causes recent index changes
2247
- to be flushed to stable storage, but does not cause a new
2248
- searcher to be opened to make those changes visible.
2249
-
2250
- If the updateLog is enabled, then it's highly recommended to
2251
- have some sort of hard autoCommit to limit the log size.
2252
- -->
2253
- <autoCommit>
2254
- <maxTime>${solr.autoCommit.maxTime:15000}</maxTime>
2255
- <openSearcher>false</openSearcher>
2256
- </autoCommit>
2257
-
2258
- <!-- softAutoCommit is like autoCommit except it causes a
2259
- 'soft' commit which only ensures that changes are visible
2260
- but does not ensure that data is synced to disk. This is
2261
- faster and more near-realtime friendly than a hard commit.
2262
- -->
2263
-
2264
- <autoSoftCommit>
2265
- <maxTime>${solr.autoSoftCommit.maxTime:-1}</maxTime>
2266
- </autoSoftCommit>
2267
-
2268
- <!-- Update Related Event Listeners
2269
-
2270
- Various IndexWriter related events can trigger Listeners to
2271
- take actions.
2272
-
2273
- postCommit - fired after every commit or optimize command
2274
- postOptimize - fired after every optimize command
2275
- -->
2276
- <!-- The RunExecutableListener executes an external command from a
2277
- hook such as postCommit or postOptimize.
2278
-
2279
- exe - the name of the executable to run
2280
- dir - dir to use as the current working directory. (default=".")
2281
- wait - the calling thread waits until the executable returns.
2282
- (default="true")
2283
- args - the arguments to pass to the program. (default is none)
2284
- env - environment variables to set. (default is none)
2285
- -->
2286
- <!-- This example shows how RunExecutableListener could be used
2287
- with the script based replication...
2288
- http://wiki.apache.org/solr/CollectionDistribution
2289
- -->
2290
- <!--
2291
- <listener event="postCommit" class="solr.RunExecutableListener">
2292
- <str name="exe">solr/bin/snapshooter</str>
2293
- <str name="dir">.</str>
2294
- <bool name="wait">true</bool>
2295
- <arr name="args"> <str>arg1</str> <str>arg2</str> </arr>
2296
- <arr name="env"> <str>MYVAR=val1</str> </arr>
2297
- </listener>
2298
- -->
2299
-
2300
- </updateHandler>
2301
-
2302
- <!-- IndexReaderFactory
2303
-
2304
- Use the following format to specify a custom IndexReaderFactory,
2305
- which allows for alternate IndexReader implementations.
2306
-
2307
- ** Experimental Feature **
2308
-
2309
- Please note - Using a custom IndexReaderFactory may prevent
2310
- certain other features from working. The API to
2311
- IndexReaderFactory may change without warning or may even be
2312
- removed from future releases if the problems cannot be
2313
- resolved.
2314
-
2315
-
2316
- ** Features that may not work with custom IndexReaderFactory **
2317
-
2318
- The ReplicationHandler assumes a disk-resident index. Using a
2319
- custom IndexReader implementation may cause incompatibility
2320
- with ReplicationHandler and may cause replication to not work
2321
- correctly. See SOLR-1366 for details.
2322
-
2323
- -->
2324
- <!--
2325
- <indexReaderFactory name="IndexReaderFactory" class="package.class">
2326
- <str name="someArg">Some Value</str>
2327
- </indexReaderFactory >
2328
- -->
2329
-
2330
- <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2331
- Query section - these settings control query time things like caches
2332
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
2333
- <query>
2334
- <!-- Max Boolean Clauses
2335
-
2336
- Maximum number of clauses in each BooleanQuery, an exception
2337
- is thrown if exceeded.
2338
-
2339
- ** WARNING **
2340
-
2341
- This option actually modifies a global Lucene property that
2342
- will affect all SolrCores. If multiple solrconfig.xml files
2343
- disagree on this property, the value at any given moment will
2344
- be based on the last SolrCore to be initialized.
2345
-
2346
- -->
2347
- <maxBooleanClauses>1024</maxBooleanClauses>
2348
-
2349
-
2350
- <!-- Solr Internal Query Caches
2351
-
2352
- There are two implementations of cache available for Solr,
2353
- LRUCache, based on a synchronized LinkedHashMap, and
2354
- FastLRUCache, based on a ConcurrentHashMap.
2355
-
2356
- FastLRUCache has faster gets and slower puts in single
2357
- threaded operation and thus is generally faster than LRUCache
2358
- when the hit ratio of the cache is high (> 75%), and may be
2359
- faster under other scenarios on multi-cpu systems.
2360
- -->
2361
-
2362
- <!-- Filter Cache
2363
-
2364
- Cache used by SolrIndexSearcher for filters (DocSets),
2365
- unordered sets of *all* documents that match a query. When a
2366
- new searcher is opened, its caches may be prepopulated or
2367
- "autowarmed" using data from caches in the old searcher.
2368
- autowarmCount is the number of items to prepopulate. For
2369
- LRUCache, the autowarmed items will be the most recently
2370
- accessed items.
2371
-
2372
- Parameters:
2373
- class - the SolrCache implementation LRUCache or
2374
- (LRUCache or FastLRUCache)
2375
- size - the maximum number of entries in the cache
2376
- initialSize - the initial capacity (number of entries) of
2377
- the cache. (see java.util.HashMap)
2378
- autowarmCount - the number of entries to prepopulate from
2379
- and old cache.
2380
- -->
2381
- <filterCache class="solr.FastLRUCache"
2382
- size="512"
2383
- initialSize="512"
2384
- autowarmCount="0"/>
2385
-
2386
- <!-- Query Result Cache
2387
-
2388
- Caches results of searches - ordered lists of document ids
2389
- (DocList) based on a query, a sort, and the range of documents requested.
2390
- -->
2391
- <queryResultCache class="solr.LRUCache"
2392
- size="512"
2393
- initialSize="512"
2394
- autowarmCount="0"/>
2395
-
2396
- <!-- Document Cache
2397
-
2398
- Caches Lucene Document objects (the stored fields for each
2399
- document). Since Lucene internal document ids are transient,
2400
- this cache will not be autowarmed.
2401
- -->
2402
- <documentCache class="solr.LRUCache"
2403
- size="512"
2404
- initialSize="512"
2405
- autowarmCount="0"/>
2406
-
2407
- <!-- custom cache currently used by block join -->
2408
- <cache name="perSegFilter"
2409
- class="solr.search.LRUCache"
2410
- size="10"
2411
- initialSize="0"
2412
- autowarmCount="10"
2413
- regenerator="solr.NoOpRegenerator" />
2414
-
2415
- <!-- Field Value Cache
2416
-
2417
- Cache used to hold field values that are quickly accessible
2418
- by document id. The fieldValueCache is created by default
2419
- even if not configured here.
2420
- -->
2421
- <!--
2422
- <fieldValueCache class="solr.FastLRUCache"
2423
- size="512"
2424
- autowarmCount="128"
2425
- showItems="32" />
2426
- -->
2427
-
2428
- <!-- Custom Cache
2429
-
2430
- Example of a generic cache. These caches may be accessed by
2431
- name through SolrIndexSearcher.getCache(),cacheLookup(), and
2432
- cacheInsert(). The purpose is to enable easy caching of
2433
- user/application level data. The regenerator argument should
2434
- be specified as an implementation of solr.CacheRegenerator
2435
- if autowarming is desired.
2436
- -->
2437
- <!--
2438
- <cache name="myUserCache"
2439
- class="solr.LRUCache"
2440
- size="4096"
2441
- initialSize="1024"
2442
- autowarmCount="1024"
2443
- regenerator="com.mycompany.MyRegenerator"
2444
- />
2445
- -->
2446
-
2447
-
2448
- <!-- Lazy Field Loading
2449
-
2450
- If true, stored fields that are not requested will be loaded
2451
- lazily. This can result in a significant speed improvement
2452
- if the usual case is to not load all stored fields,
2453
- especially if the skipped fields are large compressed text
2454
- fields.
2455
- -->
2456
- <enableLazyFieldLoading>true</enableLazyFieldLoading>
2457
-
2458
- <!-- Use Filter For Sorted Query
2459
-
2460
- A possible optimization that attempts to use a filter to
2461
- satisfy a search. If the requested sort does not include
2462
- score, then the filterCache will be checked for a filter
2463
- matching the query. If found, the filter will be used as the
2464
- source of document ids, and then the sort will be applied to
2465
- that.
2466
-
2467
- For most situations, this will not be useful unless you
2468
- frequently get the same search repeatedly with different sort
2469
- options, and none of them ever use "score"
2470
- -->
2471
- <!--
2472
- <useFilterForSortedQuery>true</useFilterForSortedQuery>
2473
- -->
2474
-
2475
- <!-- Result Window Size
2476
-
2477
- An optimization for use with the queryResultCache. When a search
2478
- is requested, a superset of the requested number of document ids
2479
- are collected. For example, if a search for a particular query
2480
- requests matching documents 10 through 19, and queryWindowSize is 50,
2481
- then documents 0 through 49 will be collected and cached. Any further
2482
- requests in that range can be satisfied via the cache.
2483
- -->
2484
- <queryResultWindowSize>20</queryResultWindowSize>
2485
-
2486
- <!-- Maximum number of documents to cache for any entry in the
2487
- queryResultCache.
2488
- -->
2489
- <queryResultMaxDocsCached>200</queryResultMaxDocsCached>
2490
-
2491
- <!-- Query Related Event Listeners
2492
-
2493
- Various IndexSearcher related events can trigger Listeners to
2494
- take actions.
2495
-
2496
- newSearcher - fired whenever a new searcher is being prepared
2497
- and there is a current searcher handling requests (aka
2498
- registered). It can be used to prime certain caches to
2499
- prevent long request times for certain requests.
2500
-
2501
- firstSearcher - fired whenever a new searcher is being
2502
- prepared but there is no current registered searcher to handle
2503
- requests or to gain autowarming data from.
2504
-
2505
-
2506
- -->
2507
- <!-- QuerySenderListener takes an array of NamedList and executes a
2508
- local query request for each NamedList in sequence.
2509
- -->
2510
- <listener event="newSearcher" class="solr.QuerySenderListener">
2511
- <arr name="queries">
2512
- <!--
2513
- <lst><str name="q">solr</str><str name="sort">price asc</str></lst>
2514
- <lst><str name="q">rocks</str><str name="sort">weight asc</str></lst>
2515
- -->
2516
- </arr>
2517
- </listener>
2518
- <listener event="firstSearcher" class="solr.QuerySenderListener">
2519
- <arr name="queries">
2520
- <lst>
2521
- <str name="q">static firstSearcher warming in solrconfig.xml</str>
2522
- </lst>
2523
- </arr>
2524
- </listener>
2525
-
2526
- <!-- Use Cold Searcher
2527
-
2528
- If a search request comes in and there is no current
2529
- registered searcher, then immediately register the still
2530
- warming searcher and use it. If "false" then all requests
2531
- will block until the first searcher is done warming.
2532
- -->
2533
- <useColdSearcher>false</useColdSearcher>
2534
-
2535
- <!-- Max Warming Searchers
2536
-
2537
- Maximum number of searchers that may be warming in the
2538
- background concurrently. An error is returned if this limit
2539
- is exceeded.
2540
-
2541
- Recommend values of 1-2 for read-only slaves, higher for
2542
- masters w/o cache warming.
2543
- -->
2544
- <maxWarmingSearchers>2</maxWarmingSearchers>
2545
-
2546
- </query>
2547
-
2548
-
2549
- <!-- Request Dispatcher
2550
-
2551
- This section contains instructions for how the SolrDispatchFilter
2552
- should behave when processing requests for this SolrCore.
2553
-
2554
- handleSelect is a legacy option that affects the behavior of requests
2555
- such as /select?qt=XXX
2556
-
2557
- handleSelect="true" will cause the SolrDispatchFilter to process
2558
- the request and dispatch the query to a handler specified by the
2559
- "qt" param, assuming "/select" isn't already registered.
2560
-
2561
- handleSelect="false" will cause the SolrDispatchFilter to
2562
- ignore "/select" requests, resulting in a 404 unless a handler
2563
- is explicitly registered with the name "/select"
2564
-
2565
- handleSelect="true" is not recommended for new users, but is the default
2566
- for backwards compatibility
2567
- -->
2568
- <requestDispatcher handleSelect="false" >
2569
- <!-- Request Parsing
2570
-
2571
- These settings indicate how Solr Requests may be parsed, and
2572
- what restrictions may be placed on the ContentStreams from
2573
- those requests
2574
-
2575
- enableRemoteStreaming - enables use of the stream.file
2576
- and stream.url parameters for specifying remote streams.
2577
-
2578
- multipartUploadLimitInKB - specifies the max size (in KiB) of
2579
- Multipart File Uploads that Solr will allow in a Request.
2580
-
2581
- formdataUploadLimitInKB - specifies the max size (in KiB) of
2582
- form data (application/x-www-form-urlencoded) sent via
2583
- POST. You can use POST to pass request parameters not
2584
- fitting into the URL.
2585
-
2586
- addHttpRequestToContext - if set to true, it will instruct
2587
- the requestParsers to include the original HttpServletRequest
2588
- object in the context map of the SolrQueryRequest under the
2589
- key "httpRequest". It will not be used by any of the existing
2590
- Solr components, but may be useful when developing custom
2591
- plugins.
2592
-
2593
- *** WARNING ***
2594
- The settings below authorize Solr to fetch remote files, You
2595
- should make sure your system has some authentication before
2596
- using enableRemoteStreaming="true"
2597
-
2598
- -->
2599
- <requestParsers enableRemoteStreaming="true"
2600
- multipartUploadLimitInKB="2048000"
2601
- formdataUploadLimitInKB="2048"
2602
- addHttpRequestToContext="false"/>
2603
-
2604
- <!-- HTTP Caching
2605
-
2606
- Set HTTP caching related parameters (for proxy caches and clients).
2607
-
2608
- The options below instruct Solr not to output any HTTP Caching
2609
- related headers
2610
- -->
2611
- <httpCaching never304="true" />
2612
- <!-- If you include a <cacheControl> directive, it will be used to
2613
- generate a Cache-Control header (as well as an Expires header
2614
- if the value contains "max-age=")
2615
-
2616
- By default, no Cache-Control header is generated.
2617
-
2618
- You can use the <cacheControl> option even if you have set
2619
- never304="true"
2620
- -->
2621
- <!--
2622
- <httpCaching never304="true" >
2623
- <cacheControl>max-age=30, public</cacheControl>
2624
- </httpCaching>
2625
- -->
2626
- <!-- To enable Solr to respond with automatically generated HTTP
2627
- Caching headers, and to response to Cache Validation requests
2628
- correctly, set the value of never304="false"
2629
-
2630
- This will cause Solr to generate Last-Modified and ETag
2631
- headers based on the properties of the Index.
2632
-
2633
- The following options can also be specified to affect the
2634
- values of these headers...
2635
-
2636
- lastModFrom - the default value is "openTime" which means the
2637
- Last-Modified value (and validation against If-Modified-Since
2638
- requests) will all be relative to when the current Searcher
2639
- was opened. You can change it to lastModFrom="dirLastMod" if
2640
- you want the value to exactly correspond to when the physical
2641
- index was last modified.
2642
-
2643
- etagSeed="..." is an option you can change to force the ETag
2644
- header (and validation against If-None-Match requests) to be
2645
- different even if the index has not changed (ie: when making
2646
- significant changes to your config file)
2647
-
2648
- (lastModifiedFrom and etagSeed are both ignored if you use
2649
- the never304="true" option)
2650
- -->
2651
- <!--
2652
- <httpCaching lastModifiedFrom="openTime"
2653
- etagSeed="Solr">
2654
- <cacheControl>max-age=30, public</cacheControl>
2655
- </httpCaching>
2656
- -->
2657
- </requestDispatcher>
2658
-
2659
- <!-- Request Handlers
2660
-
2661
- http://wiki.apache.org/solr/SolrRequestHandler
2662
-
2663
- Incoming queries will be dispatched to a specific handler by name
2664
- based on the path specified in the request.
2665
-
2666
- Legacy behavior: If the request path uses "/select" but no Request
2667
- Handler has that name, and if handleSelect="true" has been specified in
2668
- the requestDispatcher, then the Request Handler is dispatched based on
2669
- the qt parameter. Handlers without a leading '/' are accessed this way
2670
- like so: http://host/app/[core/]select?qt=name If no qt is
2671
- given, then the requestHandler that declares default="true" will be
2672
- used or the one named "standard".
2673
-
2674
- If a Request Handler is declared with startup="lazy", then it will
2675
- not be initialized until the first request that uses it.
2676
-
2677
- -->
2678
-
2679
- <requestHandler name="/dataimport" class="solr.DataImportHandler">
2680
- <lst name="defaults">
2681
- <str name="config">db-data-config.xml</str>
2682
- </lst>
2683
- </requestHandler>
2684
-
2685
- <!-- SearchHandler
2686
-
2687
- http://wiki.apache.org/solr/SearchHandler
2688
-
2689
- For processing Search Queries, the primary Request Handler
2690
- provided with Solr is "SearchHandler" It delegates to a sequent
2691
- of SearchComponents (see below) and supports distributed
2692
- queries across multiple shards
2693
- -->
2694
- <requestHandler name="/select" class="solr.SearchHandler">
2695
- <!-- default values for query parameters can be specified, these
2696
- will be overridden by parameters in the request
2697
- -->
2698
- <lst name="defaults">
2699
- <str name="echoParams">explicit</str>
2700
- <int name="rows">10</int>
2701
- <str name="df">text</str>
2702
- </lst>
2703
- <!-- In addition to defaults, "appends" params can be specified
2704
- to identify values which should be appended to the list of
2705
- multi-val params from the query (or the existing "defaults").
2706
- -->
2707
- <!-- In this example, the param "fq=instock:true" would be appended to
2708
- any query time fq params the user may specify, as a mechanism for
2709
- partitioning the index, independent of any user selected filtering
2710
- that may also be desired (perhaps as a result of faceted searching).
2711
-
2712
- NOTE: there is *absolutely* nothing a client can do to prevent these
2713
- "appends" values from being used, so don't use this mechanism
2714
- unless you are sure you always want it.
2715
- -->
2716
- <!--
2717
- <lst name="appends">
2718
- <str name="fq">inStock:true</str>
2719
- </lst>
2720
- -->
2721
- <!-- "invariants" are a way of letting the Solr maintainer lock down
2722
- the options available to Solr clients. Any params values
2723
- specified here are used regardless of what values may be specified
2724
- in either the query, the "defaults", or the "appends" params.
2725
-
2726
- In this example, the facet.field and facet.query params would
2727
- be fixed, limiting the facets clients can use. Faceting is
2728
- not turned on by default - but if the client does specify
2729
- facet=true in the request, these are the only facets they
2730
- will be able to see counts for; regardless of what other
2731
- facet.field or facet.query params they may specify.
2732
-
2733
- NOTE: there is *absolutely* nothing a client can do to prevent these
2734
- "invariants" values from being used, so don't use this mechanism
2735
- unless you are sure you always want it.
2736
- -->
2737
- <!--
2738
- <lst name="invariants">
2739
- <str name="facet.field">cat</str>
2740
- <str name="facet.field">manu_exact</str>
2741
- <str name="facet.query">price:[* TO 500]</str>
2742
- <str name="facet.query">price:[500 TO *]</str>
2743
- </lst>
2744
- -->
2745
- <!-- If the default list of SearchComponents is not desired, that
2746
- list can either be overridden completely, or components can be
2747
- prepended or appended to the default list. (see below)
2748
- -->
2749
- <!--
2750
- <arr name="components">
2751
- <str>nameOfCustomComponent1</str>
2752
- <str>nameOfCustomComponent2</str>
2753
- </arr>
2754
- -->
2755
- </requestHandler>
2756
-
2757
- <!-- A request handler that returns indented JSON by default -->
2758
- <requestHandler name="/query" class="solr.SearchHandler">
2759
- <lst name="defaults">
2760
- <str name="echoParams">explicit</str>
2761
- <str name="wt">json</str>
2762
- <str name="indent">true</str>
2763
- <str name="df">text</str>
2764
- </lst>
2765
- </requestHandler>
2766
-
2767
-
2768
- <!-- A Robust Example
2769
-
2770
- This example SearchHandler declaration shows off usage of the
2771
- SearchHandler with many defaults declared
2772
-
2773
- Note that multiple instances of the same Request Handler
2774
- (SearchHandler) can be registered multiple times with different
2775
- names (and different init parameters)
2776
- -->
2777
- <requestHandler name="/browse" class="solr.SearchHandler">
2778
- <lst name="defaults">
2779
- <str name="echoParams">explicit</str>
2780
-
2781
- <!-- VelocityResponseWriter settings -->
2782
- <str name="wt">velocity</str>
2783
- <str name="v.template">browse</str>
2784
- <str name="v.layout">layout</str>
2785
-
2786
- <!-- Query settings -->
2787
- <str name="defType">edismax</str>
2788
- <str name="q.alt">*:*</str>
2789
- <str name="rows">10</str>
2790
- <str name="fl">*,score</str>
2791
-
2792
- <!-- Faceting defaults -->
2793
- <str name="facet">on</str>
2794
- <str name="facet.mincount">1</str>
2795
- </lst>
2796
- </requestHandler>
2797
-
2798
- <initParams path="/update/**,/query,/select,/tvrh,/elevate,/spell,/browse">
2799
- <lst name="defaults">
2800
- <str name="df">text</str>
2801
- </lst>
2802
- </initParams>
2803
-
2804
- <!-- Solr Cell Update Request Handler
2805
-
2806
- http://wiki.apache.org/solr/ExtractingRequestHandler
2807
-
2808
- -->
2809
- <requestHandler name="/update/extract"
2810
- startup="lazy"
2811
- class="solr.extraction.ExtractingRequestHandler" >
2812
- <lst name="defaults">
2813
- <str name="lowernames">true</str>
2814
- <str name="uprefix">ignored_</str>
2815
-
2816
- <!-- capture link hrefs but ignore div attributes -->
2817
- <str name="captureAttr">true</str>
2818
- <str name="fmap.a">links</str>
2819
- <str name="fmap.div">ignored_</str>
2820
- </lst>
2821
- </requestHandler>
2822
-
2823
-
2824
- <!-- Field Analysis Request Handler
2825
-
2826
- RequestHandler that provides much the same functionality as
2827
- analysis.jsp. Provides the ability to specify multiple field
2828
- types and field names in the same request and outputs
2829
- index-time and query-time analysis for each of them.
2830
-
2831
- Request parameters are:
2832
- analysis.fieldname - field name whose analyzers are to be used
2833
-
2834
- analysis.fieldtype - field type whose analyzers are to be used
2835
- analysis.fieldvalue - text for index-time analysis
2836
- q (or analysis.q) - text for query time analysis
2837
- analysis.showmatch (true|false) - When set to true and when
2838
- query analysis is performed, the produced tokens of the
2839
- field value analysis will be marked as "matched" for every
2840
- token that is produces by the query analysis
2841
- -->
2842
- <requestHandler name="/analysis/field"
2843
- startup="lazy"
2844
- class="solr.FieldAnalysisRequestHandler" />
2845
-
2846
-
2847
- <!-- Document Analysis Handler
2848
-
2849
- http://wiki.apache.org/solr/AnalysisRequestHandler
2850
-
2851
- An analysis handler that provides a breakdown of the analysis
2852
- process of provided documents. This handler expects a (single)
2853
- content stream with the following format:
2854
-
2855
- <docs>
2856
- <doc>
2857
- <field name="id">1</field>
2858
- <field name="name">The Name</field>
2859
- <field name="text">The Text Value</field>
2860
- </doc>
2861
- <doc>...</doc>
2862
- <doc>...</doc>
2863
- ...
2864
- </docs>
2865
-
2866
- Note: Each document must contain a field which serves as the
2867
- unique key. This key is used in the returned response to associate
2868
- an analysis breakdown to the analyzed document.
2869
-
2870
- Like the FieldAnalysisRequestHandler, this handler also supports
2871
- query analysis by sending either an "analysis.query" or "q"
2872
- request parameter that holds the query text to be analyzed. It
2873
- also supports the "analysis.showmatch" parameter which when set to
2874
- true, all field tokens that match the query tokens will be marked
2875
- as a "match".
2876
- -->
2877
- <requestHandler name="/analysis/document"
2878
- class="solr.DocumentAnalysisRequestHandler"
2879
- startup="lazy" />
2880
-
2881
- <!-- Echo the request contents back to the client -->
2882
- <requestHandler name="/debug/dump" class="solr.DumpRequestHandler" >
2883
- <lst name="defaults">
2884
- <str name="echoParams">explicit</str>
2885
- <str name="echoHandler">true</str>
2886
- </lst>
2887
- </requestHandler>
2888
-
2889
- <!-- Search Components
2890
-
2891
- Search components are registered to SolrCore and used by
2892
- instances of SearchHandler (which can access them by name)
2893
-
2894
- By default, the following components are available:
2895
-
2896
- <searchComponent name="query" class="solr.QueryComponent" />
2897
- <searchComponent name="facet" class="solr.FacetComponent" />
2898
- <searchComponent name="mlt" class="solr.MoreLikeThisComponent" />
2899
- <searchComponent name="highlight" class="solr.HighlightComponent" />
2900
- <searchComponent name="stats" class="solr.StatsComponent" />
2901
- <searchComponent name="debug" class="solr.DebugComponent" />
2902
-
2903
- Default configuration in a requestHandler would look like:
2904
-
2905
- <arr name="components">
2906
- <str>query</str>
2907
- <str>facet</str>
2908
- <str>mlt</str>
2909
- <str>highlight</str>
2910
- <str>stats</str>
2911
- <str>debug</str>
2912
- </arr>
2913
-
2914
- If you register a searchComponent to one of the standard names,
2915
- that will be used instead of the default.
2916
-
2917
- To insert components before or after the 'standard' components, use:
2918
-
2919
- <arr name="first-components">
2920
- <str>myFirstComponentName</str>
2921
- </arr>
2922
-
2923
- <arr name="last-components">
2924
- <str>myLastComponentName</str>
2925
- </arr>
2926
-
2927
- NOTE: The component registered with the name "debug" will
2928
- always be executed after the "last-components"
2929
-
2930
- -->
2931
-
2932
- <!-- Spell Check
2933
-
2934
- The spell check component can return a list of alternative spelling
2935
- suggestions.
2936
-
2937
- http://wiki.apache.org/solr/SpellCheckComponent
2938
- -->
2939
- <searchComponent name="spellcheck" class="solr.SpellCheckComponent">
2940
-
2941
- <str name="queryAnalyzerFieldType">text_general</str>
2942
-
2943
- <!-- Multiple "Spell Checkers" can be declared and used by this
2944
- component
2945
- -->
2946
-
2947
- <!-- a spellchecker built from a field of the main index -->
2948
- <lst name="spellchecker">
2949
- <str name="name">default</str>
2950
- <str name="field">text</str>
2951
- <str name="classname">solr.DirectSolrSpellChecker</str>
2952
- <!-- the spellcheck distance measure used, the default is the internal levenshtein -->
2953
- <str name="distanceMeasure">internal</str>
2954
- <!-- minimum accuracy needed to be considered a valid spellcheck suggestion -->
2955
- <float name="accuracy">0.5</float>
2956
- <!-- the maximum #edits we consider when enumerating terms: can be 1 or 2 -->
2957
- <int name="maxEdits">2</int>
2958
- <!-- the minimum shared prefix when enumerating terms -->
2959
- <int name="minPrefix">1</int>
2960
- <!-- maximum number of inspections per result. -->
2961
- <int name="maxInspections">5</int>
2962
- <!-- minimum length of a query term to be considered for correction -->
2963
- <int name="minQueryLength">4</int>
2964
- <!-- maximum threshold of documents a query term can appear to be considered for correction -->
2965
- <float name="maxQueryFrequency">0.01</float>
2966
- <!-- uncomment this to require suggestions to occur in 1% of the documents
2967
- <float name="thresholdTokenFrequency">.01</float>
2968
- -->
2969
- </lst>
2970
-
2971
- <!-- a spellchecker that can break or combine words. See "/spell" handler below for usage -->
2972
- <lst name="spellchecker">
2973
- <str name="name">wordbreak</str>
2974
- <str name="classname">solr.WordBreakSolrSpellChecker</str>
2975
- <str name="field">name</str>
2976
- <str name="combineWords">true</str>
2977
- <str name="breakWords">true</str>
2978
- <int name="maxChanges">10</int>
2979
- </lst>
2980
-
2981
- <!-- a spellchecker that uses a different distance measure -->
2982
- <!--
2983
- <lst name="spellchecker">
2984
- <str name="name">jarowinkler</str>
2985
- <str name="field">spell</str>
2986
- <str name="classname">solr.DirectSolrSpellChecker</str>
2987
- <str name="distanceMeasure">
2988
- org.apache.lucene.search.spell.JaroWinklerDistance
2989
- </str>
2990
- </lst>
2991
- -->
2992
-
2993
- <!-- a spellchecker that use an alternate comparator
2994
-
2995
- comparatorClass be one of:
2996
- 1. score (default)
2997
- 2. freq (Frequency first, then score)
2998
- 3. A fully qualified class name
2999
- -->
3000
- <!--
3001
- <lst name="spellchecker">
3002
- <str name="name">freq</str>
3003
- <str name="field">lowerfilt</str>
3004
- <str name="classname">solr.DirectSolrSpellChecker</str>
3005
- <str name="comparatorClass">freq</str>
3006
- -->
3007
-
3008
- <!-- A spellchecker that reads the list of words from a file -->
3009
- <!--
3010
- <lst name="spellchecker">
3011
- <str name="classname">solr.FileBasedSpellChecker</str>
3012
- <str name="name">file</str>
3013
- <str name="sourceLocation">spellings.txt</str>
3014
- <str name="characterEncoding">UTF-8</str>
3015
- <str name="spellcheckIndexDir">spellcheckerFile</str>
3016
- </lst>
3017
- -->
3018
- </searchComponent>
3019
-
3020
- <!-- A request handler for demonstrating the spellcheck component.
3021
-
3022
- NOTE: This is purely as an example. The whole purpose of the
3023
- SpellCheckComponent is to hook it into the request handler that
3024
- handles your normal user queries so that a separate request is
3025
- not needed to get suggestions.
3026
-
3027
- IN OTHER WORDS, THERE IS REALLY GOOD CHANCE THE SETUP BELOW IS
3028
- NOT WHAT YOU WANT FOR YOUR PRODUCTION SYSTEM!
3029
-
3030
- See http://wiki.apache.org/solr/SpellCheckComponent for details
3031
- on the request parameters.
3032
- -->
3033
- <requestHandler name="/spell" class="solr.SearchHandler" startup="lazy">
3034
- <lst name="defaults">
3035
- <str name="df">text</str>
3036
- <!-- Solr will use suggestions from both the 'default' spellchecker
3037
- and from the 'wordbreak' spellchecker and combine them.
3038
- collations (re-written queries) can include a combination of
3039
- corrections from both spellcheckers -->
3040
- <str name="spellcheck.dictionary">default</str>
3041
- <str name="spellcheck.dictionary">wordbreak</str>
3042
- <str name="spellcheck">on</str>
3043
- <str name="spellcheck.extendedResults">true</str>
3044
- <str name="spellcheck.count">10</str>
3045
- <str name="spellcheck.alternativeTermCount">5</str>
3046
- <str name="spellcheck.maxResultsForSuggest">5</str>
3047
- <str name="spellcheck.collate">true</str>
3048
- <str name="spellcheck.collateExtendedResults">true</str>
3049
- <str name="spellcheck.maxCollationTries">10</str>
3050
- <str name="spellcheck.maxCollations">5</str>
3051
- </lst>
3052
- <arr name="last-components">
3053
- <str>spellcheck</str>
3054
- </arr>
3055
- </requestHandler>
3056
-
3057
- <searchComponent name="suggest" class="solr.SuggestComponent">
3058
- <lst name="suggester">
3059
- <str name="name">mySuggester</str>
3060
- <str name="lookupImpl">FuzzyLookupFactory</str> <!-- org.apache.solr.spelling.suggest.fst -->
3061
- <str name="dictionaryImpl">DocumentDictionaryFactory</str> <!-- org.apache.solr.spelling.suggest.HighFrequencyDictionaryFactory -->
3062
- <str name="field">cat</str>
3063
- <str name="weightField">price</str>
3064
- <str name="suggestAnalyzerFieldType">string</str>
3065
- </lst>
3066
- </searchComponent>
3067
-
3068
- <requestHandler name="/suggest" class="solr.SearchHandler" startup="lazy">
3069
- <lst name="defaults">
3070
- <str name="suggest">true</str>
3071
- <str name="suggest.count">10</str>
3072
- </lst>
3073
- <arr name="components">
3074
- <str>suggest</str>
3075
- </arr>
3076
- </requestHandler>
3077
- <!-- Term Vector Component
3078
-
3079
- http://wiki.apache.org/solr/TermVectorComponent
3080
- -->
3081
- <searchComponent name="tvComponent" class="solr.TermVectorComponent"/>
3082
-
3083
- <!-- A request handler for demonstrating the term vector component
3084
-
3085
- This is purely as an example.
3086
-
3087
- In reality you will likely want to add the component to your
3088
- already specified request handlers.
3089
- -->
3090
- <requestHandler name="/tvrh" class="solr.SearchHandler" startup="lazy">
3091
- <lst name="defaults">
3092
- <str name="df">text</str>
3093
- <bool name="tv">true</bool>
3094
- </lst>
3095
- <arr name="last-components">
3096
- <str>tvComponent</str>
3097
- </arr>
3098
- </requestHandler>
3099
-
3100
- <!-- Clustering Component
3101
-
3102
- You'll need to set the solr.clustering.enabled system property
3103
- when running solr to run with clustering enabled:
3104
-
3105
- java -Dsolr.clustering.enabled=true -jar start.jar
3106
-
3107
- http://wiki.apache.org/solr/ClusteringComponent
3108
- http://carrot2.github.io/solr-integration-strategies/
3109
- -->
3110
- <searchComponent name="clustering"
3111
- enable="${solr.clustering.enabled:false}"
3112
- class="solr.clustering.ClusteringComponent" >
3113
- <lst name="engine">
3114
- <str name="name">lingo</str>
3115
-
3116
- <!-- Class name of a clustering algorithm compatible with the Carrot2 framework.
3117
-
3118
- Currently available open source algorithms are:
3119
- * org.carrot2.clustering.lingo.LingoClusteringAlgorithm
3120
- * org.carrot2.clustering.stc.STCClusteringAlgorithm
3121
- * org.carrot2.clustering.kmeans.BisectingKMeansClusteringAlgorithm
3122
-
3123
- See http://project.carrot2.org/algorithms.html for more information.
3124
-
3125
- A commercial algorithm Lingo3G (needs to be installed separately) is defined as:
3126
- * com.carrotsearch.lingo3g.Lingo3GClusteringAlgorithm
3127
- -->
3128
- <str name="carrot.algorithm">org.carrot2.clustering.lingo.LingoClusteringAlgorithm</str>
3129
-
3130
- <!-- Override location of the clustering algorithm's resources
3131
- (attribute definitions and lexical resources).
3132
-
3133
- A directory from which to load algorithm-specific stop words,
3134
- stop labels and attribute definition XMLs.
3135
-
3136
- For an overview of Carrot2 lexical resources, see:
3137
- http://download.carrot2.org/head/manual/#chapter.lexical-resources
3138
-
3139
- For an overview of Lingo3G lexical resources, see:
3140
- http://download.carrotsearch.com/lingo3g/manual/#chapter.lexical-resources
3141
- -->
3142
- <str name="carrot.resourcesDir">clustering/carrot2</str>
3143
- </lst>
3144
-
3145
- <!-- An example definition for the STC clustering algorithm. -->
3146
- <lst name="engine">
3147
- <str name="name">stc</str>
3148
- <str name="carrot.algorithm">org.carrot2.clustering.stc.STCClusteringAlgorithm</str>
3149
- </lst>
3150
-
3151
- <!-- An example definition for the bisecting kmeans clustering algorithm. -->
3152
- <lst name="engine">
3153
- <str name="name">kmeans</str>
3154
- <str name="carrot.algorithm">org.carrot2.clustering.kmeans.BisectingKMeansClusteringAlgorithm</str>
3155
- </lst>
3156
- </searchComponent>
3157
-
3158
- <!-- A request handler for demonstrating the clustering component
3159
-
3160
- This is purely as an example.
3161
-
3162
- In reality you will likely want to add the component to your
3163
- already specified request handlers.
3164
- -->
3165
- <requestHandler name="/clustering"
3166
- startup="lazy"
3167
- enable="${solr.clustering.enabled:false}"
3168
- class="solr.SearchHandler">
3169
- <lst name="defaults">
3170
- <bool name="clustering">true</bool>
3171
- <bool name="clustering.results">true</bool>
3172
- <!-- Field name with the logical "title" of a each document (optional) -->
3173
- <str name="carrot.title">name</str>
3174
- <!-- Field name with the logical "URL" of a each document (optional) -->
3175
- <str name="carrot.url">id</str>
3176
- <!-- Field name with the logical "content" of a each document (optional) -->
3177
- <str name="carrot.snippet">features</str>
3178
- <!-- Apply highlighter to the title/ content and use this for clustering. -->
3179
- <bool name="carrot.produceSummary">true</bool>
3180
- <!-- the maximum number of labels per cluster -->
3181
- <!--<int name="carrot.numDescriptions">5</int>-->
3182
- <!-- produce sub clusters -->
3183
- <bool name="carrot.outputSubClusters">false</bool>
3184
-
3185
- <!-- Configure the remaining request handler parameters. -->
3186
- <str name="defType">edismax</str>
3187
- <str name="qf">
3188
- text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
3189
- </str>
3190
- <str name="q.alt">*:*</str>
3191
- <str name="rows">10</str>
3192
- <str name="fl">*,score</str>
3193
- </lst>
3194
- <arr name="last-components">
3195
- <str>clustering</str>
3196
- </arr>
3197
- </requestHandler>
3198
-
3199
- <!-- Terms Component
3200
-
3201
- http://wiki.apache.org/solr/TermsComponent
3202
-
3203
- A component to return terms and document frequency of those
3204
- terms
3205
- -->
3206
- <searchComponent name="terms" class="solr.TermsComponent"/>
3207
-
3208
- <!-- A request handler for demonstrating the terms component -->
3209
- <requestHandler name="/terms" class="solr.SearchHandler" startup="lazy">
3210
- <lst name="defaults">
3211
- <bool name="terms">true</bool>
3212
- <bool name="distrib">false</bool>
3213
- </lst>
3214
- <arr name="components">
3215
- <str>terms</str>
3216
- </arr>
3217
- </requestHandler>
3218
-
3219
-
3220
- <!-- Query Elevation Component
3221
-
3222
- http://wiki.apache.org/solr/QueryElevationComponent
3223
-
3224
- a search component that enables you to configure the top
3225
- results for a given query regardless of the normal lucene
3226
- scoring.
3227
- -->
3228
- <searchComponent name="elevator" class="solr.QueryElevationComponent" >
3229
- <!-- pick a fieldType to analyze queries -->
3230
- <str name="queryFieldType">string</str>
3231
- <str name="config-file">elevate.xml</str>
3232
- </searchComponent>
3233
-
3234
- <!-- A request handler for demonstrating the elevator component -->
3235
- <requestHandler name="/elevate" class="solr.SearchHandler" startup="lazy">
3236
- <lst name="defaults">
3237
- <str name="echoParams">explicit</str>
3238
- <str name="df">text</str>
3239
- </lst>
3240
- <arr name="last-components">
3241
- <str>elevator</str>
3242
- </arr>
3243
- </requestHandler>
3244
-
3245
- <!-- Highlighting Component
3246
-
3247
- http://wiki.apache.org/solr/HighlightingParameters
3248
- -->
3249
- <searchComponent class="solr.HighlightComponent" name="highlight">
3250
- <highlighting>
3251
- <!-- Configure the standard fragmenter -->
3252
- <!-- This could most likely be commented out in the "default" case -->
3253
- <fragmenter name="gap"
3254
- default="true"
3255
- class="solr.highlight.GapFragmenter">
3256
- <lst name="defaults">
3257
- <int name="hl.fragsize">100</int>
3258
- </lst>
3259
- </fragmenter>
3260
-
3261
- <!-- A regular-expression-based fragmenter
3262
- (for sentence extraction)
3263
- -->
3264
- <fragmenter name="regex"
3265
- class="solr.highlight.RegexFragmenter">
3266
- <lst name="defaults">
3267
- <!-- slightly smaller fragsizes work better because of slop -->
3268
- <int name="hl.fragsize">70</int>
3269
- <!-- allow 50% slop on fragment sizes -->
3270
- <float name="hl.regex.slop">0.5</float>
3271
- <!-- a basic sentence pattern -->
3272
- <str name="hl.regex.pattern">[-\w ,/\n\&quot;&apos;]{20,200}</str>
3273
- </lst>
3274
- </fragmenter>
3275
-
3276
- <!-- Configure the standard formatter -->
3277
- <formatter name="html"
3278
- default="true"
3279
- class="solr.highlight.HtmlFormatter">
3280
- <lst name="defaults">
3281
- <str name="hl.simple.pre"><![CDATA[<em>]]></str>
3282
- <str name="hl.simple.post"><![CDATA[</em>]]></str>
3283
- </lst>
3284
- </formatter>
3285
-
3286
- <!-- Configure the standard encoder -->
3287
- <encoder name="html"
3288
- class="solr.highlight.HtmlEncoder" />
3289
-
3290
- <!-- Configure the standard fragListBuilder -->
3291
- <fragListBuilder name="simple"
3292
- class="solr.highlight.SimpleFragListBuilder"/>
3293
-
3294
- <!-- Configure the single fragListBuilder -->
3295
- <fragListBuilder name="single"
3296
- class="solr.highlight.SingleFragListBuilder"/>
3297
-
3298
- <!-- Configure the weighted fragListBuilder -->
3299
- <fragListBuilder name="weighted"
3300
- default="true"
3301
- class="solr.highlight.WeightedFragListBuilder"/>
3302
-
3303
- <!-- default tag FragmentsBuilder -->
3304
- <fragmentsBuilder name="default"
3305
- default="true"
3306
- class="solr.highlight.ScoreOrderFragmentsBuilder">
3307
- <!--
3308
- <lst name="defaults">
3309
- <str name="hl.multiValuedSeparatorChar">/</str>
3310
- </lst>
3311
- -->
3312
- </fragmentsBuilder>
3313
-
3314
- <!-- multi-colored tag FragmentsBuilder -->
3315
- <fragmentsBuilder name="colored"
3316
- class="solr.highlight.ScoreOrderFragmentsBuilder">
3317
- <lst name="defaults">
3318
- <str name="hl.tag.pre"><![CDATA[
3319
- <b style="background:yellow">,<b style="background:lawgreen">,
3320
- <b style="background:aquamarine">,<b style="background:magenta">,
3321
- <b style="background:palegreen">,<b style="background:coral">,
3322
- <b style="background:wheat">,<b style="background:khaki">,
3323
- <b style="background:lime">,<b style="background:deepskyblue">]]></str>
3324
- <str name="hl.tag.post"><![CDATA[</b>]]></str>
3325
- </lst>
3326
- </fragmentsBuilder>
3327
-
3328
- <boundaryScanner name="default"
3329
- default="true"
3330
- class="solr.highlight.SimpleBoundaryScanner">
3331
- <lst name="defaults">
3332
- <str name="hl.bs.maxScan">10</str>
3333
- <str name="hl.bs.chars">.,!? &#9;&#10;&#13;</str>
3334
- </lst>
3335
- </boundaryScanner>
3336
-
3337
- <boundaryScanner name="breakIterator"
3338
- class="solr.highlight.BreakIteratorBoundaryScanner">
3339
- <lst name="defaults">
3340
- <!-- type should be one of CHARACTER, WORD(default), LINE and SENTENCE -->
3341
- <str name="hl.bs.type">WORD</str>
3342
- <!-- language and country are used when constructing Locale object. -->
3343
- <!-- And the Locale object will be used when getting instance of BreakIterator -->
3344
- <str name="hl.bs.language">en</str>
3345
- <str name="hl.bs.country">US</str>
3346
- </lst>
3347
- </boundaryScanner>
3348
- </highlighting>
3349
- </searchComponent>
3350
-
3351
- <!-- Update Processors
3352
-
3353
- Chains of Update Processor Factories for dealing with Update
3354
- Requests can be declared, and then used by name in Update
3355
- Request Processors
3356
-
3357
- http://wiki.apache.org/solr/UpdateRequestProcessor
3358
-
3359
- -->
3360
- <!-- Deduplication
3361
-
3362
- An example dedup update processor that creates the "id" field
3363
- on the fly based on the hash code of some other fields. This
3364
- example has overwriteDupes set to false since we are using the
3365
- id field as the signatureField and Solr will maintain
3366
- uniqueness based on that anyway.
3367
-
3368
- -->
3369
- <!--
3370
- <updateRequestProcessorChain name="dedupe">
3371
- <processor class="solr.processor.SignatureUpdateProcessorFactory">
3372
- <bool name="enabled">true</bool>
3373
- <str name="signatureField">id</str>
3374
- <bool name="overwriteDupes">false</bool>
3375
- <str name="fields">name,features,cat</str>
3376
- <str name="signatureClass">solr.processor.Lookup3Signature</str>
3377
- </processor>
3378
- <processor class="solr.LogUpdateProcessorFactory" />
3379
- <processor class="solr.RunUpdateProcessorFactory" />
3380
- </updateRequestProcessorChain>
3381
- -->
3382
-
3383
- <!-- Language identification
3384
-
3385
- This example update chain identifies the language of the incoming
3386
- documents using the langid contrib. The detected language is
3387
- written to field language_s. No field name mapping is done.
3388
- The fields used for detection are text, title, subject and description,
3389
- making this example suitable for detecting languages form full-text
3390
- rich documents injected via ExtractingRequestHandler.
3391
- See more about langId at http://wiki.apache.org/solr/LanguageDetection
3392
- -->
3393
- <!--
3394
- <updateRequestProcessorChain name="langid">
3395
- <processor class="org.apache.solr.update.processor.TikaLanguageIdentifierUpdateProcessorFactory">
3396
- <str name="langid.fl">text,title,subject,description</str>
3397
- <str name="langid.langField">language_s</str>
3398
- <str name="langid.fallback">en</str>
3399
- </processor>
3400
- <processor class="solr.LogUpdateProcessorFactory" />
3401
- <processor class="solr.RunUpdateProcessorFactory" />
3402
- </updateRequestProcessorChain>
3403
- -->
3404
-
3405
- <!-- Script update processor
3406
-
3407
- This example hooks in an update processor implemented using JavaScript.
3408
-
3409
- See more about the script update processor at http://wiki.apache.org/solr/ScriptUpdateProcessor
3410
- -->
3411
- <!--
3412
- <updateRequestProcessorChain name="script">
3413
- <processor class="solr.StatelessScriptUpdateProcessorFactory">
3414
- <str name="script">update-script.js</str>
3415
- <lst name="params">
3416
- <str name="config_param">example config parameter</str>
3417
- </lst>
3418
- </processor>
3419
- <processor class="solr.RunUpdateProcessorFactory" />
3420
- </updateRequestProcessorChain>
3421
- -->
3422
-
3423
- <!-- Response Writers
3424
-
3425
- http://wiki.apache.org/solr/QueryResponseWriter
3426
-
3427
- Request responses will be written using the writer specified by
3428
- the 'wt' request parameter matching the name of a registered
3429
- writer.
3430
-
3431
- The "default" writer is the default and will be used if 'wt' is
3432
- not specified in the request.
3433
- -->
3434
- <!-- The following response writers are implicitly configured unless
3435
- overridden...
3436
- -->
3437
- <!--
3438
- <queryResponseWriter name="xml"
3439
- default="true"
3440
- class="solr.XMLResponseWriter" />
3441
- <queryResponseWriter name="json" class="solr.JSONResponseWriter"/>
3442
- <queryResponseWriter name="python" class="solr.PythonResponseWriter"/>
3443
- <queryResponseWriter name="ruby" class="solr.RubyResponseWriter"/>
3444
- <queryResponseWriter name="php" class="solr.PHPResponseWriter"/>
3445
- <queryResponseWriter name="phps" class="solr.PHPSerializedResponseWriter"/>
3446
- <queryResponseWriter name="csv" class="solr.CSVResponseWriter"/>
3447
- <queryResponseWriter name="schema.xml" class="solr.SchemaXmlResponseWriter"/>
3448
- -->
3449
-
3450
- <queryResponseWriter name="json" class="solr.JSONResponseWriter">
3451
- <!-- For the purposes of the tutorial, JSON responses are written as
3452
- plain text so that they are easy to read in *any* browser.
3453
- If you expect a MIME type of "application/json" just remove this override.
3454
- -->
3455
- <str name="content-type">text/plain; charset=UTF-8</str>
3456
- </queryResponseWriter>
3457
-
3458
- <!--
3459
- Custom response writers can be declared as needed...
3460
- -->
3461
- <queryResponseWriter name="velocity" class="solr.VelocityResponseWriter" startup="lazy">
3462
- <str name="template.base.dir">${velocity.template.base.dir:}</str>
3463
- </queryResponseWriter>
3464
-
3465
- <!-- XSLT response writer transforms the XML output by any xslt file found
3466
- in Solr's conf/xslt directory. Changes to xslt files are checked for
3467
- every xsltCacheLifetimeSeconds.
3468
- -->
3469
- <queryResponseWriter name="xslt" class="solr.XSLTResponseWriter">
3470
- <int name="xsltCacheLifetimeSeconds">5</int>
3471
- </queryResponseWriter>
3472
-
3473
- <!-- Query Parsers
3474
-
3475
- http://wiki.apache.org/solr/SolrQuerySyntax
3476
-
3477
- Multiple QParserPlugins can be registered by name, and then
3478
- used in either the "defType" param for the QueryComponent (used
3479
- by SearchHandler) or in LocalParams
3480
- -->
3481
- <!-- example of registering a query parser -->
3482
- <!--
3483
- <queryParser name="myparser" class="com.mycompany.MyQParserPlugin"/>
3484
- -->
3485
-
3486
- <!-- Function Parsers
3487
-
3488
- http://wiki.apache.org/solr/FunctionQuery
3489
-
3490
- Multiple ValueSourceParsers can be registered by name, and then
3491
- used as function names when using the "func" QParser.
3492
- -->
3493
- <!-- example of registering a custom function parser -->
3494
- <!--
3495
- <valueSourceParser name="myfunc"
3496
- class="com.mycompany.MyValueSourceParser" />
3497
- -->
3498
-
3499
-
3500
- <!-- Document Transformers
3501
- http://wiki.apache.org/solr/DocTransformers
3502
- -->
3503
- <!--
3504
- Could be something like:
3505
- <transformer name="db" class="com.mycompany.LoadFromDatabaseTransformer" >
3506
- <int name="connection">jdbc://....</int>
3507
- </transformer>
3508
-
3509
- To add a constant value to all docs, use:
3510
- <transformer name="mytrans2" class="org.apache.solr.response.transform.ValueAugmenterFactory" >
3511
- <int name="value">5</int>
3512
- </transformer>
3513
-
3514
- If you want the user to still be able to change it with _value:something_ use this:
3515
- <transformer name="mytrans3" class="org.apache.solr.response.transform.ValueAugmenterFactory" >
3516
- <double name="defaultValue">5</double>
3517
- </transformer>
3518
-
3519
- If you are using the QueryElevationComponent, you may wish to mark documents that get boosted. The
3520
- EditorialMarkerFactory will do exactly that:
3521
- <transformer name="qecBooster" class="org.apache.solr.response.transform.EditorialMarkerFactory" />
3522
- -->
3523
-
3524
-
3525
- <!-- Legacy config for the admin interface -->
3526
- <admin>
3527
- <defaultQuery>*:*</defaultQuery>
3528
- </admin>
3529
-
3530
- </config>
3531
- >>>>>>> Adding Data import Handler configurations