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,1903 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" ?>
2
- <!--
3
- Licensed to the Apache Software Foundation (ASF) under one or more
4
- contributor license agreements. See the NOTICE file distributed with
5
- this work for additional information regarding copyright ownership.
6
- The ASF licenses this file to You under the Apache License, Version 2.0
7
- (the "License"); you may not use this file except in compliance with
8
- the License. You may obtain a copy of the License at
9
-
10
- http://www.apache.org/licenses/LICENSE-2.0
11
-
12
- Unless required by applicable law or agreed to in writing, software
13
- distributed under the License is distributed on an "AS IS" BASIS,
14
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- See the License for the specific language governing permissions and
16
- limitations under the License.
17
- -->
18
-
19
- <!--
20
- For more details about configurations options that may appear in
21
- this file, see http://wiki.apache.org/solr/SolrConfigXml.
22
- -->
23
- <config>
24
- <!-- In all configuration below, a prefix of "solr." for class names
25
- is an alias that causes solr to search appropriate packages,
26
- including org.apache.solr.(search|update|request|core|analysis)
27
-
28
- You may also specify a fully qualified Java classname if you
29
- have your own custom plugins.
30
- -->
31
-
32
- <!-- Controls what version of Lucene various components of Solr
33
- adhere to. Generally, you want to use the latest version to
34
- get all bug fixes and improvements. It is highly recommended
35
- that you fully re-index after changing this setting as it can
36
- affect both how text is indexed and queried.
37
- -->
38
- <luceneMatchVersion>4.10.4</luceneMatchVersion>
39
-
40
- <!-- <lib/> directives can be used to instruct Solr to load any Jars
41
- identified and use them to resolve any "plugins" specified in
42
- your solrconfig.xml or schema.xml (ie: Analyzers, Request
43
- Handlers, etc...).
44
-
45
- All directories and paths are resolved relative to the
46
- instanceDir.
47
-
48
- Please note that <lib/> directives are processed in the order
49
- that they appear in your solrconfig.xml file, and are "stacked"
50
- on top of each other when building a ClassLoader - so if you have
51
- plugin jars with dependencies on other jars, the "lower level"
52
- dependency jars should be loaded first.
53
-
54
- If a "./lib" directory exists in your instanceDir, all files
55
- found in it are included as if you had used the following
56
- syntax...
57
-
58
- <lib dir="./lib" />
59
- -->
60
- <lib dir="../lib/contrib/analysis-extras/lib" />
61
- <lib dir="../lib/contrib/analysis-extras/lucene-libs" />
62
- <lib dir="../lib/contrib/extraction/lib" regex=".*\.jar" />
63
- <lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-dataimporthandler-.*\.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
- <requestHandler name="/dataimport" class="solr.DataImportHandler">
513
- <lst name="defaults">
514
- <str name="config">db-data-config.xml</str>
515
- </lst>
516
- </requestHandler>
517
-
518
- <!-- IndexReaderFactory
519
-
520
- Use the following format to specify a custom IndexReaderFactory,
521
- which allows for alternate IndexReader implementations.
522
-
523
- ** Experimental Feature **
524
-
525
- Please note - Using a custom IndexReaderFactory may prevent
526
- certain other features from working. The API to
527
- IndexReaderFactory may change without warning or may even be
528
- removed from future releases if the problems cannot be
529
- resolved.
530
-
531
-
532
- ** Features that may not work with custom IndexReaderFactory **
533
-
534
- The ReplicationHandler assumes a disk-resident index. Using a
535
- custom IndexReader implementation may cause incompatibility
536
- with ReplicationHandler and may cause replication to not work
537
- correctly. See SOLR-1366 for details.
538
-
539
- -->
540
- <!--
541
- <indexReaderFactory name="IndexReaderFactory" class="package.class">
542
- <str name="someArg">Some Value</str>
543
- </indexReaderFactory >
544
- -->
545
- <!-- By explicitly declaring the Factory, the termIndexDivisor can
546
- be specified.
547
- -->
548
- <!--
549
- <indexReaderFactory name="IndexReaderFactory"
550
- class="solr.StandardIndexReaderFactory">
551
- <int name="setTermIndexDivisor">12</int>
552
- </indexReaderFactory >
553
- -->
554
-
555
- <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
556
- Query section - these settings control query time things like caches
557
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
558
- <query>
559
- <!-- Max Boolean Clauses
560
-
561
- Maximum number of clauses in each BooleanQuery, an exception
562
- is thrown if exceeded.
563
-
564
- ** WARNING **
565
-
566
- This option actually modifies a global Lucene property that
567
- will affect all SolrCores. If multiple solrconfig.xml files
568
- disagree on this property, the value at any given moment will
569
- be based on the last SolrCore to be initialized.
570
-
571
- -->
572
- <maxBooleanClauses>1024</maxBooleanClauses>
573
-
574
-
575
- <!-- Solr Internal Query Caches
576
-
577
- There are two implementations of cache available for Solr,
578
- LRUCache, based on a synchronized LinkedHashMap, and
579
- FastLRUCache, based on a ConcurrentHashMap.
580
-
581
- FastLRUCache has faster gets and slower puts in single
582
- threaded operation and thus is generally faster than LRUCache
583
- when the hit ratio of the cache is high (> 75%), and may be
584
- faster under other scenarios on multi-cpu systems.
585
- -->
586
-
587
- <!-- Filter Cache
588
-
589
- Cache used by SolrIndexSearcher for filters (DocSets),
590
- unordered sets of *all* documents that match a query. When a
591
- new searcher is opened, its caches may be prepopulated or
592
- "autowarmed" using data from caches in the old searcher.
593
- autowarmCount is the number of items to prepopulate. For
594
- LRUCache, the autowarmed items will be the most recently
595
- accessed items.
596
-
597
- Parameters:
598
- class - the SolrCache implementation LRUCache or
599
- (LRUCache or FastLRUCache)
600
- size - the maximum number of entries in the cache
601
- initialSize - the initial capacity (number of entries) of
602
- the cache. (see java.util.HashMap)
603
- autowarmCount - the number of entries to prepopulate from
604
- and old cache.
605
- -->
606
- <filterCache class="solr.FastLRUCache"
607
- size="512"
608
- initialSize="512"
609
- autowarmCount="0"/>
610
-
611
- <!-- Query Result Cache
612
-
613
- Caches results of searches - ordered lists of document ids
614
- (DocList) based on a query, a sort, and the range of documents requested.
615
- -->
616
- <queryResultCache class="solr.LRUCache"
617
- size="512"
618
- initialSize="512"
619
- autowarmCount="0"/>
620
-
621
- <!-- Document Cache
622
-
623
- Caches Lucene Document objects (the stored fields for each
624
- document). Since Lucene internal document ids are transient,
625
- this cache will not be autowarmed.
626
- -->
627
- <documentCache class="solr.LRUCache"
628
- size="512"
629
- initialSize="512"
630
- autowarmCount="0"/>
631
-
632
- <!-- custom cache currently used by block join -->
633
- <cache name="perSegFilter"
634
- class="solr.search.LRUCache"
635
- size="10"
636
- initialSize="0"
637
- autowarmCount="10"
638
- regenerator="solr.NoOpRegenerator" />
639
-
640
- <!-- Field Value Cache
641
-
642
- Cache used to hold field values that are quickly accessible
643
- by document id. The fieldValueCache is created by default
644
- even if not configured here.
645
- -->
646
- <!--
647
- <fieldValueCache class="solr.FastLRUCache"
648
- size="512"
649
- autowarmCount="128"
650
- showItems="32" />
651
- -->
652
-
653
- <!-- Custom Cache
654
-
655
- Example of a generic cache. These caches may be accessed by
656
- name through SolrIndexSearcher.getCache(),cacheLookup(), and
657
- cacheInsert(). The purpose is to enable easy caching of
658
- user/application level data. The regenerator argument should
659
- be specified as an implementation of solr.CacheRegenerator
660
- if autowarming is desired.
661
- -->
662
- <!--
663
- <cache name="myUserCache"
664
- class="solr.LRUCache"
665
- size="4096"
666
- initialSize="1024"
667
- autowarmCount="1024"
668
- regenerator="com.mycompany.MyRegenerator"
669
- />
670
- -->
671
-
672
-
673
- <!-- Lazy Field Loading
674
-
675
- If true, stored fields that are not requested will be loaded
676
- lazily. This can result in a significant speed improvement
677
- if the usual case is to not load all stored fields,
678
- especially if the skipped fields are large compressed text
679
- fields.
680
- -->
681
- <enableLazyFieldLoading>true</enableLazyFieldLoading>
682
-
683
- <!-- Use Filter For Sorted Query
684
-
685
- A possible optimization that attempts to use a filter to
686
- satisfy a search. If the requested sort does not include
687
- score, then the filterCache will be checked for a filter
688
- matching the query. If found, the filter will be used as the
689
- source of document ids, and then the sort will be applied to
690
- that.
691
-
692
- For most situations, this will not be useful unless you
693
- frequently get the same search repeatedly with different sort
694
- options, and none of them ever use "score"
695
- -->
696
- <!--
697
- <useFilterForSortedQuery>true</useFilterForSortedQuery>
698
- -->
699
-
700
- <!-- Result Window Size
701
-
702
- An optimization for use with the queryResultCache. When a search
703
- is requested, a superset of the requested number of document ids
704
- are collected. For example, if a search for a particular query
705
- requests matching documents 10 through 19, and queryWindowSize is 50,
706
- then documents 0 through 49 will be collected and cached. Any further
707
- requests in that range can be satisfied via the cache.
708
- -->
709
- <queryResultWindowSize>20</queryResultWindowSize>
710
-
711
- <!-- Maximum number of documents to cache for any entry in the
712
- queryResultCache.
713
- -->
714
- <queryResultMaxDocsCached>200</queryResultMaxDocsCached>
715
-
716
- <!-- Query Related Event Listeners
717
-
718
- Various IndexSearcher related events can trigger Listeners to
719
- take actions.
720
-
721
- newSearcher - fired whenever a new searcher is being prepared
722
- and there is a current searcher handling requests (aka
723
- registered). It can be used to prime certain caches to
724
- prevent long request times for certain requests.
725
-
726
- firstSearcher - fired whenever a new searcher is being
727
- prepared but there is no current registered searcher to handle
728
- requests or to gain autowarming data from.
729
-
730
-
731
- -->
732
- <!-- QuerySenderListener takes an array of NamedList and executes a
733
- local query request for each NamedList in sequence.
734
- -->
735
- <listener event="newSearcher" class="solr.QuerySenderListener">
736
- <arr name="queries">
737
- <!--
738
- <lst><str name="q">solr</str><str name="sort">price asc</str></lst>
739
- <lst><str name="q">rocks</str><str name="sort">weight asc</str></lst>
740
- -->
741
- </arr>
742
- </listener>
743
- <listener event="firstSearcher" class="solr.QuerySenderListener">
744
- <arr name="queries">
745
- <lst>
746
- <str name="q">static firstSearcher warming in solrconfig.xml</str>
747
- </lst>
748
- </arr>
749
- </listener>
750
-
751
- <!-- Use Cold Searcher
752
-
753
- If a search request comes in and there is no current
754
- registered searcher, then immediately register the still
755
- warming searcher and use it. If "false" then all requests
756
- will block until the first searcher is done warming.
757
- -->
758
- <useColdSearcher>false</useColdSearcher>
759
-
760
- <!-- Max Warming Searchers
761
-
762
- Maximum number of searchers that may be warming in the
763
- background concurrently. An error is returned if this limit
764
- is exceeded.
765
-
766
- Recommend values of 1-2 for read-only slaves, higher for
767
- masters w/o cache warming.
768
- -->
769
- <maxWarmingSearchers>2</maxWarmingSearchers>
770
-
771
- </query>
772
-
773
-
774
- <!-- Request Dispatcher
775
-
776
- This section contains instructions for how the SolrDispatchFilter
777
- should behave when processing requests for this SolrCore.
778
-
779
- handleSelect is a legacy option that affects the behavior of requests
780
- such as /select?qt=XXX
781
-
782
- handleSelect="true" will cause the SolrDispatchFilter to process
783
- the request and dispatch the query to a handler specified by the
784
- "qt" param, assuming "/select" isn't already registered.
785
-
786
- handleSelect="false" will cause the SolrDispatchFilter to
787
- ignore "/select" requests, resulting in a 404 unless a handler
788
- is explicitly registered with the name "/select"
789
-
790
- handleSelect="true" is not recommended for new users, but is the default
791
- for backwards compatibility
792
- -->
793
- <requestDispatcher handleSelect="true" >
794
-
795
- <!-- Request Parsing
796
-
797
- These settings indicate how Solr Requests may be parsed, and
798
- what restrictions may be placed on the ContentStreams from
799
- those requests
800
-
801
- enableRemoteStreaming - enables use of the stream.file
802
- and stream.url parameters for specifying remote streams.
803
-
804
- multipartUploadLimitInKB - specifies the max size (in KiB) of
805
- Multipart File Uploads that Solr will allow in a Request.
806
-
807
- formdataUploadLimitInKB - specifies the max size (in KiB) of
808
- form data (application/x-www-form-urlencoded) sent via
809
- POST. You can use POST to pass request parameters not
810
- fitting into the URL.
811
-
812
- addHttpRequestToContext - if set to true, it will instruct
813
- the requestParsers to include the original HttpServletRequest
814
- object in the context map of the SolrQueryRequest under the
815
- key "httpRequest". It will not be used by any of the existing
816
- Solr components, but may be useful when developing custom
817
- plugins.
818
-
819
- *** WARNING ***
820
- The settings below authorize Solr to fetch remote files, You
821
- should make sure your system has some authentication before
822
- using enableRemoteStreaming="true"
823
-
824
- -->
825
- <requestParsers enableRemoteStreaming="true"
826
- multipartUploadLimitInKB="2048000"
827
- formdataUploadLimitInKB="2048"
828
- addHttpRequestToContext="false"/>
829
-
830
- <!-- HTTP Caching
831
-
832
- Set HTTP caching related parameters (for proxy caches and clients).
833
-
834
- The options below instruct Solr not to output any HTTP Caching
835
- related headers
836
- -->
837
- <httpCaching never304="true" />
838
- <!-- If you include a <cacheControl> directive, it will be used to
839
- generate a Cache-Control header (as well as an Expires header
840
- if the value contains "max-age=")
841
-
842
- By default, no Cache-Control header is generated.
843
-
844
- You can use the <cacheControl> option even if you have set
845
- never304="true"
846
- -->
847
- <!--
848
- <httpCaching never304="true" >
849
- <cacheControl>max-age=30, public</cacheControl>
850
- </httpCaching>
851
- -->
852
- <!-- To enable Solr to respond with automatically generated HTTP
853
- Caching headers, and to response to Cache Validation requests
854
- correctly, set the value of never304="false"
855
-
856
- This will cause Solr to generate Last-Modified and ETag
857
- headers based on the properties of the Index.
858
-
859
- The following options can also be specified to affect the
860
- values of these headers...
861
-
862
- lastModFrom - the default value is "openTime" which means the
863
- Last-Modified value (and validation against If-Modified-Since
864
- requests) will all be relative to when the current Searcher
865
- was opened. You can change it to lastModFrom="dirLastMod" if
866
- you want the value to exactly correspond to when the physical
867
- index was last modified.
868
-
869
- etagSeed="..." is an option you can change to force the ETag
870
- header (and validation against If-None-Match requests) to be
871
- different even if the index has not changed (ie: when making
872
- significant changes to your config file)
873
-
874
- (lastModifiedFrom and etagSeed are both ignored if you use
875
- the never304="true" option)
876
- -->
877
- <!--
878
- <httpCaching lastModifiedFrom="openTime"
879
- etagSeed="Solr">
880
- <cacheControl>max-age=30, public</cacheControl>
881
- </httpCaching>
882
- -->
883
- </requestDispatcher>
884
-
885
- <!-- Request Handlers
886
-
887
- http://wiki.apache.org/solr/SolrRequestHandler
888
-
889
- Incoming queries will be dispatched to a specific handler by name
890
- based on the path specified in the request.
891
-
892
- Legacy behavior: If the request path uses "/select" but no Request
893
- Handler has that name, and if handleSelect="true" has been specified in
894
- the requestDispatcher, then the Request Handler is dispatched based on
895
- the qt parameter. Handlers without a leading '/' are accessed this way
896
- like so: http://host/app/[core/]select?qt=name If no qt is
897
- given, then the requestHandler that declares default="true" will be
898
- used or the one named "standard".
899
-
900
- If a Request Handler is declared with startup="lazy", then it will
901
- not be initialized until the first request that uses it.
902
-
903
- -->
904
-
905
- <!-- A request handler that returns indented JSON by default -->
906
- <requestHandler name="/query" class="solr.SearchHandler">
907
- <lst name="defaults">
908
- <str name="echoParams">explicit</str>
909
- <str name="wt">json</str>
910
- <str name="indent">true</str>
911
- <str name="df">text</str>
912
- </lst>
913
- </requestHandler>
914
-
915
-
916
- <!-- realtime get handler, guaranteed to return the latest stored fields of
917
- any document, without the need to commit or open a new searcher. The
918
- current implementation relies on the updateLog feature being enabled.
919
-
920
- ** WARNING **
921
- Do NOT disable the realtime get handler at /get if you are using
922
- SolrCloud otherwise any leader election will cause a full sync in ALL
923
- replicas for the shard in question. Similarly, a replica recovery will
924
- also always fetch the complete index from the leader because a partial
925
- sync will not be possible in the absence of this handler.
926
- -->
927
- <requestHandler name="/get" class="solr.RealTimeGetHandler">
928
- <lst name="defaults">
929
- <str name="omitHeader">true</str>
930
- <str name="wt">json</str>
931
- <str name="indent">true</str>
932
- </lst>
933
- </requestHandler>
934
-
935
- <!--
936
- The export request handler is used to export full sorted result sets.
937
- Do not change these defaults.
938
- -->
939
-
940
- <requestHandler name="/export" class="solr.SearchHandler">
941
- <lst name="invariants">
942
- <str name="rq">{!xport}</str>
943
- <str name="wt">xsort</str>
944
- <str name="distrib">false</str>
945
- </lst>
946
-
947
- <arr name="components">
948
- <str>query</str>
949
- </arr>
950
- </requestHandler>
951
-
952
-
953
-
954
-
955
-
956
-
957
- <!-- A Robust Example
958
-
959
- This example SearchHandler declaration shows off usage of the
960
- SearchHandler with many defaults declared
961
-
962
- Note that multiple instances of the same Request Handler
963
- (SearchHandler) can be registered multiple times with different
964
- names (and different init parameters)
965
- -->
966
- <requestHandler name="/browse" class="solr.SearchHandler">
967
- <lst name="defaults">
968
- <str name="echoParams">explicit</str>
969
-
970
- <!-- VelocityResponseWriter settings -->
971
- <str name="wt">velocity</str>
972
- <str name="v.template">browse</str>
973
- <str name="v.layout">layout</str>
974
- <str name="title">Solritas</str>
975
-
976
- <!-- Query settings -->
977
- <str name="defType">edismax</str>
978
- <str name="qf">
979
- text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
980
- title^10.0 description^5.0 keywords^5.0 author^2.0 resourcename^1.0
981
- </str>
982
- <str name="df">text</str>
983
- <str name="mm">100%</str>
984
- <str name="q.alt">*:*</str>
985
- <str name="rows">10</str>
986
- <str name="fl">*,score</str>
987
-
988
- <str name="mlt.qf">
989
- text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
990
- title^10.0 description^5.0 keywords^5.0 author^2.0 resourcename^1.0
991
- </str>
992
- <str name="mlt.fl">text,features,name,sku,id,manu,cat,title,description,keywords,author,resourcename</str>
993
- <int name="mlt.count">3</int>
994
-
995
- <!-- Faceting defaults -->
996
- <str name="facet">on</str>
997
- <str name="facet.missing">true</str>
998
- <str name="facet.field">cat</str>
999
- <str name="facet.field">manu_exact</str>
1000
- <str name="facet.field">content_type</str>
1001
- <str name="facet.field">author_s</str>
1002
- <str name="facet.query">ipod</str>
1003
- <str name="facet.query">GB</str>
1004
- <str name="facet.mincount">1</str>
1005
- <str name="facet.pivot">cat,inStock</str>
1006
- <str name="facet.range.other">after</str>
1007
- <str name="facet.range">price</str>
1008
- <int name="f.price.facet.range.start">0</int>
1009
- <int name="f.price.facet.range.end">600</int>
1010
- <int name="f.price.facet.range.gap">50</int>
1011
- <str name="facet.range">popularity</str>
1012
- <int name="f.popularity.facet.range.start">0</int>
1013
- <int name="f.popularity.facet.range.end">10</int>
1014
- <int name="f.popularity.facet.range.gap">3</int>
1015
- <str name="facet.range">manufacturedate_dt</str>
1016
- <str name="f.manufacturedate_dt.facet.range.start">NOW/YEAR-10YEARS</str>
1017
- <str name="f.manufacturedate_dt.facet.range.end">NOW</str>
1018
- <str name="f.manufacturedate_dt.facet.range.gap">+1YEAR</str>
1019
- <str name="f.manufacturedate_dt.facet.range.other">before</str>
1020
- <str name="f.manufacturedate_dt.facet.range.other">after</str>
1021
-
1022
- <!-- Highlighting defaults -->
1023
- <str name="hl">on</str>
1024
- <str name="hl.fl">content features title name</str>
1025
- <str name="hl.preserveMulti">true</str>
1026
- <str name="hl.encoder">html</str>
1027
- <str name="hl.simple.pre">&lt;b&gt;</str>
1028
- <str name="hl.simple.post">&lt;/b&gt;</str>
1029
- <str name="f.title.hl.fragsize">0</str>
1030
- <str name="f.title.hl.alternateField">title</str>
1031
- <str name="f.name.hl.fragsize">0</str>
1032
- <str name="f.name.hl.alternateField">name</str>
1033
- <str name="f.content.hl.snippets">3</str>
1034
- <str name="f.content.hl.fragsize">200</str>
1035
- <str name="f.content.hl.alternateField">content</str>
1036
- <str name="f.content.hl.maxAlternateFieldLength">750</str>
1037
-
1038
- <!-- Spell checking defaults -->
1039
- <str name="spellcheck">on</str>
1040
- <str name="spellcheck.extendedResults">false</str>
1041
- <str name="spellcheck.count">5</str>
1042
- <str name="spellcheck.alternativeTermCount">2</str>
1043
- <str name="spellcheck.maxResultsForSuggest">5</str>
1044
- <str name="spellcheck.collate">true</str>
1045
- <str name="spellcheck.collateExtendedResults">true</str>
1046
- <str name="spellcheck.maxCollationTries">5</str>
1047
- <str name="spellcheck.maxCollations">3</str>
1048
- </lst>
1049
-
1050
- <!-- append spellchecking to our list of components -->
1051
- <arr name="last-components">
1052
- <str>spellcheck</str>
1053
- </arr>
1054
- </requestHandler>
1055
-
1056
-
1057
- <!-- Update Request Handler.
1058
-
1059
- http://wiki.apache.org/solr/UpdateXmlMessages
1060
-
1061
- The canonical Request Handler for Modifying the Index through
1062
- commands specified using XML, JSON, CSV, or JAVABIN
1063
-
1064
- Note: Since solr1.1 requestHandlers requires a valid content
1065
- type header if posted in the body. For example, curl now
1066
- requires: -H 'Content-type:text/xml; charset=utf-8'
1067
-
1068
- To override the request content type and force a specific
1069
- Content-type, use the request parameter:
1070
- ?update.contentType=text/csv
1071
-
1072
- This handler will pick a response format to match the input
1073
- if the 'wt' parameter is not explicit
1074
- -->
1075
-
1076
- <!-- The following are implicitly added.
1077
- <requestHandler name="/update" class="solr.UpdateRequestHandler">
1078
- </requestHandler>
1079
- <requestHandler name="/update/json" class="solr.UpdateRequestHandler">
1080
- <lst name="defaults">
1081
- <str name="stream.contentType">application/json</str>
1082
- </lst>
1083
- </requestHandler>
1084
- <requestHandler name="/update/csv" class="solr.UpdateRequestHandler">
1085
- <lst name="defaults">
1086
- <str name="stream.contentType">application/csv</str>
1087
- </lst>
1088
- </requestHandler>
1089
- -->
1090
-
1091
- <!-- Solr Cell Update Request Handler
1092
-
1093
- http://wiki.apache.org/solr/ExtractingRequestHandler
1094
-
1095
- -->
1096
- <requestHandler name="/update/extract"
1097
- startup="lazy"
1098
- class="solr.extraction.ExtractingRequestHandler" >
1099
- <lst name="defaults">
1100
- <str name="fmap.content">text</str>
1101
- <str name="lowernames">true</str>
1102
- <str name="uprefix">ignored_</str>
1103
-
1104
- <!-- capture link hrefs but ignore div attributes -->
1105
- <str name="captureAttr">true</str>
1106
- <str name="fmap.a">links</str>
1107
- <str name="fmap.div">ignored_</str>
1108
- </lst>
1109
- </requestHandler>
1110
-
1111
-
1112
- <!-- Field Analysis Request Handler
1113
-
1114
- RequestHandler that provides much the same functionality as
1115
- analysis.jsp. Provides the ability to specify multiple field
1116
- types and field names in the same request and outputs
1117
- index-time and query-time analysis for each of them.
1118
-
1119
- Request parameters are:
1120
- analysis.fieldname - field name whose analyzers are to be used
1121
-
1122
- analysis.fieldtype - field type whose analyzers are to be used
1123
- analysis.fieldvalue - text for index-time analysis
1124
- q (or analysis.q) - text for query time analysis
1125
- analysis.showmatch (true|false) - When set to true and when
1126
- query analysis is performed, the produced tokens of the
1127
- field value analysis will be marked as "matched" for every
1128
- token that is produces by the query analysis
1129
- -->
1130
- <requestHandler name="/analysis/field"
1131
- startup="lazy"
1132
- class="solr.FieldAnalysisRequestHandler" />
1133
-
1134
-
1135
- <!-- Document Analysis Handler
1136
-
1137
- http://wiki.apache.org/solr/AnalysisRequestHandler
1138
-
1139
- An analysis handler that provides a breakdown of the analysis
1140
- process of provided documents. This handler expects a (single)
1141
- content stream with the following format:
1142
-
1143
- <docs>
1144
- <doc>
1145
- <field name="id">1</field>
1146
- <field name="name">The Name</field>
1147
- <field name="text">The Text Value</field>
1148
- </doc>
1149
- <doc>...</doc>
1150
- <doc>...</doc>
1151
- ...
1152
- </docs>
1153
-
1154
- Note: Each document must contain a field which serves as the
1155
- unique key. This key is used in the returned response to associate
1156
- an analysis breakdown to the analyzed document.
1157
-
1158
- Like the FieldAnalysisRequestHandler, this handler also supports
1159
- query analysis by sending either an "analysis.query" or "q"
1160
- request parameter that holds the query text to be analyzed. It
1161
- also supports the "analysis.showmatch" parameter which when set to
1162
- true, all field tokens that match the query tokens will be marked
1163
- as a "match".
1164
- -->
1165
- <requestHandler name="/analysis/document"
1166
- class="solr.DocumentAnalysisRequestHandler"
1167
- startup="lazy" />
1168
-
1169
- <!-- Admin Handlers
1170
-
1171
- Admin Handlers - This will register all the standard admin
1172
- RequestHandlers.
1173
- -->
1174
- <requestHandler name="/admin/"
1175
- class="solr.admin.AdminHandlers" />
1176
- <!-- This single handler is equivalent to the following... -->
1177
- <!--
1178
- <requestHandler name="/admin/luke" class="solr.admin.LukeRequestHandler" />
1179
- <requestHandler name="/admin/system" class="solr.admin.SystemInfoHandler" />
1180
- <requestHandler name="/admin/plugins" class="solr.admin.PluginInfoHandler" />
1181
- <requestHandler name="/admin/threads" class="solr.admin.ThreadDumpHandler" />
1182
- <requestHandler name="/admin/properties" class="solr.admin.PropertiesRequestHandler" />
1183
- <requestHandler name="/admin/file" class="solr.admin.ShowFileRequestHandler" >
1184
- -->
1185
- <!-- If you wish to hide files under ${solr.home}/conf, explicitly
1186
- register the ShowFileRequestHandler using the definition below.
1187
- NOTE: The glob pattern ('*') is the only pattern supported at present, *.xml will
1188
- not exclude all files ending in '.xml'. Use it to exclude _all_ updates
1189
- -->
1190
- <!--
1191
- <requestHandler name="/admin/file"
1192
- class="solr.admin.ShowFileRequestHandler" >
1193
- <lst name="invariants">
1194
- <str name="hidden">synonyms.txt</str>
1195
- <str name="hidden">anotherfile.txt</str>
1196
- <str name="hidden">*</str>
1197
- </lst>
1198
- </requestHandler>
1199
- -->
1200
-
1201
- <!-- ping/healthcheck -->
1202
- <requestHandler name="/admin/ping" class="solr.PingRequestHandler">
1203
- <lst name="invariants">
1204
- <str name="q">solrpingquery</str>
1205
- </lst>
1206
- <lst name="defaults">
1207
- <str name="echoParams">all</str>
1208
- </lst>
1209
- <!-- An optional feature of the PingRequestHandler is to configure the
1210
- handler with a "healthcheckFile" which can be used to enable/disable
1211
- the PingRequestHandler.
1212
- relative paths are resolved against the data dir
1213
- -->
1214
- <!-- <str name="healthcheckFile">server-enabled.txt</str> -->
1215
- </requestHandler>
1216
-
1217
- <!-- Echo the request contents back to the client -->
1218
- <requestHandler name="/debug/dump" class="solr.DumpRequestHandler" >
1219
- <lst name="defaults">
1220
- <str name="echoParams">explicit</str>
1221
- <str name="echoHandler">true</str>
1222
- </lst>
1223
- </requestHandler>
1224
-
1225
- <!-- Solr Replication
1226
-
1227
- The SolrReplicationHandler supports replicating indexes from a
1228
- "master" used for indexing and "slaves" used for queries.
1229
-
1230
- http://wiki.apache.org/solr/SolrReplication
1231
-
1232
- It is also necessary for SolrCloud to function (in Cloud mode, the
1233
- replication handler is used to bulk transfer segments when nodes
1234
- are added or need to recover).
1235
-
1236
- https://wiki.apache.org/solr/SolrCloud/
1237
- -->
1238
- <requestHandler name="/replication" class="solr.ReplicationHandler" >
1239
- <!--
1240
- To enable simple master/slave replication, uncomment one of the
1241
- sections below, depending on whether this solr instance should be
1242
- the "master" or a "slave". If this instance is a "slave" you will
1243
- also need to fill in the masterUrl to point to a real machine.
1244
- -->
1245
- <!--
1246
- <lst name="master">
1247
- <str name="replicateAfter">commit</str>
1248
- <str name="replicateAfter">startup</str>
1249
- <str name="confFiles">schema.xml,stopwords.txt</str>
1250
- </lst>
1251
- -->
1252
- <!--
1253
- <lst name="slave">
1254
- <str name="masterUrl">http://your-master-hostname:8983/solr</str>
1255
- <str name="pollInterval">00:00:60</str>
1256
- </lst>
1257
- -->
1258
- </requestHandler>
1259
-
1260
- <!-- Search Components
1261
-
1262
- Search components are registered to SolrCore and used by
1263
- instances of SearchHandler (which can access them by name)
1264
-
1265
- By default, the following components are available:
1266
-
1267
- <searchComponent name="query" class="solr.QueryComponent" />
1268
- <searchComponent name="facet" class="solr.FacetComponent" />
1269
- <searchComponent name="mlt" class="solr.MoreLikeThisComponent" />
1270
- <searchComponent name="highlight" class="solr.HighlightComponent" />
1271
- <searchComponent name="stats" class="solr.StatsComponent" />
1272
- <searchComponent name="debug" class="solr.DebugComponent" />
1273
-
1274
- Default configuration in a requestHandler would look like:
1275
-
1276
- <arr name="components">
1277
- <str>query</str>
1278
- <str>facet</str>
1279
- <str>mlt</str>
1280
- <str>highlight</str>
1281
- <str>stats</str>
1282
- <str>debug</str>
1283
- </arr>
1284
-
1285
- If you register a searchComponent to one of the standard names,
1286
- that will be used instead of the default.
1287
-
1288
- To insert components before or after the 'standard' components, use:
1289
-
1290
- <arr name="first-components">
1291
- <str>myFirstComponentName</str>
1292
- </arr>
1293
-
1294
- <arr name="last-components">
1295
- <str>myLastComponentName</str>
1296
- </arr>
1297
-
1298
- NOTE: The component registered with the name "debug" will
1299
- always be executed after the "last-components"
1300
-
1301
- -->
1302
-
1303
- <!-- Spell Check
1304
-
1305
- The spell check component can return a list of alternative spelling
1306
- suggestions.
1307
-
1308
- http://wiki.apache.org/solr/SpellCheckComponent
1309
- -->
1310
- <searchComponent name="spellcheck" class="solr.SpellCheckComponent">
1311
-
1312
- <str name="queryAnalyzerFieldType">text_general</str>
1313
-
1314
- <!-- Multiple "Spell Checkers" can be declared and used by this
1315
- component
1316
- -->
1317
-
1318
- <!-- a spellchecker built from a field of the main index -->
1319
- <lst name="spellchecker">
1320
- <str name="name">default</str>
1321
- <str name="field">text</str>
1322
- <str name="classname">solr.DirectSolrSpellChecker</str>
1323
- <!-- the spellcheck distance measure used, the default is the internal levenshtein -->
1324
- <str name="distanceMeasure">internal</str>
1325
- <!-- minimum accuracy needed to be considered a valid spellcheck suggestion -->
1326
- <float name="accuracy">0.5</float>
1327
- <!-- the maximum #edits we consider when enumerating terms: can be 1 or 2 -->
1328
- <int name="maxEdits">2</int>
1329
- <!-- the minimum shared prefix when enumerating terms -->
1330
- <int name="minPrefix">1</int>
1331
- <!-- maximum number of inspections per result. -->
1332
- <int name="maxInspections">5</int>
1333
- <!-- minimum length of a query term to be considered for correction -->
1334
- <int name="minQueryLength">4</int>
1335
- <!-- maximum threshold of documents a query term can appear to be considered for correction -->
1336
- <float name="maxQueryFrequency">0.01</float>
1337
- <!-- uncomment this to require suggestions to occur in 1% of the documents
1338
- <float name="thresholdTokenFrequency">.01</float>
1339
- -->
1340
- </lst>
1341
-
1342
- <!-- a spellchecker that can break or combine words. See "/spell" handler below for usage -->
1343
- <lst name="spellchecker">
1344
- <str name="name">wordbreak</str>
1345
- <str name="classname">solr.WordBreakSolrSpellChecker</str>
1346
- <str name="field">name</str>
1347
- <str name="combineWords">true</str>
1348
- <str name="breakWords">true</str>
1349
- <int name="maxChanges">10</int>
1350
- </lst>
1351
-
1352
- <!-- a spellchecker that uses a different distance measure -->
1353
- <!--
1354
- <lst name="spellchecker">
1355
- <str name="name">jarowinkler</str>
1356
- <str name="field">spell</str>
1357
- <str name="classname">solr.DirectSolrSpellChecker</str>
1358
- <str name="distanceMeasure">
1359
- org.apache.lucene.search.spell.JaroWinklerDistance
1360
- </str>
1361
- </lst>
1362
- -->
1363
-
1364
- <!-- a spellchecker that use an alternate comparator
1365
-
1366
- comparatorClass be one of:
1367
- 1. score (default)
1368
- 2. freq (Frequency first, then score)
1369
- 3. A fully qualified class name
1370
- -->
1371
- <!--
1372
- <lst name="spellchecker">
1373
- <str name="name">freq</str>
1374
- <str name="field">lowerfilt</str>
1375
- <str name="classname">solr.DirectSolrSpellChecker</str>
1376
- <str name="comparatorClass">freq</str>
1377
- -->
1378
-
1379
- <!-- A spellchecker that reads the list of words from a file -->
1380
- <!--
1381
- <lst name="spellchecker">
1382
- <str name="classname">solr.FileBasedSpellChecker</str>
1383
- <str name="name">file</str>
1384
- <str name="sourceLocation">spellings.txt</str>
1385
- <str name="characterEncoding">UTF-8</str>
1386
- <str name="spellcheckIndexDir">spellcheckerFile</str>
1387
- </lst>
1388
- -->
1389
- </searchComponent>
1390
-
1391
- <!-- A request handler for demonstrating the spellcheck component.
1392
-
1393
- NOTE: This is purely as an example. The whole purpose of the
1394
- SpellCheckComponent is to hook it into the request handler that
1395
- handles your normal user queries so that a separate request is
1396
- not needed to get suggestions.
1397
-
1398
- IN OTHER WORDS, THERE IS REALLY GOOD CHANCE THE SETUP BELOW IS
1399
- NOT WHAT YOU WANT FOR YOUR PRODUCTION SYSTEM!
1400
-
1401
- See http://wiki.apache.org/solr/SpellCheckComponent for details
1402
- on the request parameters.
1403
- -->
1404
- <requestHandler name="/spell" class="solr.SearchHandler" startup="lazy">
1405
- <lst name="defaults">
1406
- <str name="df">text</str>
1407
- <!-- Solr will use suggestions from both the 'default' spellchecker
1408
- and from the 'wordbreak' spellchecker and combine them.
1409
- collations (re-written queries) can include a combination of
1410
- corrections from both spellcheckers -->
1411
- <str name="spellcheck.dictionary">default</str>
1412
- <str name="spellcheck.dictionary">wordbreak</str>
1413
- <str name="spellcheck">on</str>
1414
- <str name="spellcheck.extendedResults">true</str>
1415
- <str name="spellcheck.count">10</str>
1416
- <str name="spellcheck.alternativeTermCount">5</str>
1417
- <str name="spellcheck.maxResultsForSuggest">5</str>
1418
- <str name="spellcheck.collate">true</str>
1419
- <str name="spellcheck.collateExtendedResults">true</str>
1420
- <str name="spellcheck.maxCollationTries">10</str>
1421
- <str name="spellcheck.maxCollations">5</str>
1422
- </lst>
1423
- <arr name="last-components">
1424
- <str>spellcheck</str>
1425
- </arr>
1426
- </requestHandler>
1427
-
1428
- <!-- This causes long startup times on big indexes, even when never used. See SOLR-6679
1429
- <searchComponent name="suggest" class="solr.SuggestComponent">
1430
- <lst name="suggester">
1431
- <str name="name">mySuggester</str>
1432
- <str name="lookupImpl">FuzzyLookupFactory</str>
1433
- <str name="dictionaryImpl">DocumentDictionaryFactory</str>
1434
- <str name="field">cat</str>
1435
- <str name="weightField">price</str>
1436
- <str name="suggestAnalyzerFieldType">string</str>
1437
- </lst>
1438
- </searchComponent>
1439
-
1440
- <requestHandler name="/suggest" class="solr.SearchHandler" startup="lazy">
1441
- <lst name="defaults">
1442
- <str name="suggest">true</str>
1443
- <str name="suggest.count">10</str>
1444
- </lst>
1445
- <arr name="components">
1446
- <str>suggest</str>
1447
- </arr>
1448
- </requestHandler>
1449
- -->
1450
-
1451
- <!-- Term Vector Component
1452
-
1453
- http://wiki.apache.org/solr/TermVectorComponent
1454
- -->
1455
- <searchComponent name="tvComponent" class="solr.TermVectorComponent"/>
1456
-
1457
- <!-- A request handler for demonstrating the term vector component
1458
-
1459
- This is purely as an example.
1460
-
1461
- In reality you will likely want to add the component to your
1462
- already specified request handlers.
1463
- -->
1464
- <requestHandler name="/tvrh" class="solr.SearchHandler" startup="lazy">
1465
- <lst name="defaults">
1466
- <str name="df">text</str>
1467
- <bool name="tv">true</bool>
1468
- </lst>
1469
- <arr name="last-components">
1470
- <str>tvComponent</str>
1471
- </arr>
1472
- </requestHandler>
1473
-
1474
- <!-- Clustering Component
1475
-
1476
- You'll need to set the solr.clustering.enabled system property
1477
- when running solr to run with clustering enabled:
1478
-
1479
- java -Dsolr.clustering.enabled=true -jar start.jar
1480
-
1481
- http://wiki.apache.org/solr/ClusteringComponent
1482
- http://carrot2.github.io/solr-integration-strategies/
1483
- -->
1484
- <searchComponent name="clustering"
1485
- enable="${solr.clustering.enabled:false}"
1486
- class="solr.clustering.ClusteringComponent" >
1487
- <lst name="engine">
1488
- <str name="name">lingo</str>
1489
-
1490
- <!-- Class name of a clustering algorithm compatible with the Carrot2 framework.
1491
-
1492
- Currently available open source algorithms are:
1493
- * org.carrot2.clustering.lingo.LingoClusteringAlgorithm
1494
- * org.carrot2.clustering.stc.STCClusteringAlgorithm
1495
- * org.carrot2.clustering.kmeans.BisectingKMeansClusteringAlgorithm
1496
-
1497
- See http://project.carrot2.org/algorithms.html for more information.
1498
-
1499
- A commercial algorithm Lingo3G (needs to be installed separately) is defined as:
1500
- * com.carrotsearch.lingo3g.Lingo3GClusteringAlgorithm
1501
- -->
1502
- <str name="carrot.algorithm">org.carrot2.clustering.lingo.LingoClusteringAlgorithm</str>
1503
-
1504
- <!-- Override location of the clustering algorithm's resources
1505
- (attribute definitions and lexical resources).
1506
-
1507
- A directory from which to load algorithm-specific stop words,
1508
- stop labels and attribute definition XMLs.
1509
-
1510
- For an overview of Carrot2 lexical resources, see:
1511
- http://download.carrot2.org/head/manual/#chapter.lexical-resources
1512
-
1513
- For an overview of Lingo3G lexical resources, see:
1514
- http://download.carrotsearch.com/lingo3g/manual/#chapter.lexical-resources
1515
- -->
1516
- <str name="carrot.resourcesDir">clustering/carrot2</str>
1517
- </lst>
1518
-
1519
- <!-- An example definition for the STC clustering algorithm. -->
1520
- <lst name="engine">
1521
- <str name="name">stc</str>
1522
- <str name="carrot.algorithm">org.carrot2.clustering.stc.STCClusteringAlgorithm</str>
1523
- </lst>
1524
-
1525
- <!-- An example definition for the bisecting kmeans clustering algorithm. -->
1526
- <lst name="engine">
1527
- <str name="name">kmeans</str>
1528
- <str name="carrot.algorithm">org.carrot2.clustering.kmeans.BisectingKMeansClusteringAlgorithm</str>
1529
- </lst>
1530
- </searchComponent>
1531
-
1532
- <!-- A request handler for demonstrating the clustering component
1533
-
1534
- This is purely as an example.
1535
-
1536
- In reality you will likely want to add the component to your
1537
- already specified request handlers.
1538
- -->
1539
- <requestHandler name="/clustering"
1540
- startup="lazy"
1541
- enable="${solr.clustering.enabled:false}"
1542
- class="solr.SearchHandler">
1543
- <lst name="defaults">
1544
- <bool name="clustering">true</bool>
1545
- <bool name="clustering.results">true</bool>
1546
- <!-- Field name with the logical "title" of a each document (optional) -->
1547
- <str name="carrot.title">name</str>
1548
- <!-- Field name with the logical "URL" of a each document (optional) -->
1549
- <str name="carrot.url">id</str>
1550
- <!-- Field name with the logical "content" of a each document (optional) -->
1551
- <str name="carrot.snippet">features</str>
1552
- <!-- Apply highlighter to the title/ content and use this for clustering. -->
1553
- <bool name="carrot.produceSummary">true</bool>
1554
- <!-- the maximum number of labels per cluster -->
1555
- <!--<int name="carrot.numDescriptions">5</int>-->
1556
- <!-- produce sub clusters -->
1557
- <bool name="carrot.outputSubClusters">false</bool>
1558
-
1559
- <!-- Configure the remaining request handler parameters. -->
1560
- <str name="defType">edismax</str>
1561
- <str name="qf">
1562
- text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
1563
- </str>
1564
- <str name="q.alt">*:*</str>
1565
- <str name="rows">10</str>
1566
- <str name="fl">*,score</str>
1567
- </lst>
1568
- <arr name="last-components">
1569
- <str>clustering</str>
1570
- </arr>
1571
- </requestHandler>
1572
-
1573
- <!-- Terms Component
1574
-
1575
- http://wiki.apache.org/solr/TermsComponent
1576
-
1577
- A component to return terms and document frequency of those
1578
- terms
1579
- -->
1580
- <searchComponent name="terms" class="solr.TermsComponent"/>
1581
-
1582
- <!-- A request handler for demonstrating the terms component -->
1583
- <requestHandler name="/terms" class="solr.SearchHandler" startup="lazy">
1584
- <lst name="defaults">
1585
- <bool name="terms">true</bool>
1586
- <bool name="distrib">false</bool>
1587
- </lst>
1588
- <arr name="components">
1589
- <str>terms</str>
1590
- </arr>
1591
- </requestHandler>
1592
-
1593
-
1594
- <!-- Query Elevation Component
1595
-
1596
- http://wiki.apache.org/solr/QueryElevationComponent
1597
-
1598
- a search component that enables you to configure the top
1599
- results for a given query regardless of the normal lucene
1600
- scoring.
1601
- -->
1602
- <searchComponent name="elevator" class="solr.QueryElevationComponent" >
1603
- <!-- pick a fieldType to analyze queries -->
1604
- <str name="queryFieldType">string</str>
1605
- <str name="config-file">elevate.xml</str>
1606
- </searchComponent>
1607
-
1608
- <!-- A request handler for demonstrating the elevator component -->
1609
- <requestHandler name="/elevate" class="solr.SearchHandler" startup="lazy">
1610
- <lst name="defaults">
1611
- <str name="echoParams">explicit</str>
1612
- <str name="df">text</str>
1613
- </lst>
1614
- <arr name="last-components">
1615
- <str>elevator</str>
1616
- </arr>
1617
- </requestHandler>
1618
-
1619
- <!-- Highlighting Component
1620
-
1621
- http://wiki.apache.org/solr/HighlightingParameters
1622
- -->
1623
- <searchComponent class="solr.HighlightComponent" name="highlight">
1624
- <highlighting>
1625
- <!-- Configure the standard fragmenter -->
1626
- <!-- This could most likely be commented out in the "default" case -->
1627
- <fragmenter name="gap"
1628
- default="true"
1629
- class="solr.highlight.GapFragmenter">
1630
- <lst name="defaults">
1631
- <int name="hl.fragsize">100</int>
1632
- </lst>
1633
- </fragmenter>
1634
-
1635
- <!-- A regular-expression-based fragmenter
1636
- (for sentence extraction)
1637
- -->
1638
- <fragmenter name="regex"
1639
- class="solr.highlight.RegexFragmenter">
1640
- <lst name="defaults">
1641
- <!-- slightly smaller fragsizes work better because of slop -->
1642
- <int name="hl.fragsize">70</int>
1643
- <!-- allow 50% slop on fragment sizes -->
1644
- <float name="hl.regex.slop">0.5</float>
1645
- <!-- a basic sentence pattern -->
1646
- <str name="hl.regex.pattern">[-\w ,/\n\&quot;&apos;]{20,200}</str>
1647
- </lst>
1648
- </fragmenter>
1649
-
1650
- <!-- Configure the standard formatter -->
1651
- <formatter name="html"
1652
- default="true"
1653
- class="solr.highlight.HtmlFormatter">
1654
- <lst name="defaults">
1655
- <str name="hl.simple.pre"><![CDATA[<em>]]></str>
1656
- <str name="hl.simple.post"><![CDATA[</em>]]></str>
1657
- </lst>
1658
- </formatter>
1659
-
1660
- <!-- Configure the standard encoder -->
1661
- <encoder name="html"
1662
- class="solr.highlight.HtmlEncoder" />
1663
-
1664
- <!-- Configure the standard fragListBuilder -->
1665
- <fragListBuilder name="simple"
1666
- class="solr.highlight.SimpleFragListBuilder"/>
1667
-
1668
- <!-- Configure the single fragListBuilder -->
1669
- <fragListBuilder name="single"
1670
- class="solr.highlight.SingleFragListBuilder"/>
1671
-
1672
- <!-- Configure the weighted fragListBuilder -->
1673
- <fragListBuilder name="weighted"
1674
- default="true"
1675
- class="solr.highlight.WeightedFragListBuilder"/>
1676
-
1677
- <!-- default tag FragmentsBuilder -->
1678
- <fragmentsBuilder name="default"
1679
- default="true"
1680
- class="solr.highlight.ScoreOrderFragmentsBuilder">
1681
- <!--
1682
- <lst name="defaults">
1683
- <str name="hl.multiValuedSeparatorChar">/</str>
1684
- </lst>
1685
- -->
1686
- </fragmentsBuilder>
1687
-
1688
- <!-- multi-colored tag FragmentsBuilder -->
1689
- <fragmentsBuilder name="colored"
1690
- class="solr.highlight.ScoreOrderFragmentsBuilder">
1691
- <lst name="defaults">
1692
- <str name="hl.tag.pre"><![CDATA[
1693
- <b style="background:yellow">,<b style="background:lawgreen">,
1694
- <b style="background:aquamarine">,<b style="background:magenta">,
1695
- <b style="background:palegreen">,<b style="background:coral">,
1696
- <b style="background:wheat">,<b style="background:khaki">,
1697
- <b style="background:lime">,<b style="background:deepskyblue">]]></str>
1698
- <str name="hl.tag.post"><![CDATA[</b>]]></str>
1699
- </lst>
1700
- </fragmentsBuilder>
1701
-
1702
- <boundaryScanner name="default"
1703
- default="true"
1704
- class="solr.highlight.SimpleBoundaryScanner">
1705
- <lst name="defaults">
1706
- <str name="hl.bs.maxScan">10</str>
1707
- <str name="hl.bs.chars">.,!? &#9;&#10;&#13;</str>
1708
- </lst>
1709
- </boundaryScanner>
1710
-
1711
- <boundaryScanner name="breakIterator"
1712
- class="solr.highlight.BreakIteratorBoundaryScanner">
1713
- <lst name="defaults">
1714
- <!-- type should be one of CHARACTER, WORD(default), LINE and SENTENCE -->
1715
- <str name="hl.bs.type">WORD</str>
1716
- <!-- language and country are used when constructing Locale object. -->
1717
- <!-- And the Locale object will be used when getting instance of BreakIterator -->
1718
- <str name="hl.bs.language">en</str>
1719
- <str name="hl.bs.country">US</str>
1720
- </lst>
1721
- </boundaryScanner>
1722
- </highlighting>
1723
- </searchComponent>
1724
-
1725
- <!-- Update Processors
1726
-
1727
- Chains of Update Processor Factories for dealing with Update
1728
- Requests can be declared, and then used by name in Update
1729
- Request Processors
1730
-
1731
- http://wiki.apache.org/solr/UpdateRequestProcessor
1732
-
1733
- -->
1734
- <!-- Deduplication
1735
-
1736
- An example dedup update processor that creates the "id" field
1737
- on the fly based on the hash code of some other fields. This
1738
- example has overwriteDupes set to false since we are using the
1739
- id field as the signatureField and Solr will maintain
1740
- uniqueness based on that anyway.
1741
-
1742
- -->
1743
- <!--
1744
- <updateRequestProcessorChain name="dedupe">
1745
- <processor class="solr.processor.SignatureUpdateProcessorFactory">
1746
- <bool name="enabled">true</bool>
1747
- <str name="signatureField">id</str>
1748
- <bool name="overwriteDupes">false</bool>
1749
- <str name="fields">name,features,cat</str>
1750
- <str name="signatureClass">solr.processor.Lookup3Signature</str>
1751
- </processor>
1752
- <processor class="solr.LogUpdateProcessorFactory" />
1753
- <processor class="solr.RunUpdateProcessorFactory" />
1754
- </updateRequestProcessorChain>
1755
- -->
1756
-
1757
- <!-- Language identification
1758
-
1759
- This example update chain identifies the language of the incoming
1760
- documents using the langid contrib. The detected language is
1761
- written to field language_s. No field name mapping is done.
1762
- The fields used for detection are text, title, subject and description,
1763
- making this example suitable for detecting languages form full-text
1764
- rich documents injected via ExtractingRequestHandler.
1765
- See more about langId at http://wiki.apache.org/solr/LanguageDetection
1766
- -->
1767
- <!--
1768
- <updateRequestProcessorChain name="langid">
1769
- <processor class="org.apache.solr.update.processor.TikaLanguageIdentifierUpdateProcessorFactory">
1770
- <str name="langid.fl">text,title,subject,description</str>
1771
- <str name="langid.langField">language_s</str>
1772
- <str name="langid.fallback">en</str>
1773
- </processor>
1774
- <processor class="solr.LogUpdateProcessorFactory" />
1775
- <processor class="solr.RunUpdateProcessorFactory" />
1776
- </updateRequestProcessorChain>
1777
- -->
1778
-
1779
- <!-- Script update processor
1780
-
1781
- This example hooks in an update processor implemented using JavaScript.
1782
-
1783
- See more about the script update processor at http://wiki.apache.org/solr/ScriptUpdateProcessor
1784
- -->
1785
- <!--
1786
- <updateRequestProcessorChain name="script">
1787
- <processor class="solr.StatelessScriptUpdateProcessorFactory">
1788
- <str name="script">update-script.js</str>
1789
- <lst name="params">
1790
- <str name="config_param">example config parameter</str>
1791
- </lst>
1792
- </processor>
1793
- <processor class="solr.RunUpdateProcessorFactory" />
1794
- </updateRequestProcessorChain>
1795
- -->
1796
-
1797
- <!-- Response Writers
1798
-
1799
- http://wiki.apache.org/solr/QueryResponseWriter
1800
-
1801
- Request responses will be written using the writer specified by
1802
- the 'wt' request parameter matching the name of a registered
1803
- writer.
1804
-
1805
- The "default" writer is the default and will be used if 'wt' is
1806
- not specified in the request.
1807
- -->
1808
- <!-- The following response writers are implicitly configured unless
1809
- overridden...
1810
- -->
1811
- <!--
1812
- <queryResponseWriter name="xml"
1813
- default="true"
1814
- class="solr.XMLResponseWriter" />
1815
- <queryResponseWriter name="json" class="solr.JSONResponseWriter"/>
1816
- <queryResponseWriter name="python" class="solr.PythonResponseWriter"/>
1817
- <queryResponseWriter name="ruby" class="solr.RubyResponseWriter"/>
1818
- <queryResponseWriter name="php" class="solr.PHPResponseWriter"/>
1819
- <queryResponseWriter name="phps" class="solr.PHPSerializedResponseWriter"/>
1820
- <queryResponseWriter name="csv" class="solr.CSVResponseWriter"/>
1821
- <queryResponseWriter name="schema.xml" class="solr.SchemaXmlResponseWriter"/>
1822
- -->
1823
-
1824
- <queryResponseWriter name="json" class="solr.JSONResponseWriter">
1825
- <!-- For the purposes of the tutorial, JSON responses are written as
1826
- plain text so that they are easy to read in *any* browser.
1827
- If you expect a MIME type of "application/json" just remove this override.
1828
- -->
1829
- <str name="content-type">text/plain; charset=UTF-8</str>
1830
- </queryResponseWriter>
1831
-
1832
- <!--
1833
- Custom response writers can be declared as needed...
1834
- -->
1835
- <queryResponseWriter name="velocity" class="solr.VelocityResponseWriter" startup="lazy"/>
1836
-
1837
-
1838
- <!-- XSLT response writer transforms the XML output by any xslt file found
1839
- in Solr's conf/xslt directory. Changes to xslt files are checked for
1840
- every xsltCacheLifetimeSeconds.
1841
- -->
1842
- <queryResponseWriter name="xslt" class="solr.XSLTResponseWriter">
1843
- <int name="xsltCacheLifetimeSeconds">5</int>
1844
- </queryResponseWriter>
1845
-
1846
- <!-- Query Parsers
1847
-
1848
- http://wiki.apache.org/solr/SolrQuerySyntax
1849
-
1850
- Multiple QParserPlugins can be registered by name, and then
1851
- used in either the "defType" param for the QueryComponent (used
1852
- by SearchHandler) or in LocalParams
1853
- -->
1854
- <!-- example of registering a query parser -->
1855
- <!--
1856
- <queryParser name="myparser" class="com.mycompany.MyQParserPlugin"/>
1857
- -->
1858
-
1859
- <!-- Function Parsers
1860
-
1861
- http://wiki.apache.org/solr/FunctionQuery
1862
-
1863
- Multiple ValueSourceParsers can be registered by name, and then
1864
- used as function names when using the "func" QParser.
1865
- -->
1866
- <!-- example of registering a custom function parser -->
1867
- <!--
1868
- <valueSourceParser name="myfunc"
1869
- class="com.mycompany.MyValueSourceParser" />
1870
- -->
1871
-
1872
-
1873
- <!-- Document Transformers
1874
- http://wiki.apache.org/solr/DocTransformers
1875
- -->
1876
- <!--
1877
- Could be something like:
1878
- <transformer name="db" class="com.mycompany.LoadFromDatabaseTransformer" >
1879
- <int name="connection">jdbc://....</int>
1880
- </transformer>
1881
-
1882
- To add a constant value to all docs, use:
1883
- <transformer name="mytrans2" class="org.apache.solr.response.transform.ValueAugmenterFactory" >
1884
- <int name="value">5</int>
1885
- </transformer>
1886
-
1887
- If you want the user to still be able to change it with _value:something_ use this:
1888
- <transformer name="mytrans3" class="org.apache.solr.response.transform.ValueAugmenterFactory" >
1889
- <double name="defaultValue">5</double>
1890
- </transformer>
1891
-
1892
- If you are using the QueryElevationComponent, you may wish to mark documents that get boosted. The
1893
- EditorialMarkerFactory will do exactly that:
1894
- <transformer name="qecBooster" class="org.apache.solr.response.transform.EditorialMarkerFactory" />
1895
- -->
1896
-
1897
-
1898
- <!-- Legacy config for the admin interface -->
1899
- <admin>
1900
- <defaultQuery>*:*</defaultQuery>
1901
- </admin>
1902
-
1903
- </config>