-
Notifications
You must be signed in to change notification settings - Fork 0
/
solrconfig.xml
502 lines (457 loc) · 19.7 KB
/
solrconfig.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!--
This is a stripped down config file used for a simple example...
It is *not* a good example to work from.
-->
<config>
<luceneMatchVersion>7.1.0</luceneMatchVersion>
<lib dir="${solr.install.dir}/contrib/analysis-extras/lib" />
<lib dir="${solr.install.dir}/contrib/analysis-extras/lucene-libs" />
<lib dir="conf" />
<directoryFactory name="DirectoryFactory"
class="${solr.directoryFactory:solr.StandardDirectoryFactory}">
</directoryFactory>
<updateHandler class="solr.DirectUpdateHandler2">
<updateLog>
<str name="dir">${solr.core0.data.dir:}</str>
</updateLog>
</updateHandler>
<codecFactory class="solr.SchemaCodecFactory"/>
<schemaFactory class="ClassicIndexSchemaFactory"/>
<dataDir>${solr.blacklight-core.data.dir:}</dataDir>
<requestDispatcher handleSelect="true" >
<requestParsers enableRemoteStreaming="false" multipartUploadLimitInKB="2048" />
</requestDispatcher>
<updateLog class="solr.FSUpdateLog">
<str name="dir">${solr.data.dir:}</str>
</updateLog>
<requestHandler name="/analysis/field" startup="lazy" class="solr.FieldAnalysisRequestHandler" />
<requestHandler name="/admin/ping" class="solr.PingRequestHandler">
<lst name="invariants">
<str name="q">solrpingquery</str>
</lst>
<lst name="defaults">
<str name="echoParams">all</str>
</lst>
</requestHandler>
<requestHandler name="/get" class="solr.RealTimeGetHandler">
<lst name="defaults">
<str name="omitHeader">true</str>
<str name="wt">json</str>
<str name="indent">true</str>
</lst>
</requestHandler>
<!-- config for the admin interface -->
<admin>
<defaultQuery>solr</defaultQuery>
</admin>
<query>
<filterCache class="solr.FastLRUCache"
size="8192"
initialSize="8192"
autowarmCount="256"/>
<queryResultCache class="solr.LRUCache"
size="16384"
initialSize="16384"
autowarmCount="128"/>
<documentCache class="solr.LRUCache"
size="16384"
initialSize="16384"/>
<enableLazyFieldLoading>true</enableLazyFieldLoading>
<queryResultWindowSize>100</queryResultWindowSize>
<queryResultMaxDocsCached>500</queryResultMaxDocsCached>
<listener event="newSearcher" class="solr.QuerySenderListener">
<arr name="queries">
<lst><str name="q">*:*</str><str name="sort">score desc, pub_date_start_sort desc, title_sort asc</str></lst>
<lst><str name="q">*:*</str><str name="sort">pub_date_start_sort desc, title_sort asc</str></lst>
<lst><str name="q">*:*</str><str name="sort">pub_date_start_sort asc, title_sort asc</str></lst>
<lst><str name="q">*:*</str><str name="sort">author_sort asc, title_sort asc</str></lst>
<lst><str name="q">*:*</str><str name="sort">title_sort asc, pub_date_start_sort desc</str></lst>
<lst><str name="q">nature</str><str name="sort">score desc, pub_date_start_sort desc, title_sort asc</str></lst>
<lst><str name="q">time</str><str name="sort">score desc, pub_date_start_sort desc, title_sort asc</str></lst>
<lst><str name="q">book</str><str name="sort">score desc, pub_date_start_sort desc, title_sort asc</str></lst>
<lst><str name="q">science</str><str name="sort">score desc, pub_date_start_sort desc, title_sort asc</str></lst>
<lst><str name="q">music</str><str name="sort">score desc, pub_date_start_sort desc, title_sort asc</str></lst>
<lst><str name="fq">format:Audio</str></lst>
<lst><str name="fq">format:Book</str></lst>
<lst><str name="fq">format:Data File</str></lst>
<lst><str name="fq">format:Journal</str></lst>
<lst><str name="fq">format:Manuscript</str></lst>
<lst><str name="fq">format:Map</str></lst>
<lst><str name="fq">format:Mixed Material</str></lst>
<lst><str name="fq">format:Musical Score</str></lst>
<lst><str name="fq">format:Senior Thesis</str></lst>
<lst><str name="fq">format:Thesis</str></lst>
<lst><str name="fq">format:Video/Projected Medium</str></lst>
<lst><str name="fq">format:Visual Material</str></lst>
<lst><str name="fq">location:Architecture Library</str></lst>
<lst><str name="fq">location:East Asian Library</str></lst>
<lst><str name="fq">location:Engineering Library</str></lst>
<lst><str name="fq">location:Fine Annex</str></lst>
<lst><str name="fq">location:Firestone Library</str></lst>
<lst><str name="fq">location:Forrestal Annex</str></lst>
<lst><str name="fq">location:Harold P. Furth Plasma Physics Library</str></lst>
<lst><str name="fq">location:Lewis Library</str></lst>
<lst><str name="fq">location:Marquand Library</str></lst>
<lst><str name="fq">location:Mendel Music Library</str></lst>
<lst><str name="fq">location:Mudd Manuscript Library</str></lst>
<lst><str name="fq">location:Rare Books and Special Collections</str></lst>
<lst><str name="fq">location:ReCAP</str></lst>
<lst><str name="fq">location:Stokes Library</str></lst>
<lst><str name="fq">location:Video Library</str></lst>
<lst><str name="fq">cataloged_tdt:[NOW/DAY-7DAYS NOW/DAY+1DAY]</str></lst>
<lst><str name="fq">cataloged_tdt:[NOW/DAY-14DAYS NOW/DAY+1DAY]</str></lst>
<lst><str name="fq">cataloged_tdt:[NOW/DAY-21DAYS NOW/DAY+1DAY]</str></lst>
<lst><str name="fq">cataloged_tdt:[NOW/DAY-1MONTH NOW/DAY+1DAY]</str></lst>
<lst><str name="fq">cataloged_tdt:[NOW/DAY-2MONTHS NOW/DAY+1DAY]</str></lst>
<lst><str name="fq">cataloged_tdt:[NOW/DAY-3MONTHS NOW/DAY+1DAY]</str></lst>
<lst><str name="fq">cataloged_tdt:[NOW/DAY-6MONTHS NOW/DAY+1DAY]</str></lst>
<lst><str name="fq">language_facet:English</str></lst>
<lst><str name="fq">language_facet:German</str></lst>
<lst><str name="fq">language_facet:French</str></lst>
<lst><str name="fq">language_facet:Spanish</str></lst>
<lst><str name="fq">language_facet:Chinese</str></lst>
<lst><str name="fq">language_facet:Italian</str></lst>
<lst><str name="fq">language_facet:Russian</str></lst>
<lst><str name="fq">language_facet:Arabic</str></lst>
<lst><str name="fq">language_facet:Japanese</str></lst>
<lst><str name="fq">language_facet:Latin</str></lst>
<lst><str name="fq">subject_era_facet:20th century</str></lst>
<lst><str name="fq">subject_era_facet:19th century</str></lst>
<lst><str name="fq">subject_era_facet:18th century</str></lst>
<lst><str name="fq">subject_era_facet:21st century</str></lst>
<lst><str name="fq">subject_era_facet:17th century</str></lst>
<lst><str name="fq">lc_1letter_facet:A - General Works</str></lst>
<lst><str name="fq">lc_1letter_facet:B - Philosophy, Psychology, Religion</str></lst>
<lst><str name="fq">lc_1letter_facet:C - Historical Sciences (Archaeology, Genealogy)</str></lst>
<lst><str name="fq">lc_1letter_facet:D - World History</str></lst>
<lst><str name="fq">lc_1letter_facet:E - History of the Americas (General)</str></lst>
<lst><str name="fq">lc_1letter_facet:F - History of the Americas (Local)</str></lst>
<lst><str name="fq">lc_1letter_facet:G - Geography, Anthropology, Recreation</str></lst>
<lst><str name="fq">lc_1letter_facet:H - Social Sciences</str></lst>
<lst><str name="fq">lc_1letter_facet:J - Political Science</str></lst>
<lst><str name="fq">lc_1letter_facet:K - Law</str></lst>
<lst><str name="fq">lc_1letter_facet:L - Education</str></lst>
<lst><str name="fq">lc_1letter_facet:M - Music</str></lst>
<lst><str name="fq">lc_1letter_facet:N - Fine Arts</str></lst>
<lst><str name="fq">lc_1letter_facet:P - Language & Literature</str></lst>
<lst><str name="fq">lc_1letter_facet:Q - Science</str></lst>
<lst><str name="fq">lc_1letter_facet:R - Medicine</str></lst>
<lst><str name="fq">lc_1letter_facet:S - Agriculture</str></lst>
<lst><str name="fq">lc_1letter_facet:T - Technology</str></lst>
<lst><str name="fq">lc_1letter_facet:U - Military Science</str></lst>
<lst><str name="fq">lc_1letter_facet:Z - Bibliography, Library Science, Information Resources</str></lst>
<lst><str name="fq">subject_topic_facet:History</str></lst>
<lst><str name="fq">subject_topic_facet:United States</str></lst>
<lst><str name="fq">subject_topic_facet:Politics and government</str></lst>
<lst><str name="fq">subject_topic_facet:History and criticism</str></lst>
<lst><str name="fq">subject_topic_facet:Great Britain</str></lst>
<lst><str name="fq">subject_topic_facet:United States. Congress</str></lst>
<lst><str name="fq">subject_topic_facet:Claims</str></lst>
<lst><str name="fq">subject_topic_facet:Bills, Private</str></lst>
<lst><str name="fq">subject_topic_facet:China</str></lst>
<lst><str name="fq">subject_topic_facet:France</str></lst>
<lst><str name="fq">genre_facet:Biography</str></lst>
<lst><str name="fq">genre_facet:Congresses</str></lst>
<lst><str name="fq">genre_facet:Periodicals</str></lst>
<lst><str name="fq">genre_facet:Private bills</str></lst>
<lst><str name="fq">genre_facet:Exhibitions</str></lst>
<lst><str name="fq">genre_facet:Early works to 1800</str></lst>
<lst><str name="fq">genre_facet:Fiction</str></lst>
<lst><str name="fq">genre_facet:Maps</str></lst>
<lst><str name="fq">genre_facet:Bibliography</str></lst>
<lst><str name="fq">genre_facet:Catalogs</str></lst>
<lst><str name="fq">sudoc_facet:X/Y - Congress</str></lst>
<lst><str name="fq">acces_facet:Online</str></lst>
<lst><str name="fq">acces_facet:In the Library</str></lst>
</arr>
</listener>
</query>
<!-- SearchHandler
http://wiki.apache.org/solr/SearchHandler
For processing Search Queries, the primary Request Handler
provided with Solr is "SearchHandler" It delegates to a sequent
of SearchComponents (see below) and supports distributed
queries across multiple shards
-->
<requestHandler name="search" class="solr.SearchHandler" default="true">
<!-- default values for query parameters can be specified, these
will be overridden by parameters in the request
-->
<lst name="defaults">
<str name="defType">edismax</str>
<str name="echoParams">explicit</str>
<int name="rows">10</int>
<str name="sow">on</str>
<str name="q.alt">*:*</str>
<str name="mm">6<90%</str>
<!-- boost local holdings (add 50 to the score) to reduce unnecessary requests -->
<str name="bf">if(field(numeric_id_b),50,0)</str>
<!-- this qf and pf are used by default, if not otherwise specified by
client. The default blacklight_config will use these for the
"keywords" search. See the author_qf/author_pf, title_qf, etc
below, which the default blacklight_config will specify for
those searches. You may also be interested in:
http://wiki.apache.org/solr/LocalParams
-->
<str name="qf">
title_a_index^1500
author_main_unstem_search^1000
title_unstem_search^40
title_display^40
author_unstem_search^40
subject_topic_unstem_search^18
subject_unstem_search^15
subject_topic_index^12
subject_t^10
subject_addl_unstem_search^8
subject_addl_t^4
isbn_t^3
issn_s^3
lccn_s^3
text
description_t
cjk_all
</str>
<str name="pf">
title_245a_lr^16000
title_245_lr^16000
title_a_index^12000
author_main_unstem_search^10000
title_unstem_search^400
title_display^400
author_unstem_search^400
subject_topic_unstem_search^180
subject_unstem_search^150
subject_topic_index^120
subject_t^100
subject_addl_unstem_search^80
subject_addl_t^40
isbn_t^30
issn_s^30
lccn_s^30
text^10
description_t^10
cjk_all^10
</str>
<str name="author_qf">
author_main_unstem_search^20
author_unstem_search^10
cjk_author
</str>
<str name="author_pf">
author_main_unstem_search^200
author_unstem_search^100
cjk_author^10
</str>
<str name="left_anchor_qf">
title_245a_la^50
title_245_la^10
title_la^2
title_addl_la
</str>
<str name="left_anchor_pf">
title_245a_lr^600
title_245_lr^600
title_245a_la^500
title_245_la^100
title_lr^100
title_la^20
title_addl_la^10
</str>
<str name="in_series_qf">
more_in_this_series_la
</str>
<str name="in_series_pf">
more_in_this_series_la
</str>
<str name="publisher_qf">
pub_created_unstem_search
cjk_publisher
</str>
<str name="publisher_pf">
pub_created_unstem_search
cjk_publisher
</str>
<str name="notes_qf">
notes_index
cjk_notes
</str>
<str name="notes_pf">
notes_index
cjk_notes
</str>
<str name="series_title_qf">
series_title_index^5
series_ae_index
series_statement_index
linked_series_title_index
linked_series_index
original_version_series_index
cjk_series_title
</str>
<str name="series_title_pf">
series_title_index^50
series_ae_index^10
series_statement_index^10
linked_series_title_index^10
linked_series_index^10
original_version_series_index^10
cjk_series_title^10
</str>
<str name="title_qf">
title_a_index^500
title_unstem_search^100
title_display^50
other_title_index^5
series_title_index^5
uniform_title_s^5
title_vern_display
content_title_index
contains_title_index
linked_title_index
series_ae_index
series_statement_index
linked_series_title_index
linked_series_index
original_version_series_index
cjk_title
</str>
<str name="title_pf">
title_245a_lr^5500
title_245_lr^5500
title_a_index^5000
title_unstem_search^1000
title_display^500
other_title_index^50
series_title_index^50
uniform_title_s^50
title_vern_display^10
content_title_index^10
contains_title_index^10
linked_title_index^10
series_ae_index^10
series_statement_index^10
linked_series_title_index^10
linked_series_index^10
original_version_series_index^10
cjk_title^10
</str>
<str name="subject_qf">
subject_topic_unstem_search^25
subject_unstem_search^20
cjk_subject
</str>
<str name="subject_pf">
subject_topic_unstem_search^250
subject_unstem_search^200
cjk_subject^10
</str>
<int name="ps">3</int>
<float name="tie">0.01</float>
<str name="fl">
id,
score,
author_display,
marc_relator_display,
format,
pub_created_display,
title_display,
title_vern_display,
isbn_s,
oclc_s,
lccn_s,
holdings_1display,
electronic_access_1display,
cataloged_tdt
</str>
<str name="facet">true</str>
<str name="facet.mincount">1</str>
<str name="facet.limit">10</str>
<str name="facet.field">format</str>
<str name="facet.field">language_facet</str>
<str name="facet.field">pub_date_start_sort</str>
<str name="facet.field">advanced_location_s</str>
<str name="f.format.facet.sort">index</str>
<str name="f.advanced_location_s.facet.sort">index</str>
<str name="f.language_facet.facet.limit">1000</str>
<str name="f.advanced_location_s.facet.limit">500</str>
<!--
<str name="facet.method">enum</str>
<str name="facet.enum.cache.minDf">25000</str>
-->
</lst>
<!-- In addition to defaults, "appends" params can be specified
to identify values which should be appended to the list of
multi-val params from the query (or the existing "defaults").
-->
<!-- In this example, the param "fq=instock:true" would be appended to
any query time fq params the user may specify, as a mechanism for
partitioning the index, independent of any user selected filtering
that may also be desired (perhaps as a result of faceted searching).
NOTE: there is *absolutely* nothing a client can do to prevent these
"appends" values from being used, so don't use this mechanism
unless you are sure you always want it.
-->
<!--
<lst name="appends">
<str name="fq">inStock:true</str>
</lst>
-->
<!-- "invariants" are a way of letting the Solr maintainer lock down
the options available to Solr clients. Any params values
specified here are used regardless of what values may be specified
in either the query, the "defaults", or the "appends" params.
In this example, the facet.field and facet.query params would
be fixed, limiting the facets clients can use. Faceting is
not turned on by default - but if the client does specify
facet=true in the request, these are the only facets they
will be able to see counts for; regardless of what other
facet.field or facet.query params they may specify.
NOTE: there is *absolutely* nothing a client can do to prevent these
"invariants" values from being used, so don't use this mechanism
unless you are sure you always want it.
-->
<!--
<lst name="invariants">
<str name="facet.field">cat</str>
<str name="facet.field">manu_exact</str>
<str name="facet.query">price:[* TO 500]</str>
<str name="facet.query">price:[500 TO *]</str>
</lst>
-->
<!-- If the default list of SearchComponents is not desired, that
list can either be overridden completely, or components can be
prepended or appended to the default list. (see below)
-->
<!--
<arr name="components">
<str>nameOfCustomComponent1</str>
<str>nameOfCustomComponent2</str>
</arr>
-->
</requestHandler>
<!-- for requests to get a single document; use id=666 instead of q=id:666 -->
<requestHandler name="document" class="solr.SearchHandler" >
<lst name="defaults">
<str name="echoParams">all</str>
<str name="fl">*</str>
<str name="rows">1</str>
<str name="q">{!raw f=id v=$id}</str> <!-- use id=666 instead of q=id:666 -->
</lst>
</requestHandler>
</config>