hydra-core 5.0.0.pre9 → 5.0.0.pre10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. data/hydra-core.gemspec +2 -2
  2. data/lib/generators/hydra/head_generator.rb +1 -4
  3. data/lib/generators/hydra/templates/config/initializers/hydra_config.rb +0 -1
  4. data/lib/generators/hydra/templates/fedora_conf/conf/development/fedora.fcfg +460 -385
  5. data/lib/generators/hydra/templates/fedora_conf/conf/test/fedora.fcfg +461 -386
  6. data/lib/generators/hydra/templates/solr_conf/conf/schema.xml +70 -484
  7. data/lib/generators/hydra/templates/solr_conf/conf/solrconfig.xml +615 -1663
  8. data/lib/hydra-head/version.rb +1 -1
  9. data/spec/controllers/catalog_controller_spec.rb +2 -4
  10. metadata +8 -25
  11. data/app/views/_flash_msg.html.erb +0 -5
  12. data/app/views/catalog/_citation.html.erb +0 -11
  13. data/app/views/catalog/_delete_partials/_default.html.erb +0 -22
  14. data/app/views/catalog/_edit_partials/_default.html.erb +0 -57
  15. data/app/views/catalog/_edit_partials/_default_details.html.erb +0 -13
  16. data/app/views/catalog/_home.html.erb +0 -4
  17. data/app/views/catalog/_home_text.html.erb +0 -4
  18. data/app/views/catalog/_index_partials/_default.html.erb +0 -20
  19. data/app/views/catalog/_index_partials/_default_details.html.erb +0 -14
  20. data/app/views/catalog/_show_partials/_default.html.erb +0 -20
  21. data/app/views/catalog/_show_partials/_default_details.html.erb +0 -15
  22. data/app/views/catalog/_show_partials/_facets.html.erb +0 -52
  23. data/app/views/catalog/_sms_form.html.erb +0 -21
  24. data/app/views/catalog/_uva_tabs.html.erb +0 -10
  25. data/app/views/catalog/about.html.erb +0 -0
  26. data/app/views/catalog/show.html.erb +0 -40
  27. data/app/views/layouts/hydra-head.html.erb +0 -47
@@ -16,900 +16,385 @@
16
16
  limitations under the License.
17
17
  -->
18
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
19
  <config>
24
- <!-- In all configuration below, a prefix of "solr." for class names
25
- is an alias that causes solr to search appropriate packages,
26
- including org.apache.solr.(search|update|request|core|analysis)
27
-
28
- You may also specify a fully qualified Java classname if you
29
- have your own custom plugins.
30
- -->
31
-
32
- <!-- Set this to 'false' if you want solr to continue working after
33
- it has encountered an severe configuration error. In a
34
- production environment, you may want solr to keep working even
35
- if one handler is mis-configured.
36
-
37
- You may also set this to false using by setting the system
38
- property:
20
+ <!-- Set this to 'false' if you want solr to continue working after it has
21
+ encountered an severe configuration error. In a production environment,
22
+ you may want solr to keep working even if one handler is mis-configured.
39
23
 
24
+ You may also set this to false using by setting the system property:
40
25
  -Dsolr.abortOnConfigurationError=false
41
- -->
26
+ -->
42
27
  <abortOnConfigurationError>${solr.abortOnConfigurationError:true}</abortOnConfigurationError>
43
-
44
- <!-- Controls what version of Lucene various components of Solr
45
- adhere to. Generally, you want to use the latest version to
46
- get all bug fixes and improvements. It is highly recommended
47
- that you fully re-index after changing this setting as it can
48
- affect both how text is indexed and queried.
49
- -->
50
- <luceneMatchVersion>LUCENE_35</luceneMatchVersion>
51
-
52
- <!-- lib directives can be used to instruct Solr to load an Jars
53
- identified and use them to resolve any "plugins" specified in
54
- your solrconfig.xml or schema.xml (ie: Analyzers, Request
55
- Handlers, etc...).
56
-
57
- All directories and paths are resolved relative to the
58
- instanceDir.
59
-
60
- If a "./lib" directory exists in your instanceDir, all files
61
- found in it are included as if you had used the following
62
- syntax...
63
-
64
- <lib dir="./lib" />
65
- -->
66
-
67
- <!-- Blacklight jetty solr lib dirs -->
68
- <lib dir="./contrib/extraction/lib" />
69
- <lib dir="./contrib/clustering/lib/" />
70
- <lib dir="./contrib/velocity/lib" />
71
- <lib dir="./contrib/analysis-extras/lib" />
72
- <lib dir="./contrib/analysis-extras/lucene-libs" />
73
-
74
- <!-- A dir option by itself adds any files found in the directory to
75
- the classpath, this is useful for including all jars in a
76
- directory.
77
- -->
78
- <lib dir="../../contrib/extraction/lib" />
79
- <lib dir="../../contrib/clustering/lib/" />
80
- <lib dir="../../contrib/velocity/lib" />
81
-
82
- <!-- When a regex is specified in addition to a directory, only the
83
- files in that directory which completely match the regex
84
- (anchored on both ends) will be included.
85
- -->
86
- <lib dir="../../dist/" regex="apache-solr-cell-\d.*\.jar" />
87
- <lib dir="../../dist/" regex="apache-solr-clustering-\d.*\.jar" />
88
- <lib dir="../../dist/" regex="apache-solr-dataimporthandler-\d.*\.jar" />
89
- <lib dir="../../dist/" regex="apache-solr-langid-\d.*\.jar" />
90
- <lib dir="../../dist/" regex="apache-solr-velocity-\d.*\.jar" />
91
-
92
- <!-- If a dir option (with or without a regex) is used and nothing
93
- is found that matches, it will be ignored
94
- -->
95
- <lib dir="../../contrib/clustering/lib/" />
96
- <lib dir="/total/crap/dir/ignored" />
97
-
98
- <!-- an exact path can be used to specify a specific file. This
99
- will cause a serious error to be logged if it can't be loaded.
100
- -->
101
- <!--
102
- <lib path="../a-jar-that-does-not-exist.jar" />
103
- -->
104
-
105
- <!-- Data Directory
106
-
107
- Used to specify an alternate directory to hold all index data
108
- other than the default ./data under the Solr home. If
109
- replication is in use, this should match the replication
110
- configuration.
111
- -->
112
- <dataDir>${solr.data.dir:}</dataDir>
113
28
 
29
+ <!-- Used to specify an alternate directory to hold all index data
30
+ other than the default ./data under the Solr home.
31
+ If replication is in use, this should match the replication configuration. -->
32
+ <!-- <dataDir>${solr.data.dir:./solr/data/salt}</dataDir>
33
+ -->
114
34
 
115
- <!-- The DirectoryFactory to use for indexes.
116
-
117
- solr.StandardDirectoryFactory, the default, is filesystem
118
- based. solr.RAMDirectoryFactory is memory based, not
119
- persistent, and doesn't work with replication.
120
- -->
121
- <directoryFactory name="DirectoryFactory"
122
- class="${solr.directoryFactory:solr.StandardDirectoryFactory}"/>
35
+ <indexDefaults>
36
+ <!-- Values here affect all index writers and act as a default unless overridden. -->
37
+ <useCompoundFile>false</useCompoundFile>
123
38
 
39
+ <mergeFactor>10</mergeFactor>
40
+ <!--
41
+ If both ramBufferSizeMB and maxBufferedDocs is set, then Lucene will flush based on whichever limit is hit first.
124
42
 
125
- <!-- Index Defaults
43
+ -->
44
+ <!--<maxBufferedDocs>1000</maxBufferedDocs>-->
45
+ <!-- Tell Lucene when to flush documents to disk.
46
+ Giving Lucene more memory for indexing means faster indexing at the cost of more RAM
126
47
 
127
- Values here affect all index writers and act as a default
128
- unless overridden.
48
+ If both ramBufferSizeMB and maxBufferedDocs is set, then Lucene will flush based on whichever limit is hit first.
129
49
 
130
- WARNING: See also the <mainIndex> section below for parameters
131
- that overfor Solr's main Lucene index.
132
50
  -->
133
- <indexDefaults>
134
-
135
- <useCompoundFile>false</useCompoundFile>
136
-
137
- <mergeFactor>10</mergeFactor>
138
- <!-- Sets the amount of RAM that may be used by Lucene indexing
139
- for buffering added documents and deletions before they are
140
- flushed to the Directory. -->
141
51
  <ramBufferSizeMB>32</ramBufferSizeMB>
142
- <!-- If both ramBufferSizeMB and maxBufferedDocs is set, then
143
- Lucene will flush based on whichever limit is hit first.
144
- -->
145
- <!-- <maxBufferedDocs>1000</maxBufferedDocs> -->
146
-
52
+ <maxMergeDocs>2147483647</maxMergeDocs>
147
53
  <maxFieldLength>10000</maxFieldLength>
148
54
  <writeLockTimeout>1000</writeLockTimeout>
55
+ <commitLockTimeout>10000</commitLockTimeout>
149
56
 
150
- <!-- Expert: Merge Policy
151
-
152
- The Merge Policy in Lucene controls how merging is handled by
153
- Lucene. The default in Solr 3.3 is TieredMergePolicy.
154
-
155
- The default in 2.3 was the LogByteSizeMergePolicy,
156
- previous versions used LogDocMergePolicy.
157
-
158
- LogByteSizeMergePolicy chooses segments to merge based on
159
- their size. The Lucene 2.2 default, LogDocMergePolicy chose
160
- when to merge based on number of documents
161
-
162
- Other implementations of MergePolicy must have a no-argument
163
- constructor
164
- -->
165
57
  <!--
166
- <mergePolicy class="org.apache.lucene.index.TieredMergePolicy"/>
167
- -->
58
+ Expert: Turn on Lucene's auto commit capability.
59
+ This causes intermediate segment flushes to write a new lucene
60
+ index descriptor, enabling it to be opened by an external
61
+ IndexReader.
62
+ NOTE: Despite the name, this value does not have any relation to Solr's autoCommit functionality
63
+ -->
64
+ <!--<luceneAutoCommit>false</luceneAutoCommit>-->
65
+ <!--
66
+ Expert:
67
+ The Merge Policy in Lucene controls how merging is handled by Lucene. The default in 2.3 is the LogByteSizeMergePolicy, previous
68
+ versions used LogDocMergePolicy.
168
69
 
169
- <!-- Expert: Merge Scheduler
70
+ LogByteSizeMergePolicy chooses segments to merge based on their size. The Lucene 2.2 default, LogDocMergePolicy chose when
71
+ to merge based on number of documents
170
72
 
171
- The Merge Scheduler in Lucene controls how merges are
172
- performed. The ConcurrentMergeScheduler (Lucene 2.3 default)
173
- can perform merges in the background using separate threads.
174
- The SerialMergeScheduler (Lucene 2.2 default) does not.
73
+ Other implementations of MergePolicy must have a no-argument constructor
175
74
  -->
176
- <!--
177
- <mergeScheduler class="org.apache.lucene.index.ConcurrentMergeScheduler"/>
178
- -->
179
-
180
- <!-- LockFactory
75
+ <!--<mergePolicy>org.apache.lucene.index.LogByteSizeMergePolicy</mergePolicy>-->
76
+
77
+ <!--
78
+ Expert:
79
+ The Merge Scheduler in Lucene controls how merges are performed. The ConcurrentMergeScheduler (Lucene 2.3 default)
80
+ can perform merges in the background using separate threads. The SerialMergeScheduler (Lucene 2.2 default) does not.
81
+ -->
82
+ <!--<mergeScheduler>org.apache.lucene.index.ConcurrentMergeScheduler</mergeScheduler>-->
181
83
 
182
- This option specifies which Lucene LockFactory implementation
183
- to use.
84
+ <!--
85
+ This option specifies which Lucene LockFactory implementation to use.
184
86
 
185
- single = SingleInstanceLockFactory - suggested for a
186
- read-only index or when there is no possibility of
187
- another process trying to modify the index.
188
- native = NativeFSLockFactory - uses OS native file locking.
189
- Do not use when multiple solr webapps in the same
190
- JVM are attempting to share a single index.
191
- simple = SimpleFSLockFactory - uses a plain file for locking
192
-
193
- (For backwards compatibility with Solr 1.2, 'simple' is the
194
- default if not specified.)
195
-
196
- More details on the nuances of each LockFactory...
197
- http://wiki.apache.org/lucene-java/AvailableLockFactories
198
- -->
199
- <lockType>native</lockType>
87
+ single = SingleInstanceLockFactory - suggested for a read-only index
88
+ or when there is no possibility of another process trying
89
+ to modify the index.
90
+ native = NativeFSLockFactory
91
+ simple = SimpleFSLockFactory
200
92
 
201
- <!-- Expert: Controls how often Lucene loads terms into memory
202
- Default is 128 and is likely good for most everyone.
203
- -->
204
- <!-- <termIndexInterval>256</termIndexInterval> -->
93
+ (For backwards compatibility with Solr 1.2, 'simple' is the default
94
+ if not specified.)
95
+ -->
96
+ <lockType>single</lockType>
205
97
  </indexDefaults>
206
98
 
207
- <!-- Main Index
208
-
209
- Values here override the values in the <indexDefaults> section
210
- for the main on disk index.
211
- -->
212
99
  <mainIndex>
213
-
100
+ <!-- options specific to the main on-disk lucene index -->
214
101
  <useCompoundFile>false</useCompoundFile>
215
102
  <ramBufferSizeMB>32</ramBufferSizeMB>
216
103
  <mergeFactor>10</mergeFactor>
104
+ <!-- Deprecated -->
105
+ <!--<maxBufferedDocs>1000</maxBufferedDocs>-->
106
+ <maxMergeDocs>2147483647</maxMergeDocs>
107
+ <maxFieldLength>10000</maxFieldLength>
217
108
 
218
- <!-- Unlock On Startup
219
-
220
- If true, unlock any held write or commit locks on startup.
109
+ <!-- If true, unlock any held write or commit locks on startup.
221
110
  This defeats the locking mechanism that allows multiple
222
- processes to safely access a lucene index, and should be used
223
- with care.
224
-
111
+ processes to safely access a lucene index, and should be
112
+ used with care.
225
113
  This is not needed if lock type is 'none' or 'single'
226
114
  -->
227
115
  <unlockOnStartup>false</unlockOnStartup>
228
-
229
- <!-- If true, IndexReaders will be reopened (often more efficient)
230
- instead of closed and then opened.
231
- -->
232
- <reopenReaders>true</reopenReaders>
233
-
234
- <!-- Commit Deletion Policy
235
-
236
- Custom deletion policies can specified here. The class must
237
- implement org.apache.lucene.index.IndexDeletionPolicy.
238
-
239
- http://lucene.apache.org/java/2_9_1/api/all/org/apache/lucene/index/IndexDeletionPolicy.html
240
-
241
- The standard Solr IndexDeletionPolicy implementation supports
242
- deleting index commit points on number of commits, age of
243
- commit point and optimized status.
244
-
245
- The latest commit point should always be preserved regardless
246
- of the criteria.
247
- -->
248
- <deletionPolicy class="solr.SolrDeletionPolicy">
249
- <!-- The number of commit points to be kept -->
250
- <str name="maxCommitsToKeep">1</str>
251
- <!-- The number of optimized commit points to be kept -->
252
- <str name="maxOptimizedCommitsToKeep">0</str>
253
- <!--
254
- Delete all commit points once they have reached the given age.
255
- Supports DateMathParser syntax e.g.
256
- -->
257
- <!--
258
- <str name="maxCommitAge">30MINUTES</str>
259
- <str name="maxCommitAge">1DAY</str>
260
- -->
261
- </deletionPolicy>
262
-
263
- <!-- Lucene Infostream
264
-
265
- To aid in advanced debugging, Lucene provides an "InfoStream"
266
- of detailed information when indexing.
267
-
268
- Setting The value to true will instruct the underlying Lucene
269
- IndexWriter to write its debugging info the specified file
270
- -->
271
- <infoStream file="INFOSTREAM.txt">false</infoStream>
272
-
273
116
  </mainIndex>
274
-
275
- <!-- JMX
276
-
277
- This example enables JMX if and only if an existing MBeanServer
278
- is found, use this if you want to configure JMX through JVM
279
- parameters. Remove this to disable exposing Solr configuration
280
- and statistics to JMX.
281
-
282
- For more details see http://wiki.apache.org/solr/SolrJmx
283
- -->
117
+
118
+ <!-- Enables JMX if and only if an existing MBeanServer is found, use
119
+ this if you want to configure JMX through JVM parameters. Remove
120
+ this to disable exposing Solr configuration and statistics to JMX.
121
+
122
+ If you want to connect to a particular server, specify the agentId
123
+ e.g. <jmx agentId="myAgent" />
124
+
125
+ If you want to start a new MBeanServer, specify the serviceUrl
126
+ e.g <jmx serviceurl="service:jmx:rmi:///jndi/rmi://localhost:9999/solr" />
127
+
128
+ For more details see http://wiki.apache.org/solr/SolrJmx
129
+ -->
284
130
  <jmx />
285
- <!-- If you want to connect to a particular server, specify the
286
- agentId
287
- -->
288
- <!-- <jmx agentId="myAgent" /> -->
289
- <!-- If you want to start a new MBeanServer, specify the serviceUrl -->
290
- <!-- <jmx serviceUrl="service:jmx:rmi:///jndi/rmi://localhost:9999/solr"/>
291
- -->
292
131
 
293
- <!-- The default high-performance update handler -->
132
+ <!-- the default high-performance update handler -->
294
133
  <updateHandler class="solr.DirectUpdateHandler2">
295
134
 
296
- <!-- AutoCommit
297
-
298
- Perform a <commit/> automatically under certain conditions.
299
- Instead of enabling autoCommit, consider using "commitWithin"
300
- when adding documents.
301
-
302
- http://wiki.apache.org/solr/UpdateXmlMessages
303
-
304
- maxDocs - Maximum number of documents to add since the last
305
- commit before automatically triggering a new commit.
306
-
307
- maxTime - Maximum amount of time that is allowed to pass
308
- since a document was added before automaticly
309
- triggering a new commit.
310
- -->
311
- <!--
312
- <autoCommit>
313
- <maxDocs>10000</maxDocs>
314
- <maxTime>1000</maxTime>
315
- </autoCommit>
316
- -->
135
+ <!-- A prefix of "solr." for class names is an alias that
136
+ causes solr to search appropriate packages, including
137
+ org.apache.solr.(search|update|request|core|analysis)
138
+ -->
317
139
 
318
- <!-- Update Related Event Listeners
319
-
320
- Various IndexWriter related events can trigger Listeners to
321
- take actions.
140
+ <!-- Perform a <commit/> automatically under certain conditions:
141
+ maxDocs - number of updates since last commit is greater than this
142
+ maxTime - oldest uncommited update (in ms) is this long ago
143
+ <autoCommit>
144
+ <maxDocs>10000</maxDocs>
145
+ <maxTime>1000</maxTime>
146
+ </autoCommit>
147
+ -->
322
148
 
323
- postCommit - fired after every commit or optimize command
324
- postOptimize - fired after every optimize command
325
- -->
326
- <!-- The RunExecutableListener executes an external command from a
327
- hook such as postCommit or postOptimize.
328
-
149
+ <!-- The RunExecutableListener executes an external command.
329
150
  exe - the name of the executable to run
330
- dir - dir to use as the current working directory. (default=".")
331
- wait - the calling thread waits until the executable returns.
332
- (default="true")
333
- args - the arguments to pass to the program. (default is none)
334
- env - environment variables to set. (default is none)
335
- -->
336
- <!-- This example shows how RunExecutableListener could be used
337
- with the script based replication...
338
- http://wiki.apache.org/solr/CollectionDistribution
339
- -->
340
- <!--
341
- <listener event="postCommit" class="solr.RunExecutableListener">
342
- <str name="exe">solr/bin/snapshooter</str>
343
- <str name="dir">.</str>
344
- <bool name="wait">true</bool>
345
- <arr name="args"> <str>arg1</str> <str>arg2</str> </arr>
346
- <arr name="env"> <str>MYVAR=val1</str> </arr>
347
- </listener>
348
- -->
349
- </updateHandler>
350
-
351
- <!-- IndexReaderFactory
352
-
353
- Use the following format to specify a custom IndexReaderFactory,
354
- which allows for alternate IndexReader implementations.
355
-
356
- ** Experimental Feature **
357
-
358
- Please note - Using a custom IndexReaderFactory may prevent
359
- certain other features from working. The API to
360
- IndexReaderFactory may change without warning or may even be
361
- removed from future releases if the problems cannot be
362
- resolved.
363
-
364
-
365
- ** Features that may not work with custom IndexReaderFactory **
366
-
367
- The ReplicationHandler assumes a disk-resident index. Using a
368
- custom IndexReader implementation may cause incompatibility
369
- with ReplicationHandler and may cause replication to not work
370
- correctly. See SOLR-1366 for details.
371
-
372
- -->
373
- <!--
374
- <indexReaderFactory name="IndexReaderFactory" class="package.class">
375
- <str name="someArg">Some Value</str>
376
- </indexReaderFactory >
377
- -->
378
- <!-- By explicitly declaring the Factory, the termIndexDivisor can
379
- be specified.
151
+ dir - dir to use as the current working directory. default="."
152
+ wait - the calling thread waits until the executable returns. default="true"
153
+ args - the arguments to pass to the program. default=nothing
154
+ env - environment variables to set. default=nothing
155
+ -->
156
+ <!-- A postCommit event is fired after every commit or optimize command
157
+ <listener event="postCommit" class="solr.RunExecutableListener">
158
+ <str name="exe">solr/bin/snapshooter</str>
159
+ <str name="dir">.</str>
160
+ <bool name="wait">true</bool>
161
+ <arr name="args"> <str>arg1</str> <str>arg2</str> </arr>
162
+ <arr name="env"> <str>MYVAR=val1</str> </arr>
163
+ </listener>
380
164
  -->
381
- <!--
382
- <indexReaderFactory name="IndexReaderFactory"
383
- class="solr.StandardIndexReaderFactory">
384
- <int name="setTermIndexDivisor">12</int>
385
- </indexReaderFactory >
165
+ <!-- A postOptimize event is fired only after every optimize command, useful
166
+ in conjunction with index distribution to only distribute optimized indicies
167
+ <listener event="postOptimize" class="solr.RunExecutableListener">
168
+ <str name="exe">snapshooter</str>
169
+ <str name="dir">solr/bin</str>
170
+ <bool name="wait">true</bool>
171
+ </listener>
386
172
  -->
387
173
 
174
+ </updateHandler>
175
+
388
176
 
389
177
  <query>
390
- <!-- Max Boolean Clauses
391
-
392
- Maximum number of clauses in each BooleanQuery, an exception
393
- is thrown if exceeded.
394
-
395
- ** WARNING **
396
-
397
- This option actually modifies a global Lucene property that
398
- will affect all SolrCores. If multiple solrconfig.xml files
399
- disagree on this property, the value at any given moment will
400
- be based on the last SolrCore to be initialized.
401
-
402
- -->
178
+ <!-- Maximum number of clauses in a boolean query... can affect
179
+ range or prefix queries that expand to big boolean
180
+ queries. An exception is thrown if exceeded. -->
403
181
  <maxBooleanClauses>1024</maxBooleanClauses>
404
182
 
405
-
406
- <!-- Solr Internal Query Caches
407
-
408
- There are two implementations of cache available for Solr,
409
- LRUCache, based on a synchronized LinkedHashMap, and
410
- FastLRUCache, based on a ConcurrentHashMap.
411
-
412
- FastLRUCache has faster gets and slower puts in single
413
- threaded operation and thus is generally faster than LRUCache
414
- when the hit ratio of the cache is high (> 75%), and may be
415
- faster under other scenarios on multi-cpu systems.
416
- -->
417
-
418
- <!-- Filter Cache
419
-
420
- Cache used by SolrIndexSearcher for filters (DocSets),
421
- unordered sets of *all* documents that match a query. When a
422
- new searcher is opened, its caches may be prepopulated or
423
- "autowarmed" using data from caches in the old searcher.
424
- autowarmCount is the number of items to prepopulate. For
425
- LRUCache, the autowarmed items will be the most recently
426
- accessed items.
427
-
428
- Parameters:
429
- class - the SolrCache implementation LRUCache or
430
- (LRUCache or FastLRUCache)
431
- size - the maximum number of entries in the cache
432
- initialSize - the initial capacity (number of entries) of
433
- the cache. (see java.util.HashMap)
434
- autowarmCount - the number of entries to prepopulate from
435
- and old cache.
436
- -->
437
- <filterCache class="solr.FastLRUCache"
438
- size="512"
439
- initialSize="512"
440
- autowarmCount="0"/>
441
-
442
- <!-- Query Result Cache
443
-
444
- Caches results of searches - ordered lists of document ids
445
- (DocList) based on a query, a sort, and the range of documents requested.
446
- -->
447
- <queryResultCache class="solr.LRUCache"
448
- size="512"
449
- initialSize="512"
450
- autowarmCount="0"/>
451
-
452
- <!-- Document Cache
453
-
454
- Caches Lucene Document objects (the stored fields for each
455
- document). Since Lucene internal document ids are transient,
456
- this cache will not be autowarmed.
457
- -->
458
- <documentCache class="solr.LRUCache"
459
- size="512"
460
- initialSize="512"
461
- autowarmCount="0"/>
462
183
 
463
- <!-- Field Value Cache
464
-
465
- Cache used to hold field values that are quickly accessible
466
- by document id. The fieldValueCache is created by default
467
- even if not configured here.
468
- -->
469
- <!--
470
- <fieldValueCache class="solr.FastLRUCache"
471
- size="512"
472
- autowarmCount="128"
473
- showItems="32" />
474
- -->
475
-
476
- <!-- Custom Cache
477
-
478
- Example of a generic cache. These caches may be accessed by
479
- name through SolrIndexSearcher.getCache(),cacheLookup(), and
480
- cacheInsert(). The purpose is to enable easy caching of
481
- user/application level data. The regenerator argument should
482
- be specified as an implementation of solr.CacheRegenerator
483
- if autowarming is desired.
484
- -->
485
- <!--
486
- <cache name="myUserCache"
487
- class="solr.LRUCache"
488
- size="4096"
489
- initialSize="1024"
490
- autowarmCount="1024"
491
- regenerator="com.mycompany.MyRegenerator"
492
- />
493
- -->
494
-
495
-
496
- <!-- Lazy Field Loading
497
-
498
- If true, stored fields that are not requested will be loaded
499
- lazily. This can result in a significant speed improvement
500
- if the usual case is to not load all stored fields,
501
- especially if the skipped fields are large compressed text
502
- fields.
184
+ <!-- Cache used by SolrIndexSearcher for filters (DocSets),
185
+ unordered sets of *all* documents that match a query.
186
+ When a new searcher is opened, its caches may be prepopulated
187
+ or "autowarmed" using data from caches in the old searcher.
188
+ autowarmCount is the number of items to prepopulate. For LRUCache,
189
+ the autowarmed items will be the most recently accessed items.
190
+ Parameters:
191
+ class - the SolrCache implementation (currently only LRUCache)
192
+ size - the maximum number of entries in the cache
193
+ initialSize - the initial capacity (number of entries) of
194
+ the cache. (seel java.util.HashMap)
195
+ autowarmCount - the number of entries to prepopulate from
196
+ and old cache.
197
+ -->
198
+ <filterCache
199
+ class="solr.LRUCache"
200
+ size="512"
201
+ initialSize="512"
202
+ autowarmCount="128"/>
203
+
204
+ <!-- queryResultCache caches results of searches - ordered lists of
205
+ document ids (DocList) based on a query, a sort, and the range
206
+ of documents requested. -->
207
+ <queryResultCache
208
+ class="solr.LRUCache"
209
+ size="512"
210
+ initialSize="512"
211
+ autowarmCount="32"/>
212
+
213
+ <!-- documentCache caches Lucene Document objects (the stored fields for each document).
214
+ Since Lucene internal document ids are transient, this cache will not be autowarmed. -->
215
+ <documentCache
216
+ class="solr.LRUCache"
217
+ size="512"
218
+ initialSize="512"
219
+ autowarmCount="0"/>
220
+
221
+ <!-- If true, stored fields that are not requested will be loaded lazily.
222
+
223
+ This can result in a significant speed improvement if the usual case is to
224
+ not load all stored fields, especially if the skipped fields are large compressed
225
+ text fields.
503
226
  -->
504
227
  <enableLazyFieldLoading>true</enableLazyFieldLoading>
505
228
 
506
- <!-- Use Filter For Sorted Query
507
-
508
- A possible optimization that attempts to use a filter to
509
- satisfy a search. If the requested sort does not include
510
- score, then the filterCache will be checked for a filter
511
- matching the query. If found, the filter will be used as the
512
- source of document ids, and then the sort will be applied to
513
- that.
514
-
515
- For most situations, this will not be useful unless you
516
- frequently get the same search repeatedly with different sort
517
- options, and none of them ever use "score"
518
- -->
519
- <!--
520
- <useFilterForSortedQuery>true</useFilterForSortedQuery>
521
- -->
522
-
523
- <!-- Result Window Size
524
-
525
- An optimization for use with the queryResultCache. When a search
526
- is requested, a superset of the requested number of document ids
527
- are collected. For example, if a search for a particular query
528
- requests matching documents 10 through 19, and queryWindowSize is 50,
529
- then documents 0 through 49 will be collected and cached. Any further
530
- requests in that range can be satisfied via the cache.
531
- -->
532
- <queryResultWindowSize>20</queryResultWindowSize>
533
-
534
- <!-- Maximum number of documents to cache for any entry in the
535
- queryResultCache.
536
- -->
537
- <queryResultMaxDocsCached>200</queryResultMaxDocsCached>
538
-
539
- <!-- Query Related Event Listeners
540
-
541
- Various IndexSearcher related events can trigger Listeners to
542
- take actions.
543
-
544
- newSearcher - fired whenever a new searcher is being prepared
545
- and there is a current searcher handling requests (aka
546
- registered). It can be used to prime certain caches to
547
- prevent long request times for certain requests.
548
-
549
- firstSearcher - fired whenever a new searcher is being
550
- prepared but there is no current registered searcher to handle
551
- requests or to gain autowarming data from.
229
+ <!-- Example of a generic cache. These caches may be accessed by name
230
+ through SolrIndexSearcher.getCache(),cacheLookup(), and cacheInsert().
231
+ The purpose is to enable easy caching of user/application level data.
232
+ The regenerator argument should be specified as an implementation
233
+ of solr.search.CacheRegenerator if autowarming is desired. -->
234
+ <!--
235
+ <cache name="myUserCache"
236
+ class="solr.LRUCache"
237
+ size="4096"
238
+ initialSize="1024"
239
+ autowarmCount="1024"
240
+ regenerator="org.mycompany.mypackage.MyRegenerator"
241
+ />
242
+ -->
243
+
244
+ <!-- An optimization that attempts to use a filter to satisfy a search.
245
+ If the requested sort does not include score, then the filterCache
246
+ will be checked for a filter matching the query. If found, the filter
247
+ will be used as the source of document ids, and then the sort will be
248
+ applied to that.
249
+ <useFilterForSortedQuery>true</useFilterForSortedQuery>
250
+ -->
552
251
 
553
-
554
- -->
252
+ <!-- An optimization for use with the queryResultCache. When a search
253
+ is requested, a superset of the requested number of document ids
254
+ are collected. For example, if a search for a particular query
255
+ requests matching documents 10 through 19, and queryWindowSize is 50,
256
+ then documents 0 through 49 will be collected and cached. Any further
257
+ requests in that range can be satisfied via the cache. -->
258
+ <queryResultWindowSize>50</queryResultWindowSize>
259
+
260
+ <!-- Maximum number of documents to cache for any entry in the
261
+ queryResultCache. -->
262
+ <queryResultMaxDocsCached>200</queryResultMaxDocsCached>
263
+
264
+ <!-- This entry enables an int hash representation for filters (DocSets)
265
+ when the number of items in the set is less than maxSize. For smaller
266
+ sets, this representation is more memory efficient, more efficient to
267
+ iterate over, and faster to take intersections. -->
268
+ <HashDocSet maxSize="3000" loadFactor="0.75"/>
269
+
270
+ <!-- a newSearcher event is fired whenever a new searcher is being prepared
271
+ and there is a current searcher handling requests (aka registered). -->
555
272
  <!-- QuerySenderListener takes an array of NamedList and executes a
556
- local query request for each NamedList in sequence.
557
- -->
273
+ local query request for each NamedList in sequence. -->
558
274
  <listener event="newSearcher" class="solr.QuerySenderListener">
559
275
  <arr name="queries">
560
- <lst>
561
- <str name="q">hydrus</str>
562
- </lst>
276
+ <lst> <str name="q">solr</str> <str name="start">0</str> <str name="rows">10</str> </lst>
277
+ <lst> <str name="q">rocks</str> <str name="start">0</str> <str name="rows">10</str> </lst>
278
+ <lst><str name="q">static newSearcher warming query from solrconfig.xml</str></lst>
563
279
  </arr>
564
280
  </listener>
281
+
282
+ <!-- a firstSearcher event is fired whenever a new searcher is being
283
+ prepared but there is no current registered searcher to handle
284
+ requests or to gain autowarming data from. -->
565
285
  <listener event="firstSearcher" class="solr.QuerySenderListener">
566
286
  <arr name="queries">
567
- <lst>
568
- <str name="q">hydrus</str>
569
- </lst>
287
+ <lst> <str name="q">fast_warm</str> <str name="start">0</str> <str name="rows">10</str> </lst>
288
+ <lst><str name="q">static firstSearcher warming query from solrconfig.xml</str></lst>
570
289
  </arr>
571
290
  </listener>
572
291
 
573
- <!-- Use Cold Searcher
574
-
575
- If a search request comes in and there is no current
576
- registered searcher, then immediately register the still
577
- warming searcher and use it. If "false" then all requests
578
- will block until the first searcher is done warming.
579
- -->
292
+ <!-- If a search request comes in and there is no current registered searcher,
293
+ then immediately register the still warming searcher and use it. If
294
+ "false" then all requests will block until the first searcher is done
295
+ warming. -->
580
296
  <useColdSearcher>false</useColdSearcher>
581
297
 
582
- <!-- Max Warming Searchers
583
-
584
- Maximum number of searchers that may be warming in the
585
- background concurrently. An error is returned if this limit
586
- is exceeded.
587
-
588
- Recommend values of 1-2 for read-only slaves, higher for
589
- masters w/o cache warming.
590
- -->
298
+ <!-- Maximum number of searchers that may be warming in the background
299
+ concurrently. An error is returned if this limit is exceeded. Recommend
300
+ 1-2 for read-only slaves, higher for masters w/o cache warming. -->
591
301
  <maxWarmingSearchers>2</maxWarmingSearchers>
592
302
 
593
303
  </query>
594
304
 
595
-
596
- <!-- Request Dispatcher
597
-
598
- This section contains instructions for how the SolrDispatchFilter
599
- should behave when processing requests for this SolrCore.
600
-
601
- handleSelect affects the behavior of requests such as /select?qt=XXX
602
-
603
- handleSelect="true" will cause the SolrDispatchFilter to process
604
- the request and will result in consistent error handling and
605
- formatting for all types of requests.
606
-
607
- handleSelect="false" will cause the SolrDispatchFilter to
608
- ignore "/select" requests and fallback to using the legacy
609
- SolrServlet and it's Solr 1.1 style error formatting
305
+ <!--
306
+ Let the dispatch filter handler /select?qt=XXX
307
+ handleSelect=true will use consistent error handling for /select and /update
308
+ handleSelect=false will use solr1.1 style error formatting
610
309
  -->
611
310
  <requestDispatcher handleSelect="true" >
612
- <!-- Request Parsing
613
-
614
- These settings indicate how Solr Requests may be parsed, and
615
- what restrictions may be placed on the ContentStreams from
616
- those requests
617
-
618
- enableRemoteStreaming - enables use of the stream.file
619
- and stream.url parameters for specifying remote streams.
620
-
621
- multipartUploadLimitInKB - specifies the max size of
622
- Multipart File Uploads that Solr will allow in a Request.
623
-
624
- *** WARNING ***
625
- The settings below authorize Solr to fetch remote files, You
626
- should make sure your system has some authentication before
627
- using enableRemoteStreaming="true"
628
-
629
- -->
630
- <requestParsers enableRemoteStreaming="true"
631
- multipartUploadLimitInKB="2048000" />
632
-
633
- <!-- HTTP Caching
634
-
635
- Set HTTP caching related parameters (for proxy caches and clients).
636
-
637
- The options below instruct Solr not to output any HTTP Caching
638
- related headers
639
- -->
640
- <httpCaching never304="true" />
641
- <!-- If you include a <cacheControl> directive, it will be used to
642
- generate a Cache-Control header (as well as an Expires header
643
- if the value contains "max-age=")
644
-
645
- By default, no Cache-Control header is generated.
646
-
647
- You can use the <cacheControl> option even if you have set
648
- never304="true"
649
- -->
650
- <!--
651
- <httpCaching never304="true" >
652
- <cacheControl>max-age=30, public</cacheControl>
653
- </httpCaching>
654
- -->
655
- <!-- To enable Solr to respond with automatically generated HTTP
656
- Caching headers, and to response to Cache Validation requests
657
- correctly, set the value of never304="false"
658
-
659
- This will cause Solr to generate Last-Modified and ETag
660
- headers based on the properties of the Index.
661
-
662
- The following options can also be specified to affect the
663
- values of these headers...
664
-
665
- lastModFrom - the default value is "openTime" which means the
666
- Last-Modified value (and validation against If-Modified-Since
667
- requests) will all be relative to when the current Searcher
668
- was opened. You can change it to lastModFrom="dirLastMod" if
669
- you want the value to exactly correspond to when the physical
670
- index was last modified.
671
-
672
- etagSeed="..." is an option you can change to force the ETag
673
- header (and validation against If-None-Match requests) to be
674
- different even if the index has not changed (ie: when making
675
- significant changes to your config file)
676
-
677
- (lastModifiedFrom and etagSeed are both ignored if you use
678
- the never304="true" option)
679
- -->
680
- <!--
681
- <httpCaching lastModifiedFrom="openTime"
682
- etagSeed="Solr">
683
- <cacheControl>max-age=30, public</cacheControl>
684
- </httpCaching>
685
- -->
686
- </requestDispatcher>
687
-
688
- <!-- Request Handlers
689
-
690
- http://wiki.apache.org/solr/SolrRequestHandler
691
-
692
- incoming queries will be dispatched to the correct handler
693
- based on the path or the qt (query type) param.
694
-
695
- Names starting with a '/' are accessed with the a path equal to
696
- the registered name. Names without a leading '/' are accessed
697
- with: http://host/app/[core/]select?qt=name
698
-
699
- If a /select request is processed with out a qt param
700
- specified, the requestHandler that declares default="true" will
701
- be used.
702
-
703
- If a Request Handler is declared with startup="lazy", then it will
704
- not be initialized until the first request that uses it.
705
-
706
- -->
707
- <!-- SearchHandler
708
-
709
- http://wiki.apache.org/solr/SearchHandler
710
-
711
- For processing Search Queries, the primary Request Handler
712
- provided with Solr is "SearchHandler" It delegates to a sequent
713
- of SearchComponents (see below) and supports distributed
714
- queries across multiple shards
715
- -->
716
-
717
- <requestHandler name="search" class="solr.SearchHandler" default="true">
718
- <!-- default values for query parameters can be specified, these
719
- will be overridden by parameters in the request
720
- -->
721
- <lst name="defaults">
722
- <str name="defType">dismax</str>
723
- <str name="echoParams">explicit</str>
724
- <str name="q.alt">*:*</str>
725
- <str name="mm">2&lt;-1 5&lt;-2 6&lt;90%</str>
726
- <!-- this qf and pf are used by default, if not otherwise specified by
727
- client. The default blacklight_config will use these for the
728
- "keywords" search. See the author_qf/author_pf, title_qf, etc
729
- below, which the default blacklight_config will specify for
730
- those searches. You may also be interested in:
731
- http://wiki.apache.org/solr/LocalParams
311
+ <!--Make sure your system has some authentication before enabling remote streaming! -->
312
+ <requestParsers enableRemoteStreaming="false" multipartUploadLimitInKB="2048" />
313
+
314
+ <!-- Set HTTP caching related parameters (for proxy caches and clients).
315
+
316
+ To get the behaviour of Solr 1.2 (ie: no caching related headers)
317
+ use the never304="true" option and do not specify a value for
318
+ <cacheControl>
319
+ -->
320
+ <!-- <httpCaching never304="true"> -->
321
+ <httpCaching lastModifiedFrom="openTime"
322
+ etagSeed="Solr">
323
+ <!-- lastModFrom="openTime" is the default, the Last-Modified value
324
+ (and validation against If-Modified-Since requests) will all be
325
+ relative to when the current Searcher was opened.
326
+ You can change it to lastModFrom="dirLastMod" if you want the
327
+ value to exactly corrispond to when the physical index was last
328
+ modified.
329
+
330
+ etagSeed="..." is an option you can change to force the ETag
331
+ header (and validation against If-None-Match requests) to be
332
+ differnet even if the index has not changed (ie: when making
333
+ significant changes to your config file)
334
+
335
+ lastModifiedFrom and etagSeed are both ignored if you use the
336
+ never304="true" option.
732
337
  -->
733
- <str name="qf">
734
- id
735
- title_t^25000
736
- text
737
- active_fedora_model_s
738
- object_type_facet
739
- </str>
740
- <str name="pf">
741
- id
742
- title_t^250000
743
- text^10
744
- active_fedora_model_s
745
- object_type_facet
746
- </str>
747
-
748
- <str name="author_qf">
749
- author_unstem_search^200
750
- author_addl_unstem_search^50
751
- author_t^20
752
- author_addl_t
753
- </str>
754
- <str name="author_pf">
755
- author_unstem_search^2000
756
- author_addl_unstem_search^500
757
- author_t^200
758
- author_addl_t^10
759
- </str>
760
- <str name="title_qf">
761
- title_unstem_search^50000
762
- subtitle_unstem_search^25000
763
- title_addl_unstem_search^10000
764
- title_t^5000
765
- subtitle_t^2500
766
- title_addl_t^100
767
- title_added_entry_unstem_search^50
768
- title_added_entry_t^10
769
- title_series_unstem_search^5
770
- title_series_t
771
- </str>
772
- <str name="title_pf">
773
- title_unstem_search^500000
774
- subtitle_unstem_search^250000
775
- title_addl_unstem_search^100000
776
- title_t^50000
777
- subtitle_t^25000
778
- title_addl_t^1000
779
- title_added_entry_unstem_search^500
780
- title_added_entry_t^100
781
- title_series_t^50
782
- title_series_unstem_search^10
783
- </str>
784
- <str name="subject_qf">
785
- subject_topic_unstem_search^200
786
- subject_unstem_search^125
787
- subject_topic_facet^100
788
- subject_t^50
789
- subject_addl_unstem_search^10
790
- subject_addl_t
791
- </str>
792
- <str name="subject_pf">
793
- subject_topic_unstem_search^2000
794
- subject_unstem_search^1250
795
- subject_t^1000
796
- subject_topic_facet^500
797
- subject_addl_unstem_search^100
798
- subject_addl_t^10
799
- </str>
800
-
801
- <int name="ps">3</int>
802
- <float name="tie">0.01</float>
803
-
804
- <!-- NOT using marc_display because it is large and will slow things down for search results -->
805
- <str name="fl">
806
- *,
807
- score,
808
- </str>
809
-
810
- <str name="facet">true</str>
811
- <str name="facet.mincount">1</str>
812
- <str name="facet.limit">10</str>
813
- <str name="facet.field">format</str>
814
- <str name="facet.field">lc_1letter_facet</str>
815
- <str name="facet.field">lc_alpha_facet</str>
816
- <str name="facet.field">lc_b4cutter_facet</str>
817
- <str name="facet.field">language_facet</str>
818
- <str name="facet.field">pub_date</str>
819
- <str name="facet.field">subject_era_facet</str>
820
- <str name="facet.field">subject_geo_facet</str>
821
- <str name="facet.field">subject_topic_facet</str>
822
-
823
- <str name="spellcheck">true</str>
824
- <str name="spellcheck.dictionary">default</str>
825
- <str name="spellcheck.onlyMorePopular">true</str>
826
- <str name="spellcheck.extendedResults">true</str>
827
- <str name="spellcheck.collate">false</str>
828
- <str name="spellcheck.count">5</str>
829
-
830
- </lst>
831
- <!-- In addition to defaults, "appends" params can be specified
832
- to identify values which should be appended to the list of
833
- multi-val params from the query (or the existing "defaults").
834
- -->
835
- <!-- In this example, the param "fq=instock:true" would be appended to
836
- any query time fq params the user may specify, as a mechanism for
837
- partitioning the index, independent of any user selected filtering
838
- that may also be desired (perhaps as a result of faceted searching).
839
-
840
- NOTE: there is *absolutely* nothing a client can do to prevent these
841
- "appends" values from being used, so don't use this mechanism
842
- unless you are sure you always want it.
843
- -->
844
- <!--
845
- <lst name="appends">
846
- <str name="fq">inStock:true</str>
847
- </lst>
848
- -->
849
- <!-- "invariants" are a way of letting the Solr maintainer lock down
850
- the options available to Solr clients. Any params values
851
- specified here are used regardless of what values may be specified
852
- in either the query, the "defaults", or the "appends" params.
853
-
854
- In this example, the facet.field and facet.query params would
855
- be fixed, limiting the facets clients can use. Faceting is
856
- not turned on by default - but if the client does specify
857
- facet=true in the request, these are the only facets they
858
- will be able to see counts for; regardless of what other
859
- facet.field or facet.query params they may specify.
860
-
861
- NOTE: there is *absolutely* nothing a client can do to prevent these
862
- "invariants" values from being used, so don't use this mechanism
863
- unless you are sure you always want it.
864
- -->
865
- <!--
866
- <lst name="invariants">
867
- <str name="facet.field">cat</str>
868
- <str name="facet.field">manu_exact</str>
869
- <str name="facet.query">price:[* TO 500]</str>
870
- <str name="facet.query">price:[500 TO *]</str>
871
- </lst>
872
- -->
873
- <!-- If the default list of SearchComponents is not desired, that
874
- list can either be overridden completely, or components can be
875
- prepended or appended to the default list. (see below)
876
- -->
877
- <!--
878
- <arr name="components">
879
- <str>nameOfCustomComponent1</str>
880
- <str>nameOfCustomComponent2</str>
881
- </arr>
882
- -->
883
- <arr name="last-components">
884
- <str>spellcheck</str>
885
- </arr>
338
+ <!-- If you include a <cacheControl> directive, it will be used to
339
+ generate a Cache-Control header, as well as an Expires header
340
+ if the value contains "max-age="
341
+
342
+ By default, no Cache-Control header is generated.
343
+
344
+ You can use the <cacheControl> option even if you have set
345
+ never304="true"
346
+ -->
347
+ <!-- <cacheControl>max-age=30, public</cacheControl> -->
348
+ </httpCaching>
349
+ </requestDispatcher>
350
+
886
351
 
887
- </requestHandler>
888
-
889
-
890
- <!-- Hydra Additions Start -->
891
-
892
- <requestHandler name="standard" class="solr.SearchHandler">
352
+ <!-- requestHandler plugins... incoming queries will be dispatched to the
353
+ correct handler based on the path or the qt (query type) param.
354
+ Names starting with a '/' are accessed with the a path equal to the
355
+ registered name. Names without a leading '/' are accessed with:
356
+ http://host/app/select?qt=name
357
+ If no qt is defined, the requestHandler that declares default="true"
358
+ will be used.
359
+ -->
360
+ <requestHandler name="standard" class="solr.SearchHandler" default="true">
361
+ <!-- default values for query parameters -->
893
362
  <lst name="defaults">
894
363
  <str name="echoParams">explicit</str>
364
+ <!--
365
+ <int name="rows">10</int>
366
+ <str name="fl">*</str>
367
+ <str name="version">2.1</str>
368
+ -->
895
369
  </lst>
896
370
  </requestHandler>
897
371
 
898
- <requestHandler name="fulltext" class="solr.SearchHandler" >
372
+
373
+ <requestHandler name="search" class="solr.SearchHandler" default="true" >
899
374
  <lst name="defaults">
900
- <str name="defType">dismax</str>
901
- <str name="facet">on</str>
375
+ <str name="defType">dismax</str>
376
+ <str name="facet">on</str>
902
377
  <str name="facet.mincount">1</str>
903
- <str name="echoParams">explicit</str>
904
- <float name="tie">0.01</float>
905
- <str name="qf">id^0.8 id_t^0.8 format text^0.3</str>
906
- <str name="pf">id^0.9 id_t^0.9 text^0.5</str>
378
+ <str name="echoParams">explicit</str>
379
+ <float name="tie">0.01</float>
380
+ <str name="qf">id^0.8 id_t^0.8 format text^0.3</str>
381
+ <str name="pf">id^0.9 id_t^0.9 text^0.5</str>
907
382
  <str name="fl">
908
- id,text,title_t,date_t,year_facet,month_facet,medium_t,series_facet,box_facet,folder_facet
909
- </str>
910
- <str name="mm"> 2&lt;-1 5&lt;-2 6&lt;90% </str>
911
- <int name="ps">100</int>
912
- <str name="q.alt">*:*</str>
383
+ id,text,title_t,date_t,year_facet,month_facet,medium_t,series_facet,box_facet,folder_facet,has_model_s
384
+ </str>
385
+ <str name="mm">
386
+ 2&lt;-1 5&lt;-2 6&lt;90%
387
+ </str>
388
+ <int name="ps">100</int>
389
+ <str name="q.alt">*:*</str>
390
+ <!-- example highlighter config, enable per-query with hl=true -->
391
+ <str name="hl.fl">text features name</str>
392
+ <!-- for this field, we want no fragmenting, just highlighting -->
393
+ <str name="f.name.hl.fragsize">0</str>
394
+ <!-- instructs Solr to return the field itself if no query terms are
395
+ found -->
396
+ <str name="f.name.hl.alternateField">name</str>
397
+ <str name="f.text.hl.fragmenter">regex</str> <!-- defined below -->
913
398
  </lst>
914
399
  </requestHandler>
915
400
 
@@ -934,52 +419,69 @@
934
419
  </str>
935
420
  </lst>
936
421
  </requestHandler>
937
-
422
+
938
423
  <requestHandler name="public_search" class="solr.SearchHandler" >
939
424
  <lst name="defaults">
940
- <!-- Making defType lucene to exclude file assets -->
941
- <str name="defType">lucene</str>
942
- <!-- lucene params -->
943
- <str name="df">has_model_s</str>
944
- <str name="q.op">AND</str>
945
- <!-- dismax params -->
946
- <str name="mm"> 2&lt;-1 5&lt;-2 6&lt;90% </str>
947
- <str name="q.alt">*:*</str>
948
- <str name="qf">id^0.8 id_t^0.8 format text^0.3 journal_issn_t</str>
949
- <str name="pf">id^0.9 id_t^0.9 text^0.5 journal_issn_t</str>
950
- <str name="qf_dismax">id^0.8 id_t^0.8 format text^0.3</str>
951
- <str name="pf_dismax">id^0.9 id_t^0.9 text^0.5</str>
952
- <int name="ps">100</int>
953
- <float name="tie">0.01</float>
954
- <!-- general -->
425
+
955
426
  <str name="facet">on</str>
956
- <str name="facet.mincount">1</str>
957
- <str name="echoParams">explicit</str>
958
- <str name="fl">
959
- *,score
960
- </str>
427
+ <str name="facet.mincount">1</str>
428
+
429
+
430
+ <str name="defType">dismax</str>
431
+ <str name="echoParams">explicit</str>
432
+ <float name="tie">0.01</float>
433
+ <str name="qf">id^0.8 id_t^0.8 format text^0.3</str>
434
+ <str name="pf">id^0.9 id_t^0.9 text^0.5</str>
435
+ <str name="fl">
436
+ id,text,title_t,date_t,year_facet,month_facet,medium_t,series_facet,box_facet,folder_facet,has_model_s
437
+ </str>
438
+ <str name="mm">
439
+ 2&lt;-1 5&lt;-2 6&lt;90%
440
+ </str>
441
+ <int name="ps">100</int>
442
+ <str name="q.alt">*:*</str>
443
+ <!-- example highlighter config, enable per-query with hl=true -->
444
+ <str name="hl.fl">text features name</str>
445
+ <!-- for this field, we want no fragmenting, just highlighting -->
446
+ <str name="f.name.hl.fragsize">0</str>
447
+ <!-- instructs Solr to return the field itself if no query terms are
448
+ found -->
449
+ <str name="f.name.hl.alternateField">name</str>
450
+ <str name="f.text.hl.fragmenter">regex</str> <!-- defined below -->
451
+ </lst>
452
+ <lst name="appends">
453
+ <str name="fq">access_t:public</str>
961
454
  </lst>
962
455
  </requestHandler>
963
-
456
+
964
457
  <requestHandler name="fulltext" class="solr.SearchHandler" >
965
458
  <lst name="defaults">
966
459
  <str name="defType">dismax</str>
967
- <str name="facet">on</str>
968
- <str name="facet.mincount">1</str>
969
- <str name="echoParams">explicit</str>
460
+ <str name="facet">on</str>
461
+ <str name="facet.mincount">1</str>
462
+ <str name="echoParams">explicit</str>
970
463
  <float name="tie">0.01</float>
971
464
  <str name="qf">id^0.8 id_t^0.8 format text^0.3</str>
972
- <str name="pf">id^0.9 id_t^0.9 text^0.5</str>
973
- <str name="fl">
465
+ <str name="pf">id^0.9 id_t^0.9 text^0.5</str>
466
+ <str name="fl">
974
467
  id,text,title_t,date_t,year_facet,month_facet,medium_t,series_facet,box_facet,folder_facet
975
- </str>
976
- <str name="mm"> 2&lt;-1 5&lt;-2 6&lt;90% </str>
977
- <int name="ps">100</int>
978
- <str name="q.alt">*:*</str>
468
+ </str>
469
+ <str name="mm">
470
+ 2&lt;-1 5&lt;-2 6&lt;90%
471
+ </str>
472
+ <int name="ps">100</int>
473
+ <str name="q.alt">*:*</str>
474
+ <!-- example highlighter config, enable per-query with hl=true -->
475
+ <str name="hl.fl">text features name</str>
476
+ <!-- for this field, we want no fragmenting, just highlighting -->
477
+ <str name="f.name.hl.fragsize">0</str>
478
+ <!-- instructs Solr to return the field itself if no query terms are
479
+ found -->
480
+ <str name="f.name.hl.alternateField">name</str>
481
+ <str name="f.text.hl.fragmenter">regex</str> <!-- defined below -->
979
482
  </lst>
980
483
  </requestHandler>
981
- <!-- Hydra Additions End -->
982
-
484
+
983
485
  <!-- for requests to get a single document; use id=666 instead of q=id:666 -->
984
486
  <requestHandler name="document" class="solr.SearchHandler" >
985
487
  <lst name="defaults">
@@ -987,652 +489,210 @@
987
489
  <str name="fl">*</str>
988
490
  <str name="rows">1</str>
989
491
  <str name="q">{!raw f=id v=$id}</str> <!-- use id=666 instead of q=id:666 -->
492
+
493
+ <str name="facet">on</str>
494
+ <str name="facet.mincount">1</str>
495
+
496
+ <str name="facet.field">collection_facet</str>
497
+ <str name="facet.field">technology_facet</str>
498
+ <str name="facet.field">person_facet</str>
499
+ <!-- <str name="facet.field">title_t</str> -->
500
+ <str name="facet.field">city_facet</str>
501
+ <str name="facet.field">organization_facet</str>
502
+ <str name="facet.field">company_facet</str>
503
+ <str name="facet.field">year_facet</str>
504
+ <str name="facet.field">state_facet</str>
505
+ <str name="facet.field">series_facet</str>
506
+ <str name="facet.field">box_facet</str>
507
+ <str name="facet.field">folder_facet</str>
508
+ <str name="facet.field">donor_tags_facet</str>
509
+ <str name="facet.field">archivist_tags_facet</str>
510
+
990
511
  </lst>
991
512
  </requestHandler>
992
-
993
- <!-- For Advanced Search -->
994
- <requestHandler name="advanced" class="solr.SearchHandler" >
513
+
514
+ <!-- DisMaxRequestHandler allows easy searching across multiple fields
515
+ for simple user-entered phrases. It's implementation is now
516
+ just the standard SearchHandler with a default query type
517
+ of "dismax".
518
+ see http://wiki.apache.org/solr/DisMaxRequestHandler
519
+ -->
520
+ <requestHandler name="dismax" class="solr.SearchHandler" >
995
521
  <lst name="defaults">
996
- <str name="defType">lucene</str>
997
- <str name="echoParams">explicit</str>
998
- <str name="sort">score desc, pub_date_sort desc, title_sort asc</str>
999
- <str name="df">text</str>
1000
- <str name="q.op">AND</str>
1001
- <str name="qs">1</str>
1002
-
1003
- <!-- used for dismax query parser -->
1004
- <str name="mm">1</str>
1005
- <str name="ps">3</str>
1006
- <float name="tie">0.01</float>
1007
-
1008
- <!-- for user query terms in author text box -->
1009
- <str name="qf_author">
1010
- author_unstem_search^200
1011
- author_addl_unstem_search^50
1012
- author_t^20
1013
- author_addl_t
1014
- </str>
1015
- <str name="pf_author">
1016
- author_unstem_search^2000
1017
- author_addl_unstem_search^500
1018
- author_t^200
1019
- author_addl_t^10
1020
- </str>
1021
-
1022
- <!-- for user query terms in title text box -->
1023
- <str name="qf_title">
1024
- title_unstem_search^50000
1025
- subtitle_unstem_search^25000
1026
- title_addl_unstem_search^10000
1027
- title_t^5000
1028
- subtitle_t^2500
1029
- title_addl_t^100
1030
- title_added_entry_unstem_search^50
1031
- title_added_entry_t^10
1032
- title_series_unstem_search^5
1033
- title_series_t
1034
- </str>
1035
- <str name="pf_title">
1036
- title_unstem_search^500000
1037
- subtitle_unstem_search^250000
1038
- title_addl_unstem_search^100000
1039
- title_t^50000
1040
- subtitle_t^25000
1041
- title_addl_t^1000
1042
- title_added_entry_unstem_search^500
1043
- title_added_entry_t^100
1044
- title_series_t^50
1045
- title_series_unstem_search^10
1046
- </str>
1047
-
1048
- <!-- for user query terms in subject text box -->
1049
- <str name="qf_subject">
1050
- subject_topic_unstem_search^200
1051
- subject_unstem_search^125
1052
- subject_topic_facet^100
1053
- subject_t^50
1054
- subject_addl_unstem_search^10
1055
- subject_addl_t
1056
- </str>
1057
- <str name="pf_subject">
1058
- subject_topic_unstem_search^2000
1059
- subject_unstem_search^1250
1060
- subject_t^1000
1061
- subject_topic_facet^500
1062
- subject_addl_unstem_search^100
1063
- subject_addl_t^10
1064
- </str>
1065
-
1066
- <!-- for user query terms in number text box -->
1067
- <str name="qf_number">isbn_t</str>
1068
-
1069
- <!-- for user query terms in keyword text box -->
1070
- <str name="qf_keyword">text</str>
1071
- <str name="pf_keyword">text^10</str>
1072
-
1073
- <!-- NOT using marc_display because it is large and will slow things down for search results -->
1074
- <str name="fl">
1075
- id,
1076
- score,
1077
- author_display,
1078
- author_vern_display,
1079
- format,
1080
- isbn_t,
1081
- language_facet,
1082
- lc_callnum_display,
1083
- material_type_display,
1084
- published_display,
1085
- published_vern_display,
1086
- pub_date,
1087
- title_display,
1088
- title_vern_display,
1089
- subject_topic_facet,
1090
- subject_geo_facet,
1091
- subject_era_facet,
1092
- subtitle_display,
1093
- subtitle_vern_display,
1094
- url_fulltext_display,
1095
- url_suppl_display,
1096
- </str>
1097
-
1098
- <str name="facet">true</str>
522
+ <str name="facet">on</str>
1099
523
  <str name="facet.mincount">1</str>
1100
- <str name="facet.limit">10</str>
1101
- <str name="facet.field">format</str>
1102
- <str name="facet.field">lc_1letter_facet</str>
1103
- <str name="facet.field">lc_alpha_facet</str>
1104
- <str name="facet.field">lc_b4cutter_facet</str>
1105
- <str name="facet.field">language_facet</str>
1106
- <str name="facet.field">pub_date</str>
1107
- <str name="facet.field">subject_era_facet</str>
1108
- <str name="facet.field">subject_geo_facet</str>
1109
- <str name="facet.field">subject_topic_facet</str>
1110
-
1111
- <str name="spellcheck">true</str>
1112
- <str name="spellcheck.dictionary">subject</str>
1113
- <str name="spellcheck.onlyMorePopular">true</str>
1114
- <str name="spellcheck.extendedResults">true</str>
1115
- <str name="spellcheck.collate">false</str>
1116
- <str name="spellcheck.count">5</str>
524
+ <str name="echoParams">explicit</str>
525
+ <float name="tie">0.01</float>
526
+ <str name="qf">
527
+ text^0.5
528
+ </str>
529
+ <str name="pf">
530
+ text^0.2
531
+ </str>
532
+ <str name="bf">
533
+ ord(popularity)^0.5 recip(rord(price),1,1000,1000)^0.3
534
+ </str>
535
+ <str name="fl">
536
+ id,text,title_facet,date_t,medium_t,location_t
537
+ </str>
538
+ <str name="mm">
539
+ 2&lt;-1 5&lt;-2 6&lt;90%
540
+ </str>
541
+ <int name="ps">100</int>
542
+ <str name="q">*:*</str>
543
+ <str name="q.alt">*:*</str>
544
+ <!-- example highlighter config, enable per-query with hl=true -->
545
+ <str name="hl.fl">text features name</str>
546
+ <!-- for this field, we want no fragmenting, just highlighting -->
547
+ <str name="f.name.hl.fragsize">0</str>
548
+ <!-- instructs Solr to return the field itself if no query terms are
549
+ found -->
550
+ <str name="f.name.hl.alternateField">name</str>
551
+ <str name="f.text.hl.fragmenter">regex</str> <!-- defined below -->
1117
552
  </lst>
1118
- <arr name="last-components">
1119
- <str>spellcheck</str>
1120
- </arr>
1121
553
  </requestHandler>
1122
554
 
1123
-
1124
- <!-- XML Update Request Handler.
1125
-
1126
- http://wiki.apache.org/solr/UpdateXmlMessages
1127
-
1128
- The canonical Request Handler for Modifying the Index through
1129
- commands specified using XML.
1130
-
1131
- Note: Since solr1.1 requestHandlers requires a valid content
1132
- type header if posted in the body. For example, curl now
1133
- requires: -H 'Content-type:text/xml; charset=utf-8'
1134
- -->
1135
- <requestHandler name="/update"
1136
- class="solr.XmlUpdateRequestHandler">
1137
- <!-- See below for information on defining
1138
- updateRequestProcessorChains that can be used by name
1139
- on each Update Request
1140
- -->
1141
- <!--
1142
- <lst name="defaults">
1143
- <str name="update.chain">dedupe</str>
1144
- </lst>
1145
- -->
1146
- </requestHandler>
1147
- <!-- Binary Update Request Handler
1148
- http://wiki.apache.org/solr/javabin
1149
- -->
1150
- <requestHandler name="/update/javabin"
1151
- class="solr.BinaryUpdateRequestHandler" />
1152
-
1153
- <!-- CSV Update Request Handler
1154
- http://wiki.apache.org/solr/UpdateCSV
1155
- -->
1156
- <requestHandler name="/update/csv"
1157
- class="solr.CSVRequestHandler"
1158
- startup="lazy" />
1159
-
1160
- <!-- JSON Update Request Handler
1161
- http://wiki.apache.org/solr/UpdateJSON
1162
- -->
1163
- <requestHandler name="/update/json"
1164
- class="solr.JsonUpdateRequestHandler"
1165
- startup="lazy" />
1166
-
1167
- <!-- Solr Cell Update Request Handler
1168
-
1169
- http://wiki.apache.org/solr/ExtractingRequestHandler
1170
-
555
+ <!-- Note how you can register the same handler multiple times with
556
+ different names (and different init parameters)
1171
557
  -->
1172
- <requestHandler name="/update/extract"
1173
- startup="lazy"
1174
- class="solr.extraction.ExtractingRequestHandler" >
558
+ <requestHandler name="partitioned" class="solr.SearchHandler" >
1175
559
  <lst name="defaults">
1176
- <!-- All the main content goes into "text"... if you need to return
1177
- the extracted text or do highlighting, use a stored field. -->
1178
- <str name="fmap.content">text</str>
1179
- <str name="lowernames">true</str>
1180
- <str name="uprefix">ignored_</str>
1181
-
1182
- <!-- capture link hrefs but ignore div attributes -->
1183
- <str name="captureAttr">true</str>
1184
- <str name="fmap.a">links</str>
1185
- <str name="fmap.div">ignored_</str>
560
+ <str name="defType">dismax</str>
561
+ <str name="echoParams">explicit</str>
562
+ <str name="qf">text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0</str>
563
+ <str name="mm">2&lt;-1 5&lt;-2 6&lt;90%</str>
564
+ <!-- This is an example of using Date Math to specify a constantly
565
+ moving date range in a config...
566
+ -->
567
+ <str name="bq">incubationdate_dt:[* TO NOW/DAY-1MONTH]^2.2</str>
1186
568
  </lst>
1187
- </requestHandler>
1188
-
1189
- <!-- Field Analysis Request Handler
1190
-
1191
- RequestHandler that provides much the same functionality as
1192
- analysis.jsp. Provides the ability to specify multiple field
1193
- types and field names in the same request and outputs
1194
- index-time and query-time analysis for each of them.
1195
-
1196
- Request parameters are:
1197
- analysis.fieldname - field name whose analyzers are to be used
1198
-
1199
- analysis.fieldtype - field type whose analyzers are to be used
1200
- analysis.fieldvalue - text for index-time analysis
1201
- q (or analysis.q) - text for query time analysis
1202
- analysis.showmatch (true|false) - When set to true and when
1203
- query analysis is performed, the produced tokens of the
1204
- field value analysis will be marked as "matched" for every
1205
- token that is produces by the query analysis
1206
- -->
1207
- <requestHandler name="/analysis/field"
1208
- startup="lazy"
1209
- class="solr.FieldAnalysisRequestHandler" />
1210
-
1211
-
1212
- <!-- Document Analysis Handler
1213
-
1214
- http://wiki.apache.org/solr/AnalysisRequestHandler
1215
-
1216
- An analysis handler that provides a breakdown of the analysis
1217
- process of provided docuemnts. This handler expects a (single)
1218
- content stream with the following format:
1219
-
1220
- <docs>
1221
- <doc>
1222
- <field name="id">1</field>
1223
- <field name="name">The Name</field>
1224
- <field name="text">The Text Value</field>
1225
- </doc>
1226
- <doc>...</doc>
1227
- <doc>...</doc>
1228
- ...
1229
- </docs>
1230
-
1231
- Note: Each document must contain a field which serves as the
1232
- unique key. This key is used in the returned response to associate
1233
- an analysis breakdown to the analyzed document.
1234
-
1235
- Like the FieldAnalysisRequestHandler, this handler also supports
1236
- query analysis by sending either an "analysis.query" or "q"
1237
- request parameter that holds the query text to be analyzed. It
1238
- also supports the "analysis.showmatch" parameter which when set to
1239
- true, all field tokens that match the query tokens will be marked
1240
- as a "match".
1241
- -->
1242
- <requestHandler name="/analysis/document"
1243
- class="solr.DocumentAnalysisRequestHandler"
1244
- startup="lazy" />
1245
-
1246
- <!-- Admin Handlers
569
+ <!-- In addition to defaults, "appends" params can be specified
570
+ to identify values which should be appended to the list of
571
+ multi-val params from the query (or the existing "defaults").
1247
572
 
1248
- Admin Handlers - This will register all the standard admin
1249
- RequestHandlers.
1250
- -->
1251
- <requestHandler name="/admin/"
1252
- class="solr.admin.AdminHandlers" />
1253
- <!-- This single handler is equivalent to the following... -->
1254
- <!--
1255
- <requestHandler name="/admin/luke" class="solr.admin.LukeRequestHandler" />
1256
- <requestHandler name="/admin/system" class="solr.admin.SystemInfoHandler" />
1257
- <requestHandler name="/admin/plugins" class="solr.admin.PluginInfoHandler" />
1258
- <requestHandler name="/admin/threads" class="solr.admin.ThreadDumpHandler" />
1259
- <requestHandler name="/admin/properties" class="solr.admin.PropertiesRequestHandler" />
1260
- <requestHandler name="/admin/file" class="solr.admin.ShowFileRequestHandler" >
1261
- -->
1262
- <!-- If you wish to hide files under ${solr.home}/conf, explicitly
1263
- register the ShowFileRequestHandler using:
1264
- -->
1265
- <!--
1266
- <requestHandler name="/admin/file"
1267
- class="solr.admin.ShowFileRequestHandler" >
1268
- <lst name="invariants">
1269
- <str name="hidden">synonyms.txt</str>
1270
- <str name="hidden">anotherfile.txt</str>
1271
- </lst>
1272
- </requestHandler>
1273
- -->
573
+ In this example, the param "fq=instock:true" will be appended to
574
+ any query time fq params the user may specify, as a mechanism for
575
+ partitioning the index, independent of any user selected filtering
576
+ that may also be desired (perhaps as a result of faceted searching).
1274
577
 
1275
- <!-- ping/healthcheck -->
1276
- <requestHandler name="/admin/ping" class="solr.PingRequestHandler">
1277
- <lst name="defaults">
1278
- <str name="qt">search</str>
1279
- <str name="q">solrpingquery</str>
1280
- <str name="echoParams">all</str>
578
+ NOTE: there is *absolutely* nothing a client can do to prevent these
579
+ "appends" values from being used, so don't use this mechanism
580
+ unless you are sure you always want it.
581
+ -->
582
+ <lst name="appends">
583
+ <str name="fq">inStock:true</str>
1281
584
  </lst>
1282
- </requestHandler>
585
+ <!-- "invariants" are a way of letting the Solr maintainer lock down
586
+ the options available to Solr clients. Any params values
587
+ specified here are used regardless of what values may be specified
588
+ in either the query, the "defaults", or the "appends" params.
1283
589
 
1284
- <!-- Echo the request contents back to the client -->
1285
- <requestHandler name="/debug/dump" class="solr.DumpRequestHandler" >
1286
- <lst name="defaults">
1287
- <str name="echoParams">explicit</str>
1288
- <str name="echoHandler">true</str>
590
+ In this example, the facet.field and facet.query params are fixed,
591
+ limiting the facets clients can use. Faceting is not turned on by
592
+ default - but if the client does specify facet=true in the request,
593
+ these are the only facets they will be able to see counts for;
594
+ regardless of what other facet.field or facet.query params they
595
+ may specify.
596
+
597
+ NOTE: there is *absolutely* nothing a client can do to prevent these
598
+ "invariants" values from being used, so don't use this mechanism
599
+ unless you are sure you always want it.
600
+ -->
601
+ <lst name="invariants">
602
+ <str name="facet.field">cat</str>
603
+ <str name="facet.field">manu_exact</str>
604
+ <str name="facet.query">price:[* TO 500]</str>
605
+ <str name="facet.query">price:[500 TO *]</str>
1289
606
  </lst>
1290
607
  </requestHandler>
1291
608
 
1292
- <!-- Solr Replication
1293
609
 
1294
- The SolrReplicationHandler supports replicating indexes from a
1295
- "master" used for indexing and "salves" used for queries.
1296
-
1297
- http://wiki.apache.org/solr/SolrReplication
1298
-
1299
- In the example below, remove the <lst name="master"> section if
1300
- this is just a slave and remove the <lst name="slave"> section
1301
- if this is just a master.
1302
- -->
1303
610
  <!--
1304
- <requestHandler name="/replication" class="solr.ReplicationHandler" >
1305
- <lst name="master">
1306
- <str name="replicateAfter">commit</str>
1307
- <str name="replicateAfter">startup</str>
1308
- <str name="confFiles">schema.xml,stopwords.txt</str>
1309
- </lst>
1310
- <lst name="slave">
1311
- <str name="masterUrl">http://localhost:8983/solr/replication</str>
1312
- <str name="pollInterval">00:00:60</str>
1313
- </lst>
1314
- </requestHandler>
1315
- -->
1316
-
1317
- <!-- Search Components
1318
-
1319
- Search components are registered to SolrCore and used by
1320
- instances of SearchHandler (which can access them by name)
1321
-
1322
- By default, the following components are available:
1323
-
1324
- <searchComponent name="query" class="solr.QueryComponent" />
1325
- <searchComponent name="facet" class="solr.FacetComponent" />
1326
- <searchComponent name="mlt" class="solr.MoreLikeThisComponent" />
1327
- <searchComponent name="highlight" class="solr.HighlightComponent" />
1328
- <searchComponent name="stats" class="solr.StatsComponent" />
1329
- <searchComponent name="debug" class="solr.DebugComponent" />
611
+ Search components are registered to SolrCore and used by Search Handlers
1330
612
 
1331
- Default configuration in a requestHandler would look like:
1332
-
1333
- <arr name="components">
1334
- <str>query</str>
1335
- <str>facet</str>
1336
- <str>mlt</str>
1337
- <str>highlight</str>
1338
- <str>stats</str>
1339
- <str>debug</str>
1340
- </arr>
613
+ By default, the following components are avaliable:
614
+
615
+ <searchComponent name="query" class="org.apache.solr.handler.component.QueryComponent" />
616
+ <searchComponent name="facet" class="org.apache.solr.handler.component.FacetComponent" />
617
+ <searchComponent name="mlt" class="org.apache.solr.handler.component.MoreLikeThisComponent" />
618
+ <searchComponent name="highlight" class="org.apache.solr.handler.component.HighlightComponent" />
619
+ <searchComponent name="debug" class="org.apache.solr.handler.component.DebugComponent" />
1341
620
 
1342
- If you register a searchComponent to one of the standard names,
1343
- that will be used instead of the default.
621
+ Default configuration in a requestHandler would look like:
622
+ <arr name="components">
623
+ <str>query</str>
624
+ <str>facet</str>
625
+ <str>mlt</str>
626
+ <str>highlight</str>
627
+ <str>debug</str>
628
+ </arr>
1344
629
 
1345
- To insert components before or after the 'standard' components, use:
630
+ If you register a searchComponent to one of the standard names, that will be used instead.
631
+ To insert handlers before or after the 'standard' components, use:
1346
632
 
1347
- <arr name="first-components">
1348
- <str>myFirstComponentName</str>
1349
- </arr>
633
+ <arr name="first-components">
634
+ <str>myFirstComponentName</str>
635
+ </arr>
1350
636
 
1351
- <arr name="last-components">
1352
- <str>myLastComponentName</str>
1353
- </arr>
1354
-
1355
- NOTE: The component registered with the name "debug" will
1356
- always be executed after the "last-components"
1357
-
1358
- -->
1359
-
1360
- <!-- Spell Check
1361
-
1362
- The spell check component can return a list of alternative spelling
1363
- suggestions.
637
+ <arr name="last-components">
638
+ <str>myLastComponentName</str>
639
+ </arr>
640
+ -->
1364
641
 
1365
- http://wiki.apache.org/solr/SpellCheckComponent
1366
- -->
642
+ <!-- The spell check component can return a list of alternative spelling
643
+ suggestions. -->
1367
644
  <searchComponent name="spellcheck" class="solr.SpellCheckComponent">
1368
645
 
1369
646
  <str name="queryAnalyzerFieldType">textSpell</str>
1370
647
 
1371
- <!-- Multiple "Spell Checkers" can be declared and used by this
1372
- component
1373
- -->
1374
-
1375
- <!-- a spellchecker built from a field of the main index, and
1376
- written to disk
1377
- -->
1378
648
  <lst name="spellchecker">
1379
649
  <str name="name">default</str>
1380
650
  <str name="field">spell</str>
1381
- <str name="spellcheckIndexDir">./spell</str>
1382
- <str name="buildOnOptimize">true</str>
1383
- </lst>
1384
- <lst name="spellchecker">
1385
- <str name="name">author</str>
1386
- <str name="field">author_spell</str>
1387
- <str name="spellcheckIndexDir">./spell_author</str>
1388
- <str name="accuracy">0.7</str>
1389
- <str name="buildOnOptimize">true</str>
651
+ <str name="spellcheckIndexDir">./spellchecker1</str>
652
+
1390
653
  </lst>
1391
654
  <lst name="spellchecker">
1392
- <str name="name">subject</str>
1393
- <str name="field">subject_spell</str>
1394
- <str name="spellcheckIndexDir">./spell_subject</str>
1395
- <str name="accuracy">0.7</str>
1396
- <str name="buildOnOptimize">true</str>
655
+ <str name="name">jarowinkler</str>
656
+ <str name="field">spell</str>
657
+ <!-- Use a different Distance Measure -->
658
+ <str name="distanceMeasure">org.apache.lucene.search.spell.JaroWinklerDistance</str>
659
+ <str name="spellcheckIndexDir">./spellchecker2</str>
660
+
1397
661
  </lst>
662
+
1398
663
  <lst name="spellchecker">
1399
- <str name="name">title</str>
1400
- <str name="field">title_spell</str>
1401
- <str name="spellcheckIndexDir">./spell_title</str>
1402
- <str name="accuracy">0.7</str>
1403
- <str name="buildOnOptimize">true</str>
664
+ <str name="classname">solr.FileBasedSpellChecker</str>
665
+ <str name="name">file</str>
666
+ <str name="sourceLocation">spellings.txt</str>
667
+ <str name="characterEncoding">UTF-8</str>
668
+ <str name="spellcheckIndexDir">./spellcheckerFile</str>
1404
669
  </lst>
1405
-
1406
- <!-- a spellchecker that uses a different distance measure -->
1407
- <!--
1408
- <lst name="spellchecker">
1409
- <str name="name">jarowinkler</str>
1410
- <str name="field">spell</str>
1411
- <str name="distanceMeasure">
1412
- org.apache.lucene.search.spell.JaroWinklerDistance
1413
- </str>
1414
- <str name="spellcheckIndexDir">spellcheckerJaro</str>
1415
- </lst>
1416
- -->
1417
-
1418
- <!-- a spellchecker that use an alternate comparator
1419
-
1420
- comparatorClass be one of:
1421
- 1. score (default)
1422
- 2. freq (Frequency first, then score)
1423
- 3. A fully qualified class name
1424
- -->
1425
- <!--
1426
- <lst name="spellchecker">
1427
- <str name="name">freq</str>
1428
- <str name="field">lowerfilt</str>
1429
- <str name="spellcheckIndexDir">spellcheckerFreq</str>
1430
- <str name="comparatorClass">freq</str>
1431
- <str name="buildOnCommit">true</str>
1432
- -->
1433
-
1434
- <!-- A spellchecker that reads the list of words from a file -->
1435
- <!--
1436
- <lst name="spellchecker">
1437
- <str name="classname">solr.FileBasedSpellChecker</str>
1438
- <str name="name">file</str>
1439
- <str name="sourceLocation">spellings.txt</str>
1440
- <str name="characterEncoding">UTF-8</str>
1441
- <str name="spellcheckIndexDir">spellcheckerFile</str>
1442
- </lst>
1443
- -->
1444
670
  </searchComponent>
1445
671
 
1446
- <!-- A request handler for demonstrating the spellcheck component.
1447
-
1448
- NOTE: This is purely as an example. The whole purpose of the
1449
- SpellCheckComponent is to hook it into the request handler that
1450
- handles your normal user queries so that a separate request is
1451
- not needed to get suggestions.
1452
-
1453
- IN OTHER WORDS, THERE IS REALLY GOOD CHANCE THE SETUP BELOW IS
1454
- NOT WHAT YOU WANT FOR YOUR PRODUCTION SYSTEM!
1455
-
1456
- See http://wiki.apache.org/solr/SpellCheckComponent for details
1457
- on the request parameters.
1458
- -->
1459
- <requestHandler name="/spell" class="solr.SearchHandler" startup="lazy">
672
+ <!-- a request handler utilizing the spellcheck component -->
673
+ <requestHandler name="/spellCheckCompRH" class="solr.SearchHandler">
1460
674
  <lst name="defaults">
675
+ <!-- omp = Only More Popular -->
1461
676
  <str name="spellcheck.onlyMorePopular">false</str>
677
+ <!-- exr = Extended Results -->
1462
678
  <str name="spellcheck.extendedResults">false</str>
679
+ <!-- The number of suggestions to return -->
1463
680
  <str name="spellcheck.count">1</str>
1464
681
  </lst>
1465
682
  <arr name="last-components">
1466
683
  <str>spellcheck</str>
1467
684
  </arr>
1468
685
  </requestHandler>
1469
-
1470
- <!-- Term Vector Component
1471
-
1472
- http://wiki.apache.org/solr/TermVectorComponent
1473
- -->
1474
- <searchComponent name="tvComponent" class="solr.TermVectorComponent"/>
1475
-
1476
- <!-- A request handler for demonstrating the term vector component
1477
-
1478
- This is purely as an example.
1479
-
1480
- In reality you will likely want to add the component to your
1481
- already specified request handlers.
1482
- -->
1483
- <requestHandler name="tvrh" class="solr.SearchHandler" startup="lazy">
1484
- <lst name="defaults">
1485
- <bool name="tv">true</bool>
1486
- </lst>
1487
- <arr name="last-components">
1488
- <str>tvComponent</str>
1489
- </arr>
1490
- </requestHandler>
1491
-
1492
- <!-- Clustering Component
1493
-
1494
- http://wiki.apache.org/solr/ClusteringComponent
1495
-
1496
- This relies on third party jars which are notincluded in the
1497
- release. To use this component (and the "/clustering" handler)
1498
- Those jars will need to be downloaded, and you'll need to set
1499
- the solr.cluster.enabled system property when running solr...
1500
-
1501
- java -Dsolr.clustering.enabled=true -jar start.jar
1502
- -->
1503
- <searchComponent name="clustering"
1504
- enable="${solr.clustering.enabled:false}"
1505
- class="solr.clustering.ClusteringComponent" >
1506
- <!-- Declare an engine -->
1507
- <lst name="engine">
1508
- <!-- The name, only one can be named "default" -->
1509
- <str name="name">default</str>
1510
-
1511
- <!-- Class name of Carrot2 clustering algorithm.
1512
-
1513
- Currently available algorithms are:
1514
-
1515
- * org.carrot2.clustering.lingo.LingoClusteringAlgorithm
1516
- * org.carrot2.clustering.stc.STCClusteringAlgorithm
1517
- * org.carrot2.clustering.kmeans.BisectingKMeansClusteringAlgorithm
1518
-
1519
- See http://project.carrot2.org/algorithms.html for the
1520
- algorithm's characteristics.
1521
- -->
1522
- <str name="carrot.algorithm">org.carrot2.clustering.lingo.LingoClusteringAlgorithm</str>
1523
-
1524
- <!-- Overriding values for Carrot2 default algorithm attributes.
1525
-
1526
- For a description of all available attributes, see:
1527
- http://download.carrot2.org/stable/manual/#chapter.components.
1528
- Use attribute key as name attribute of str elements
1529
- below. These can be further overridden for individual
1530
- requests by specifying attribute key as request parameter
1531
- name and attribute value as parameter value.
1532
- -->
1533
- <str name="LingoClusteringAlgorithm.desiredClusterCountBase">20</str>
1534
-
1535
- <!-- Location of Carrot2 lexical resources.
1536
-
1537
- A directory from which to load Carrot2-specific stop words
1538
- and stop labels. Absolute or relative to Solr config directory.
1539
- If a specific resource (e.g. stopwords.en) is present in the
1540
- specified dir, it will completely override the corresponding
1541
- default one that ships with Carrot2.
1542
-
1543
- For an overview of Carrot2 lexical resources, see:
1544
- http://download.carrot2.org/head/manual/#chapter.lexical-resources
1545
- -->
1546
- <str name="carrot.lexicalResourcesDir">clustering/carrot2</str>
1547
-
1548
- <!-- The language to assume for the documents.
1549
-
1550
- For a list of allowed values, see:
1551
- http://download.carrot2.org/stable/manual/#section.attribute.lingo.MultilingualClustering.defaultLanguage
1552
- -->
1553
- <str name="MultilingualClustering.defaultLanguage">ENGLISH</str>
1554
- </lst>
1555
- <lst name="engine">
1556
- <str name="name">stc</str>
1557
- <str name="carrot.algorithm">org.carrot2.clustering.stc.STCClusteringAlgorithm</str>
1558
- </lst>
1559
- </searchComponent>
1560
-
1561
- <!-- A request handler for demonstrating the clustering component
1562
-
1563
- This is purely as an example.
1564
-
1565
- In reality you will likely want to add the component to your
1566
- already specified request handlers.
1567
- -->
1568
- <requestHandler name="/clustering"
1569
- startup="lazy"
1570
- enable="${solr.clustering.enabled:false}"
1571
- class="solr.SearchHandler">
1572
- <lst name="defaults">
1573
- <bool name="clustering">true</bool>
1574
- <str name="clustering.engine">default</str>
1575
- <bool name="clustering.results">true</bool>
1576
- <!-- The title field -->
1577
- <str name="carrot.title">name</str>
1578
- <str name="carrot.url">id</str>
1579
- <!-- The field to cluster on -->
1580
- <str name="carrot.snippet">features</str>
1581
- <!-- produce summaries -->
1582
- <bool name="carrot.produceSummary">true</bool>
1583
- <!-- the maximum number of labels per cluster -->
1584
- <!--<int name="carrot.numDescriptions">5</int>-->
1585
- <!-- produce sub clusters -->
1586
- <bool name="carrot.outputSubClusters">false</bool>
1587
-
1588
- <str name="defType">edismax</str>
1589
- <str name="qf">
1590
- text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
1591
- </str>
1592
- <str name="q.alt">*:*</str>
1593
- <str name="rows">10</str>
1594
- <str name="fl">*,score</str>
1595
- </lst>
1596
- <arr name="last-components">
1597
- <str>clustering</str>
1598
- </arr>
1599
- </requestHandler>
1600
-
1601
- <!-- Terms Component
1602
-
1603
- http://wiki.apache.org/solr/TermsComponent
1604
-
1605
- A component to return terms and document frequency of those
1606
- terms
1607
- -->
1608
- <searchComponent name="terms" class="solr.TermsComponent"/>
1609
-
1610
- <!-- A request handler for demonstrating the terms component -->
1611
- <requestHandler name="/terms" class="solr.SearchHandler" startup="lazy">
1612
- <lst name="defaults">
1613
- <bool name="terms">true</bool>
1614
- </lst>
1615
- <arr name="components">
1616
- <str>terms</str>
1617
- </arr>
1618
- </requestHandler>
1619
-
1620
-
1621
- <!-- Query Elevation Component
1622
-
1623
- http://wiki.apache.org/solr/QueryElevationComponent
1624
-
1625
- a search component that enables you to configure the top
1626
- results for a given query regardless of the normal lucene
1627
- scoring.
1628
- -->
686
+
687
+ <!-- a search component that enables you to configure the top results for
688
+ a given query regardless of the normal lucene scoring.-->
1629
689
  <searchComponent name="elevator" class="solr.QueryElevationComponent" >
1630
690
  <!-- pick a fieldType to analyze queries -->
1631
691
  <str name="queryFieldType">string</str>
1632
692
  <str name="config-file">elevate.xml</str>
1633
693
  </searchComponent>
1634
-
1635
- <!-- A request handler for demonstrating the elevator component -->
694
+
695
+ <!-- a request handler utilizing the elevator component -->
1636
696
  <requestHandler name="/elevate" class="solr.SearchHandler" startup="lazy">
1637
697
  <lst name="defaults">
1638
698
  <str name="echoParams">explicit</str>
@@ -1641,247 +701,139 @@
1641
701
  <str>elevator</str>
1642
702
  </arr>
1643
703
  </requestHandler>
704
+
1644
705
 
1645
- <!-- Highlighting Component
1646
-
1647
- http://wiki.apache.org/solr/HighlightingParameters
1648
- -->
1649
- <searchComponent class="solr.HighlightComponent" name="highlight">
1650
- <highlighting>
1651
- <!-- Configure the standard fragmenter -->
1652
- <!-- This could most likely be commented out in the "default" case -->
1653
- <fragmenter name="gap"
1654
- default="true"
1655
- class="solr.highlight.GapFragmenter">
1656
- <lst name="defaults">
1657
- <int name="hl.fragsize">100</int>
1658
- </lst>
1659
- </fragmenter>
1660
-
1661
- <!-- A regular-expression-based fragmenter
1662
- (for sentence extraction)
1663
- -->
1664
- <fragmenter name="regex"
1665
- class="solr.highlight.RegexFragmenter">
1666
- <lst name="defaults">
1667
- <!-- slightly smaller fragsizes work better because of slop -->
1668
- <int name="hl.fragsize">70</int>
1669
- <!-- allow 50% slop on fragment sizes -->
1670
- <float name="hl.regex.slop">0.5</float>
1671
- <!-- a basic sentence pattern -->
1672
- <str name="hl.regex.pattern">[-\w ,/\n\&quot;&apos;]{20,200}</str>
1673
- </lst>
1674
- </fragmenter>
1675
-
1676
- <!-- Configure the standard formatter -->
1677
- <formatter name="html"
1678
- default="true"
1679
- class="solr.highlight.HtmlFormatter">
1680
- <lst name="defaults">
1681
- <str name="hl.simple.pre"><![CDATA[<em>]]></str>
1682
- <str name="hl.simple.post"><![CDATA[</em>]]></str>
1683
- </lst>
1684
- </formatter>
1685
-
1686
- <!-- Configure the standard encoder -->
1687
- <encoder name="html"
1688
- class="solr.highlight.HtmlEncoder" />
1689
-
1690
- <!-- Configure the standard fragListBuilder -->
1691
- <fragListBuilder name="simple"
1692
- default="true"
1693
- class="solr.highlight.SimpleFragListBuilder"/>
1694
-
1695
- <!-- Configure the single fragListBuilder -->
1696
- <fragListBuilder name="single"
1697
- class="solr.highlight.SingleFragListBuilder"/>
1698
-
1699
- <!-- default tag FragmentsBuilder -->
1700
- <fragmentsBuilder name="default"
1701
- default="true"
1702
- class="solr.highlight.ScoreOrderFragmentsBuilder">
1703
- <!--
1704
- <lst name="defaults">
1705
- <str name="hl.multiValuedSeparatorChar">/</str>
1706
- </lst>
1707
- -->
1708
- </fragmentsBuilder>
1709
-
1710
- <!-- multi-colored tag FragmentsBuilder -->
1711
- <fragmentsBuilder name="colored"
1712
- class="solr.highlight.ScoreOrderFragmentsBuilder">
1713
- <lst name="defaults">
1714
- <str name="hl.tag.pre"><![CDATA[
1715
- <b style="background:yellow">,<b style="background:lawgreen">,
1716
- <b style="background:aquamarine">,<b style="background:magenta">,
1717
- <b style="background:palegreen">,<b style="background:coral">,
1718
- <b style="background:wheat">,<b style="background:khaki">,
1719
- <b style="background:lime">,<b style="background:deepskyblue">]]></str>
1720
- <str name="hl.tag.post"><![CDATA[</b>]]></str>
1721
- </lst>
1722
- </fragmentsBuilder>
1723
-
1724
- <boundaryScanner name="default"
1725
- default="true"
1726
- class="solr.highlight.SimpleBoundaryScanner">
1727
- <lst name="defaults">
1728
- <str name="hl.bs.maxScan">10</str>
1729
- <str name="hl.bs.chars">.,!? &#9;&#10;&#13;</str>
1730
- </lst>
1731
- </boundaryScanner>
1732
-
1733
- <boundaryScanner name="breakIterator"
1734
- class="solr.highlight.BreakIteratorBoundaryScanner">
1735
- <lst name="defaults">
1736
- <!-- type should be one of CHARACTER, WORD(default), LINE and SENTENCE -->
1737
- <str name="hl.bs.type">WORD</str>
1738
- <!-- language and country are used when constructing Locale object. -->
1739
- <!-- And the Locale object will be used when getting instance of BreakIterator -->
1740
- <str name="hl.bs.language">en</str>
1741
- <str name="hl.bs.country">US</str>
1742
- </lst>
1743
- </boundaryScanner>
1744
- </highlighting>
1745
- </searchComponent>
1746
-
1747
- <!-- Update Processors
1748
-
1749
- Chains of Update Processor Factories for dealing with Update
1750
- Requests can be declared, and then used by name in Update
1751
- Request Processors
1752
-
1753
- http://wiki.apache.org/solr/UpdateRequestProcessor
1754
-
1755
- -->
1756
- <!-- Deduplication
1757
-
1758
- An example dedup update processor that creates the "id" field
1759
- on the fly based on the hash code of some other fields. This
1760
- example has overwriteDupes set to false since we are using the
1761
- id field as the signatureField and Solr will maintain
1762
- uniqueness based on that anyway.
706
+ <!-- Update request handler.
707
+
708
+ Note: Since solr1.1 requestHandlers requires a valid content type header if posted in
709
+ the body. For example, curl now requires: -H 'Content-type:text/xml; charset=utf-8'
710
+ The response format differs from solr1.1 formatting and returns a standard error code.
1763
711
 
712
+ To enable solr1.1 behavior, remove the /update handler or change its path
1764
713
  -->
1765
- <!--
1766
- <updateRequestProcessorChain name="dedupe">
1767
- <processor class="solr.processor.SignatureUpdateProcessorFactory">
1768
- <bool name="enabled">true</bool>
1769
- <str name="signatureField">id</str>
1770
- <bool name="overwriteDupes">false</bool>
1771
- <str name="fields">name,features,cat</str>
1772
- <str name="signatureClass">solr.processor.Lookup3Signature</str>
1773
- </processor>
1774
- <processor class="solr.LogUpdateProcessorFactory" />
1775
- <processor class="solr.RunUpdateProcessorFactory" />
1776
- </updateRequestProcessorChain>
1777
- -->
1778
-
1779
- <!--
1780
- This example update chain identifies the language of the incoming
1781
- documents using the langid contrib. The detected language is
1782
- written to field language_s. No field name mapping is done.
1783
- The fields used for detection are text, title, subject and description,
1784
- making this example suitable for detecting languages form full-text
1785
- rich documents injected via ExtractingRequestHandler.
1786
- See more about langId at http://wiki.apache.org/solr/LanguageDetection
1787
- -->
1788
- <!--
1789
- <updateRequestProcessorChain name="langid">
1790
- <processor class="org.apache.solr.update.processor.TikaLanguageIdentifierUpdateProcessorFactory">
1791
- <str name="langid.fl">text,title,subject,description</str>
1792
- <str name="langid.langField">language_s</str>
1793
- <str name="langid.fallback">en</str>
1794
- </processor>
1795
- <processor class="solr.LogUpdateProcessorFactory" />
1796
- <processor class="solr.RunUpdateProcessorFactory" />
1797
- </updateRequestProcessorChain>
1798
- -->
1799
-
1800
- <!-- Response Writers
714
+ <requestHandler name="/update" class="solr.XmlUpdateRequestHandler" />
1801
715
 
1802
- http://wiki.apache.org/solr/QueryResponseWriter
716
+ <!--
717
+ Analysis request handler. Since Solr 1.3. Use to returnhow a document is analyzed. Useful
718
+ for debugging and as a token server for other types of applications
719
+ -->
720
+ <requestHandler name="/analysis" class="solr.AnalysisRequestHandler" />
721
+
1803
722
 
1804
- Request responses will be written using the writer specified by
1805
- the 'wt' request parameter matching the name of a registered
1806
- writer.
723
+ <!-- CSV update handler, loaded on demand -->
724
+ <requestHandler name="/update/csv" class="solr.CSVRequestHandler" startup="lazy" />
1807
725
 
1808
- The "default" writer is the default and will be used if 'wt' is
1809
- not specified in the request.
1810
- -->
1811
- <!-- The following response writers are implicitly configured unless
1812
- overridden...
1813
- -->
1814
- <!--
1815
- <queryResponseWriter name="xml"
1816
- default="true"
1817
- class="solr.XMLResponseWriter" />
1818
- <queryResponseWriter name="json" class="solr.JSONResponseWriter"/>
1819
- <queryResponseWriter name="python" class="solr.PythonResponseWriter"/>
1820
- <queryResponseWriter name="ruby" class="solr.RubyResponseWriter"/>
1821
- <queryResponseWriter name="php" class="solr.PHPResponseWriter"/>
1822
- <queryResponseWriter name="phps" class="solr.PHPSerializedResponseWriter"/>
1823
- <queryResponseWriter name="csv" class="solr.CSVResponseWriter"/>
1824
- -->
1825
726
 
1826
- <queryResponseWriter name="json" class="solr.JSONResponseWriter">
1827
- <!-- For the purposes of the tutorial, JSON responses are written as
1828
- plain text so that they are easy to read in *any* browser.
1829
- If you expect a MIME type of "application/json" just remove this override.
1830
- -->
1831
- <str name="content-type">text/plain; charset=UTF-8</str>
1832
- </queryResponseWriter>
727
+ <!--
728
+ Admin Handlers - This will register all the standard admin RequestHandlers. Adding
729
+ this single handler is equivolent to registering:
730
+
731
+ <requestHandler name="/admin/luke" class="org.apache.solr.handler.admin.LukeRequestHandler" />
732
+ <requestHandler name="/admin/system" class="org.apache.solr.handler.admin.SystemInfoHandler" />
733
+ <requestHandler name="/admin/plugins" class="org.apache.solr.handler.admin.PluginInfoHandler" />
734
+ <requestHandler name="/admin/threads" class="org.apache.solr.handler.admin.ThreadDumpHandler" />
735
+ <requestHandler name="/admin/properties" class="org.apache.solr.handler.admin.PropertiesRequestHandler" />
736
+ <requestHandler name="/admin/file" class="org.apache.solr.handler.admin.ShowFileRequestHandler" >
737
+
738
+ If you wish to hide files under ${solr.home}/conf, explicitly register the ShowFileRequestHandler using:
739
+ <requestHandler name="/admin/file" class="org.apache.solr.handler.admin.ShowFileRequestHandler" >
740
+ <lst name="invariants">
741
+ <str name="hidden">synonyms.txt</str>
742
+ <str name="hidden">anotherfile.txt</str>
743
+ </lst>
744
+ </requestHandler>
745
+ -->
746
+ <requestHandler name="/admin/" class="org.apache.solr.handler.admin.AdminHandlers" />
747
+
748
+ <!-- ping/healthcheck -->
749
+ <requestHandler name="/admin/ping" class="PingRequestHandler">
750
+ <lst name="defaults">
751
+ <str name="qt">standard</str>
752
+ <str name="q">solrpingquery</str>
753
+ <str name="echoParams">all</str>
754
+ </lst>
755
+ </requestHandler>
756
+
757
+ <!-- Echo the request contents back to the client -->
758
+ <requestHandler name="/debug/dump" class="solr.DumpRequestHandler" >
759
+ <lst name="defaults">
760
+ <str name="echoParams">explicit</str> <!-- for all params (including the default etc) use: 'all' -->
761
+ <str name="echoHandler">true</str>
762
+ </lst>
763
+ </requestHandler>
764
+
765
+ <highlighting>
766
+ <!-- Configure the standard fragmenter -->
767
+ <!-- This could most likely be commented out in the "default" case -->
768
+ <fragmenter name="gap" class="org.apache.solr.highlight.GapFragmenter" default="true">
769
+ <lst name="defaults">
770
+ <int name="hl.fragsize">100</int>
771
+ </lst>
772
+ </fragmenter>
1833
773
 
1834
- <!--
1835
- Custom response writers can be declared as needed...
1836
- -->
1837
- <!-- The solr.velocity.enabled flag is used by Solr's test cases so that this response writer is not
1838
- loaded (causing an error if contrib/velocity has not been built fully) -->
1839
- <queryResponseWriter name="velocity" class="solr.VelocityResponseWriter" enable="${solr.velocity.enabled:true}"/>
774
+ <!-- A regular-expression-based fragmenter (f.i., for sentence extraction) -->
775
+ <fragmenter name="regex" class="org.apache.solr.highlight.RegexFragmenter">
776
+ <lst name="defaults">
777
+ <!-- slightly smaller fragsizes work better because of slop -->
778
+ <int name="hl.fragsize">70</int>
779
+ <!-- allow 50% slop on fragment sizes -->
780
+ <float name="hl.regex.slop">0.5</float>
781
+ <!-- a basic sentence pattern -->
782
+ <str name="hl.regex.pattern">[-\w ,/\n\"']{20,200}</str>
783
+ </lst>
784
+ </fragmenter>
785
+
786
+ <!-- Configure the standard formatter -->
787
+ <formatter name="html" class="org.apache.solr.highlight.HtmlFormatter" default="true">
788
+ <lst name="defaults">
789
+ <str name="hl.simple.pre"><![CDATA[<em>]]></str>
790
+ <str name="hl.simple.post"><![CDATA[</em>]]></str>
791
+ </lst>
792
+ </formatter>
793
+ </highlighting>
794
+
795
+
796
+ <!-- queryResponseWriter plugins... query responses will be written using the
797
+ writer specified by the 'wt' request parameter matching the name of a registered
798
+ writer.
799
+ The "default" writer is the default and will be used if 'wt' is not specified
800
+ in the request. XMLResponseWriter will be used if nothing is specified here.
801
+ The json, python, and ruby writers are also available by default.
802
+
803
+ <queryResponseWriter name="xml" class="org.apache.solr.request.XMLResponseWriter" default="true"/>
804
+ <queryResponseWriter name="json" class="org.apache.solr.request.JSONResponseWriter"/>
805
+ <queryResponseWriter name="python" class="org.apache.solr.request.PythonResponseWriter"/>
806
+ <queryResponseWriter name="ruby" class="org.apache.solr.request.RubyResponseWriter"/>
807
+ <queryResponseWriter name="php" class="org.apache.solr.request.PHPResponseWriter"/>
808
+ <queryResponseWriter name="phps" class="org.apache.solr.request.PHPSerializedResponseWriter"/>
809
+
810
+ <queryResponseWriter name="custom" class="com.example.MyResponseWriter"/>
811
+ -->
1840
812
 
1841
813
  <!-- XSLT response writer transforms the XML output by any xslt file found
1842
814
  in Solr's conf/xslt directory. Changes to xslt files are checked for
1843
815
  every xsltCacheLifetimeSeconds.
1844
- -->
1845
- <queryResponseWriter name="xslt" class="solr.XSLTResponseWriter">
816
+ -->
817
+ <queryResponseWriter name="xslt" class="org.apache.solr.request.XSLTResponseWriter">
1846
818
  <int name="xsltCacheLifetimeSeconds">5</int>
1847
- </queryResponseWriter>
819
+ </queryResponseWriter>
1848
820
 
1849
- <!-- Query Parsers
1850
821
 
1851
- http://wiki.apache.org/solr/SolrQuerySyntax
1852
-
1853
- Multiple QParserPlugins can be registered by name, and then
1854
- used in either the "defType" param for the QueryComponent (used
1855
- by SearchHandler) or in LocalParams
1856
- -->
1857
- <!-- example of registering a query parser -->
1858
- <!--
1859
- <queryParser name="myparser" class="com.mycompany.MyQParserPlugin"/>
1860
- -->
1861
-
1862
- <!-- Function Parsers
1863
-
1864
- http://wiki.apache.org/solr/FunctionQuery
1865
-
1866
- Multiple ValueSourceParsers can be registered by name, and then
1867
- used as function names when using the "func" QParser.
1868
- -->
1869
- <!-- example of registering a custom function parser -->
1870
- <!--
1871
- <valueSourceParser name="myfunc"
1872
- class="com.mycompany.MyValueSourceParser" />
1873
- -->
822
+ <!-- example of registering a query parser
823
+ <queryParser name="lucene" class="org.apache.solr.search.LuceneQParserPlugin"/>
824
+ -->
1874
825
 
1875
- <!-- Legacy config for the admin interface -->
826
+ <!-- example of registering a custom function parser
827
+ <valueSourceParser name="myfunc" class="com.mycompany.MyValueSourceParser" />
828
+ -->
829
+
830
+ <!-- config for the admin interface -->
1876
831
  <admin>
1877
- <defaultQuery>hydra</defaultQuery>
1878
-
1879
- <!-- configure a healthcheck file for servers behind a
1880
- loadbalancer
1881
- -->
1882
- <!--
1883
- <healthcheck type="file">server-enabled</healthcheck>
1884
- -->
832
+ <defaultQuery>solr</defaultQuery>
833
+
834
+ <!-- configure a healthcheck file for servers behind a loadbalancer
835
+ <healthcheck type="file">server-enabled</healthcheck>
836
+ -->
1885
837
  </admin>
1886
838
 
1887
839
  </config>