blacklight-marc 6.0.0 → 7.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +1 -2
- data/.solr_wrapper.yaml +5 -0
- data/.travis.yml +9 -11
- data/Gemfile +30 -14
- data/README.md +29 -8
- data/Rakefile +8 -20
- data/app/assets/stylesheets/blacklight_marc.scss +4 -6
- data/app/helpers/blacklight_marc_helper.rb +5 -4
- data/app/models/concerns/blacklight/solr/document/marc.rb +13 -12
- data/app/models/concerns/blacklight/solr/document/marc_export.rb +53 -50
- data/app/views/bookmarks/_endnote.html.erb +1 -1
- data/app/views/bookmarks/_refworks.html.erb +1 -1
- data/app/views/catalog/_marc_view.html.erb +4 -4
- data/app/views/catalog/endnote.endnote.erb +1 -1
- data/app/views/catalog/librarian_view.html.erb +7 -4
- data/blacklight-marc.gemspec +12 -12
- data/config/routes.rb +1 -1
- data/lib/blacklight/marc/catalog.rb +9 -15
- data/lib/blacklight/marc/engine.rb +2 -0
- data/lib/blacklight/marc/indexer.rb +9 -39
- data/lib/blacklight/marc/indexer/formats.rb +13 -15
- data/lib/blacklight/marc/routes.rb +2 -39
- data/lib/blacklight/marc/routes/marc_viewable.rb +20 -0
- data/lib/blacklight/marc/version.rb +1 -1
- data/lib/generators/blacklight/marc/install_generator.rb +16 -9
- data/lib/generators/blacklight/marc/templates/app/models/marc_indexer.rb +59 -59
- data/lib/generators/blacklight/marc/templates/config/translation_maps/callnumber_map.properties +149 -11
- data/lib/railties/solr_marc.rake +33 -33
- data/solr/conf/_rest_managed.json +3 -0
- data/solr/conf/admin-extra.html +31 -0
- data/solr/conf/elevate.xml +36 -0
- data/solr/conf/mapping-ISOLatin1Accent.txt +246 -0
- data/solr/conf/protwords.txt +21 -0
- data/solr/conf/schema.xml +388 -0
- data/solr/conf/scripts.conf +24 -0
- data/solr/conf/solrconfig.xml +195 -0
- data/solr/conf/spellings.txt +2 -0
- data/solr/conf/stopwords.txt +58 -0
- data/solr/conf/stopwords_en.txt +58 -0
- data/solr/conf/synonyms.txt +31 -0
- data/solr/conf/xslt/example.xsl +132 -0
- data/solr/conf/xslt/example_atom.xsl +67 -0
- data/solr/conf/xslt/example_rss.xsl +66 -0
- data/solr/conf/xslt/luke.xsl +337 -0
- data/spec/controllers/catalog_controller_spec.rb +11 -6
- data/spec/features/bookmarks_spec.rb +2 -1
- data/spec/features/search_formats_spec.rb +3 -3
- data/spec/integration/solr_document_spec.rb +19 -19
- data/spec/lib/blacklight_solr_document_marc_spec.rb +7 -7
- data/spec/lib/indexer/dewey_spec.rb +4 -4
- data/spec/lib/indexer/formats_spec.rb +9 -1
- data/spec/lib/marc_export_spec.rb +46 -46
- data/spec/lib/tasks/solr_marc_task_spec.rb +7 -7
- data/spec/lib/traject_indexer_spec.rb +6 -2
- data/spec/routing/routes_spec.rb +0 -6
- data/spec/spec_helper.rb +2 -2
- data/spec/test_app_templates/Gemfile.extra +2 -0
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +15 -14
- data/spec/views/bookmarks/_endnote.html.erb_spec.rb +16 -6
- data/spec/views/bookmarks/_refworks.html.erb_spec.rb +17 -7
- data/spec/views/catalog/index.atom.builder_spec.rb +12 -17
- data/test_support/config/translation_maps/test_formats.properties +3 -1
- metadata +85 -60
- data/app/helpers/blacklight_bookmarks_helper.rb +0 -3
- data/config/jetty.yml +0 -4
@@ -0,0 +1,21 @@
|
|
1
|
+
# The ASF licenses this file to You under the Apache License, Version 2.0
|
2
|
+
# (the "License"); you may not use this file except in compliance with
|
3
|
+
# the License. You may obtain a copy of the License at
|
4
|
+
#
|
5
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software
|
8
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
9
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
10
|
+
# See the License for the specific language governing permissions and
|
11
|
+
# limitations under the License.
|
12
|
+
|
13
|
+
#-----------------------------------------------------------------------
|
14
|
+
# Use a protected word file to protect against the stemmer reducing two
|
15
|
+
# unrelated words to the same base word.
|
16
|
+
|
17
|
+
# Some non-words that normally won't be encountered,
|
18
|
+
# just to test that they won't be stemmed.
|
19
|
+
dontstems
|
20
|
+
zwhacky
|
21
|
+
|
@@ -0,0 +1,388 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<schema name="Hydra" version="1.5">
|
3
|
+
<!-- NOTE: various comments and unused configuration possibilities have been purged
|
4
|
+
from this file. Please refer to http://wiki.apache.org/solr/SchemaXml,
|
5
|
+
as well as the default schema file included with Solr -->
|
6
|
+
|
7
|
+
<uniqueKey>id</uniqueKey>
|
8
|
+
|
9
|
+
<fields>
|
10
|
+
<field name="id" type="string" stored="true" indexed="true" multiValued="false" required="true"/>
|
11
|
+
<field name="format" type="string" stored="true" indexed="true" multiValued="true" />
|
12
|
+
<field name="_version_" type="long" indexed="true" stored="true"/>
|
13
|
+
<field name="timestamp" type="date" indexed="true" stored="true" default="NOW" multiValued="false"/>
|
14
|
+
|
15
|
+
<field name="lat" type="tdouble" stored="true" indexed="true" multiValued="false"/>
|
16
|
+
<field name="lng" type="tdouble" stored="true" indexed="true" multiValued="false"/>
|
17
|
+
<!-- NOTE: not all possible Solr field types are represented in the dynamic fields -->
|
18
|
+
|
19
|
+
<!-- text (_t...) -->
|
20
|
+
|
21
|
+
<dynamicField name="*_ti" type="text" stored="false" indexed="true" multiValued="false"/>
|
22
|
+
<dynamicField name="*_tim" type="text" stored="false" indexed="true" multiValued="true"/>
|
23
|
+
|
24
|
+
<dynamicField name="*_ts" type="text" stored="true" indexed="false" multiValued="false"/>
|
25
|
+
<dynamicField name="*_tsm" type="text" stored="true" indexed="false" multiValued="true"/>
|
26
|
+
<dynamicField name="*_tsi" type="text" stored="true" indexed="true" multiValued="false"/>
|
27
|
+
<dynamicField name="*_tsim" type="text" stored="true" indexed="true" multiValued="true"/>
|
28
|
+
|
29
|
+
<dynamicField name="*_tiv" type="text" stored="false" indexed="true" multiValued="false" termVectors="true" termPositions="true" termOffsets="true"/>
|
30
|
+
<dynamicField name="*_timv" type="text" stored="false" indexed="true" multiValued="true" termVectors="true" termPositions="true" termOffsets="true"/>
|
31
|
+
|
32
|
+
<dynamicField name="*_tsiv" type="text" stored="true" indexed="true" multiValued="false" termVectors="true" termPositions="true" termOffsets="true"/>
|
33
|
+
<dynamicField name="*_tsimv" type="text" stored="true" indexed="true" multiValued="true" termVectors="true" termPositions="true" termOffsets="true"/>
|
34
|
+
|
35
|
+
<!-- English text (_te...) -->
|
36
|
+
|
37
|
+
<dynamicField name="*_tei" type="text_en" stored="false" indexed="true" multiValued="false"/>
|
38
|
+
<dynamicField name="*_teim" type="text_en" stored="false" indexed="true" multiValued="true"/>
|
39
|
+
|
40
|
+
<dynamicField name="*_tes" type="text_en" stored="true" indexed="false" multiValued="false"/>
|
41
|
+
<dynamicField name="*_tesm" type="text_en" stored="true" indexed="false" multiValued="true"/>
|
42
|
+
<dynamicField name="*_tesi" type="text_en" stored="true" indexed="true" multiValued="false"/>
|
43
|
+
<dynamicField name="*_tesim" type="text_en" stored="true" indexed="true" multiValued="true"/>
|
44
|
+
|
45
|
+
<dynamicField name="*_teiv" type="text_en" stored="false" indexed="true" multiValued="false" termVectors="true" termPositions="true" termOffsets="true"/>
|
46
|
+
<dynamicField name="*_teimv" type="text_en" stored="false" indexed="true" multiValued="true" termVectors="true" termPositions="true" termOffsets="true"/>
|
47
|
+
|
48
|
+
<dynamicField name="*_tesiv" type="text_en" stored="true" indexed="true" multiValued="false" termVectors="true" termPositions="true" termOffsets="true"/>
|
49
|
+
<dynamicField name="*_tesimv" type="text_en" stored="true" indexed="true" multiValued="true" termVectors="true" termPositions="true" termOffsets="true"/>
|
50
|
+
|
51
|
+
<!-- string (_s...) -->
|
52
|
+
|
53
|
+
<dynamicField name="*_si" type="string" stored="false" indexed="true" multiValued="false"/>
|
54
|
+
<dynamicField name="*_sim" type="string" stored="false" indexed="true" multiValued="true"/>
|
55
|
+
|
56
|
+
<dynamicField name="*_ss" type="string" stored="true" indexed="false" multiValued="false"/>
|
57
|
+
<dynamicField name="*_ssm" type="string" stored="true" indexed="false" multiValued="true"/>
|
58
|
+
<dynamicField name="*_ssi" type="string" stored="true" indexed="true" multiValued="false"/>
|
59
|
+
<dynamicField name="*_ssim" type="string" stored="true" indexed="true" multiValued="true"/>
|
60
|
+
|
61
|
+
<dynamicField name="*_ssort" type="alphaSort" stored="false" indexed="true" multiValued="false"/>
|
62
|
+
|
63
|
+
|
64
|
+
<!-- integer (_i...) -->
|
65
|
+
|
66
|
+
<dynamicField name="*_ii" type="int" stored="false" indexed="true" multiValued="false"/>
|
67
|
+
<dynamicField name="*_iim" type="int" stored="false" indexed="true" multiValued="true"/>
|
68
|
+
|
69
|
+
<dynamicField name="*_is" type="int" stored="true" indexed="false" multiValued="false"/>
|
70
|
+
<dynamicField name="*_ism" type="int" stored="true" indexed="false" multiValued="true"/>
|
71
|
+
<dynamicField name="*_isi" type="int" stored="true" indexed="true" multiValued="false"/>
|
72
|
+
<dynamicField name="*_isim" type="int" stored="true" indexed="true" multiValued="true"/>
|
73
|
+
|
74
|
+
<!-- IntegerPointField (_it...) (for faster range queries) -->
|
75
|
+
|
76
|
+
<dynamicField name="*_iti" type="tint" stored="false" indexed="true" multiValued="false"/>
|
77
|
+
<dynamicField name="*_itim" type="tint" stored="false" indexed="true" multiValued="true"/>
|
78
|
+
|
79
|
+
<dynamicField name="*_its" type="tint" stored="true" indexed="false" multiValued="false"/>
|
80
|
+
<dynamicField name="*_itsm" type="tint" stored="true" indexed="false" multiValued="true"/>
|
81
|
+
<dynamicField name="*_itsi" type="tint" stored="true" indexed="true" multiValued="false"/>
|
82
|
+
<dynamicField name="*_itsim" type="tint" stored="true" indexed="true" multiValued="true"/>
|
83
|
+
|
84
|
+
<!-- date (_dt...) -->
|
85
|
+
<!-- The format for this date field is of the form 1995-12-31T23:59:59Z
|
86
|
+
Optional fractional seconds are allowed: 1995-12-31T23:59:59.999Z -->
|
87
|
+
|
88
|
+
<dynamicField name="*_dti" type="date" stored="false" indexed="true" multiValued="false"/>
|
89
|
+
<dynamicField name="*_dtim" type="date" stored="false" indexed="true" multiValued="true"/>
|
90
|
+
|
91
|
+
<dynamicField name="*_dts" type="date" stored="true" indexed="false" multiValued="false"/>
|
92
|
+
<dynamicField name="*_dtsm" type="date" stored="true" indexed="false" multiValued="true"/>
|
93
|
+
<dynamicField name="*_dtsi" type="date" stored="true" indexed="true" multiValued="false"/>
|
94
|
+
<dynamicField name="*_dtsim" type="date" stored="true" indexed="true" multiValued="true"/>
|
95
|
+
|
96
|
+
<!-- DatePointField (_dtt...) (for faster range queries) -->
|
97
|
+
|
98
|
+
<dynamicField name="*_dtti" type="tdate" stored="false" indexed="true" multiValued="false"/>
|
99
|
+
<dynamicField name="*_dttim" type="tdate" stored="false" indexed="true" multiValued="true"/>
|
100
|
+
|
101
|
+
<dynamicField name="*_dtts" type="tdate" stored="true" indexed="false" multiValued="false"/>
|
102
|
+
<dynamicField name="*_dttsm" type="tdate" stored="true" indexed="false" multiValued="true"/>
|
103
|
+
<dynamicField name="*_dttsi" type="tdate" stored="true" indexed="true" multiValued="false"/>
|
104
|
+
<dynamicField name="*_dttsim" type="tdate" stored="true" indexed="true" multiValued="true"/>
|
105
|
+
|
106
|
+
<!-- long (_l...) -->
|
107
|
+
|
108
|
+
<dynamicField name="*_li" type="long" stored="false" indexed="true" multiValued="false"/>
|
109
|
+
<dynamicField name="*_lim" type="long" stored="false" indexed="true" multiValued="true"/>
|
110
|
+
|
111
|
+
<dynamicField name="*_ls" type="long" stored="true" indexed="false" multiValued="false"/>
|
112
|
+
<dynamicField name="*_lsm" type="long" stored="true" indexed="false" multiValued="true"/>
|
113
|
+
<dynamicField name="*_lsi" type="long" stored="true" indexed="true" multiValued="false"/>
|
114
|
+
<dynamicField name="*_lsim" type="long" stored="true" indexed="true" multiValued="true"/>
|
115
|
+
|
116
|
+
<!-- LongPointField (_lt...) (for faster range queries) -->
|
117
|
+
|
118
|
+
<dynamicField name="*_lti" type="tlong" stored="false" indexed="true" multiValued="false"/>
|
119
|
+
<dynamicField name="*_ltim" type="tlong" stored="false" indexed="true" multiValued="true"/>
|
120
|
+
|
121
|
+
<dynamicField name="*_lts" type="tlong" stored="true" indexed="false" multiValued="false"/>
|
122
|
+
<dynamicField name="*_ltsm" type="tlong" stored="true" indexed="false" multiValued="true"/>
|
123
|
+
<dynamicField name="*_ltsi" type="tlong" stored="true" indexed="true" multiValued="false"/>
|
124
|
+
<dynamicField name="*_ltsim" type="tlong" stored="true" indexed="true" multiValued="true"/>
|
125
|
+
|
126
|
+
<!-- double (_db...) -->
|
127
|
+
|
128
|
+
<dynamicField name="*_dbi" type="double" stored="false" indexed="true" multiValued="false"/>
|
129
|
+
<dynamicField name="*_dbim" type="double" stored="false" indexed="true" multiValued="true"/>
|
130
|
+
|
131
|
+
<dynamicField name="*_dbs" type="double" stored="true" indexed="false" multiValued="false"/>
|
132
|
+
<dynamicField name="*_dbsm" type="double" stored="true" indexed="false" multiValued="true"/>
|
133
|
+
<dynamicField name="*_dbsi" type="double" stored="true" indexed="true" multiValued="false"/>
|
134
|
+
<dynamicField name="*_dbsim" type="double" stored="true" indexed="true" multiValued="true"/>
|
135
|
+
|
136
|
+
<!-- DoublePointField (_dbt...) (for faster range queries) -->
|
137
|
+
|
138
|
+
<dynamicField name="*_dbti" type="tdouble" stored="false" indexed="true" multiValued="false"/>
|
139
|
+
<dynamicField name="*_dbtim" type="tdouble" stored="false" indexed="true" multiValued="true"/>
|
140
|
+
|
141
|
+
<dynamicField name="*_dbts" type="tdouble" stored="true" indexed="false" multiValued="false"/>
|
142
|
+
<dynamicField name="*_dbtsm" type="tdouble" stored="true" indexed="false" multiValued="true"/>
|
143
|
+
<dynamicField name="*_dbtsi" type="tdouble" stored="true" indexed="true" multiValued="false"/>
|
144
|
+
<dynamicField name="*_dbtsim" type="tdouble" stored="true" indexed="true" multiValued="true"/>
|
145
|
+
|
146
|
+
<!-- float (_f...) -->
|
147
|
+
|
148
|
+
<dynamicField name="*_fi" type="float" stored="false" indexed="true" multiValued="false"/>
|
149
|
+
<dynamicField name="*_fim" type="float" stored="false" indexed="true" multiValued="true"/>
|
150
|
+
|
151
|
+
<dynamicField name="*_fs" type="float" stored="true" indexed="false" multiValued="false"/>
|
152
|
+
<dynamicField name="*_fsm" type="float" stored="true" indexed="false" multiValued="true"/>
|
153
|
+
<dynamicField name="*_fsi" type="float" stored="true" indexed="true" multiValued="false"/>
|
154
|
+
<dynamicField name="*_fsim" type="float" stored="true" indexed="true" multiValued="true"/>
|
155
|
+
|
156
|
+
<!-- FloatPointField (_ft...) (for faster range queries) -->
|
157
|
+
|
158
|
+
<dynamicField name="*_fti" type="tfloat" stored="false" indexed="true" multiValued="false"/>
|
159
|
+
<dynamicField name="*_ftim" type="tfloat" stored="false" indexed="true" multiValued="true"/>
|
160
|
+
|
161
|
+
<dynamicField name="*_fts" type="tfloat" stored="true" indexed="false" multiValued="false"/>
|
162
|
+
<dynamicField name="*_ftsm" type="tfloat" stored="true" indexed="false" multiValued="true"/>
|
163
|
+
<dynamicField name="*_ftsi" type="tfloat" stored="true" indexed="true" multiValued="false"/>
|
164
|
+
<dynamicField name="*_ftsim" type="tfloat" stored="true" indexed="true" multiValued="true"/>
|
165
|
+
|
166
|
+
<!-- boolean (_b...) -->
|
167
|
+
|
168
|
+
<dynamicField name="*_bi" type="boolean" stored="false" indexed="true" multiValued="false"/>
|
169
|
+
|
170
|
+
<dynamicField name="*_bs" type="boolean" stored="true" indexed="false" multiValued="false"/>
|
171
|
+
<dynamicField name="*_bsi" type="boolean" stored="true" indexed="true" multiValued="false"/>
|
172
|
+
|
173
|
+
<!-- Type used to index the lat and lon components for the "location" FieldType -->
|
174
|
+
|
175
|
+
<dynamicField name="*_coordinate" type="tdouble" indexed="true" stored="false" />
|
176
|
+
|
177
|
+
|
178
|
+
<!-- location (_ll...) -->
|
179
|
+
|
180
|
+
<dynamicField name="*_lli" type="location" stored="false" indexed="true" multiValued="false"/>
|
181
|
+
<dynamicField name="*_llim" type="location" stored="false" indexed="true" multiValued="true"/>
|
182
|
+
|
183
|
+
<dynamicField name="*_lls" type="location" stored="true" indexed="false" multiValued="false"/>
|
184
|
+
<dynamicField name="*_llsm" type="location" stored="true" indexed="false" multiValued="true"/>
|
185
|
+
<dynamicField name="*_llsi" type="location" stored="true" indexed="true" multiValued="false"/>
|
186
|
+
<dynamicField name="*_llsim" type="location" stored="true" indexed="true" multiValued="true"/>
|
187
|
+
|
188
|
+
<dynamicField name="*_srpt" type="location_rpt" stored="true" indexed="true" multiValued="true" />
|
189
|
+
<dynamicField name="*_bbox" type="bbox" stored="true" indexed="true" />
|
190
|
+
|
191
|
+
|
192
|
+
<!-- suggest and spelling -->
|
193
|
+
<dynamicField name="*spell" type="textSpell" indexed="true" stored="false" multiValued="true" />
|
194
|
+
<dynamicField name="*suggest" type="textSuggest" indexed="true" stored="false" multiValued="true" />
|
195
|
+
|
196
|
+
<!-- you must define copyField source and dest fields explicity or schemaBrowser doesn't work -->
|
197
|
+
<field name="all_text_timv" type="text" stored="false" indexed="true" multiValued="true" termVectors="true" termPositions="true" termOffsets="true"/>
|
198
|
+
|
199
|
+
|
200
|
+
</fields>
|
201
|
+
|
202
|
+
|
203
|
+
<!-- Above, multiple source fields are copied to the [text] field.
|
204
|
+
Another way to map multiple source fields to the same
|
205
|
+
destination field is to use the dynamic field syntax.
|
206
|
+
copyField also supports a maxChars to copy setting. -->
|
207
|
+
|
208
|
+
<copyField source="*_tsim" dest="all_text_timv" maxChars="3000"/>
|
209
|
+
<copyField source="*_tesim" dest="all_text_timv" maxChars="3000"/>
|
210
|
+
<copyField source="*_ssim" dest="all_text_timv" maxChars="3000"/>
|
211
|
+
<copyField source="*_si" dest="all_text_timv" maxChars="3000"/>
|
212
|
+
|
213
|
+
<copyField source="*_tsim" dest="suggest"/>
|
214
|
+
<copyField source="*_tesim" dest="suggest"/>
|
215
|
+
<copyField source="*_ssim" dest="suggest"/>
|
216
|
+
<copyField source="*_si" dest="suggest"/>
|
217
|
+
|
218
|
+
<!-- TODO: Look into if these are actually being used. -->
|
219
|
+
<copyField source="*_tsim" dest="spell"/>
|
220
|
+
<copyField source="*_tesim" dest="spell"/>
|
221
|
+
<copyField source="*_ssim" dest="spell"/>
|
222
|
+
<copyField source="*_si" dest="spell"/>
|
223
|
+
|
224
|
+
<copyField source="author_tsim" dest="author_spell"/>
|
225
|
+
<copyField source="subject_ssim" dest="subject_spell"/>
|
226
|
+
<copyField source="title_tsim" dest="title_spell"/>
|
227
|
+
|
228
|
+
<types>
|
229
|
+
<fieldType name="string" class="solr.StrField" sortMissingLast="true" />
|
230
|
+
<fieldType name="boolean" class="solr.BoolField" sortMissingLast="true"/>
|
231
|
+
<fieldType name="rand" class="solr.RandomSortField" omitNorms="true"/>
|
232
|
+
|
233
|
+
<!-- Default numeric field types. -->
|
234
|
+
<fieldType name="int" class="solr.IntPointField" docValues="true"/>
|
235
|
+
<fieldType name="float" class="solr.FloatPointField" docValues="true"/>
|
236
|
+
<fieldType name="long" class="solr.LongPointField" docValues="true"/>
|
237
|
+
<fieldType name="double" class="solr.DoublePointField" docValues="true"/>
|
238
|
+
|
239
|
+
<!-- PointField numeric field types for faster range queries -->
|
240
|
+
<fieldType name="tint" class="solr.IntPointField" docValues="true"/>
|
241
|
+
<fieldType name="tfloat" class="solr.FloatPointField" docValues="true"/>
|
242
|
+
<fieldType name="tlong" class="solr.LongPointField" docValues="true"/>
|
243
|
+
<fieldType name="tdouble" class="solr.DoublePointField" docValues="true"/>
|
244
|
+
|
245
|
+
<!-- The format for this date field is of the form 1995-12-31T23:59:59Z
|
246
|
+
Optional fractional seconds are allowed: 1995-12-31T23:59:59.999Z
|
247
|
+
-->
|
248
|
+
<fieldType name="date" class="solr.DatePointField" docValues="true"/>
|
249
|
+
<!-- A PointField based date field for faster date range queries and date faceting. -->
|
250
|
+
<fieldType name="tdate" class="solr.DatePointField" docValues="true"/>
|
251
|
+
|
252
|
+
|
253
|
+
<!-- This point type indexes the coordinates as separate fields (subFields)
|
254
|
+
If subFieldType is defined, it references a type, and a dynamic field
|
255
|
+
definition is created matching *___<typename>. Alternately, if
|
256
|
+
subFieldSuffix is defined, that is used to create the subFields.
|
257
|
+
Example: if subFieldType="double", then the coordinates would be
|
258
|
+
indexed in fields myloc_0___double,myloc_1___double.
|
259
|
+
Example: if subFieldSuffix="_d" then the coordinates would be indexed
|
260
|
+
in fields myloc_0_d,myloc_1_d
|
261
|
+
The subFields are an implementation detail of the fieldType, and end
|
262
|
+
users normally should not need to know about them.
|
263
|
+
-->
|
264
|
+
<fieldType name="point" class="solr.PointType" dimension="2" subFieldSuffix="_d"/>
|
265
|
+
|
266
|
+
<!-- A specialized field for geospatial search filters and distance sorting. -->
|
267
|
+
<fieldType name="location" class="solr.LatLonPointSpatialField" docValues="true"/>
|
268
|
+
|
269
|
+
<!-- An alternative geospatial field type new to Solr 4. It supports multiValued and polygon shapes.
|
270
|
+
For more information about this and other Spatial fields new to Solr 4, see:
|
271
|
+
http://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4
|
272
|
+
-->
|
273
|
+
<fieldType name="location_rpt" class="solr.SpatialRecursivePrefixTreeFieldType"
|
274
|
+
geo="true" distErrPct="0.025" maxDistErr="0.001" distanceUnits="kilometers"/>
|
275
|
+
|
276
|
+
<field name="bbox" type="bbox" />
|
277
|
+
<fieldType name="bbox" class="solr.BBoxField"
|
278
|
+
geo="true" distanceUnits="kilometers" numberType="_bbox_coord" storeSubFields="false"/>
|
279
|
+
<fieldType name="_bbox_coord" class="solr.DoublePointField" docValues="true" stored="false"/>
|
280
|
+
|
281
|
+
<fieldType name="text" class="solr.TextField" omitNorms="false">
|
282
|
+
<analyzer>
|
283
|
+
<tokenizer class="solr.ICUTokenizerFactory"/>
|
284
|
+
<filter class="solr.ICUFoldingFilterFactory"/> <!-- NFKC, case folding, diacritics removed -->
|
285
|
+
<filter class="solr.TrimFilterFactory"/>
|
286
|
+
</analyzer>
|
287
|
+
</fieldType>
|
288
|
+
|
289
|
+
<!-- A text field that only splits on whitespace for exact matching of words -->
|
290
|
+
<fieldType name="text_ws" class="solr.TextField" positionIncrementGap="100">
|
291
|
+
<analyzer>
|
292
|
+
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
|
293
|
+
<filter class="solr.TrimFilterFactory"/>
|
294
|
+
</analyzer>
|
295
|
+
</fieldType>
|
296
|
+
|
297
|
+
<!-- single token analyzed text, for sorting. Punctuation is significant. -->
|
298
|
+
<fieldtype name="alphaSort" class="solr.TextField" sortMissingLast="true" omitNorms="true">
|
299
|
+
<analyzer>
|
300
|
+
<tokenizer class="solr.KeywordTokenizerFactory" />
|
301
|
+
<filter class="solr.ICUFoldingFilterFactory"/>
|
302
|
+
<filter class="solr.TrimFilterFactory" />
|
303
|
+
</analyzer>
|
304
|
+
</fieldtype>
|
305
|
+
|
306
|
+
<!-- A text field with defaults appropriate for English -->
|
307
|
+
<fieldType name="text_en" class="solr.TextField" positionIncrementGap="100">
|
308
|
+
<analyzer>
|
309
|
+
<tokenizer class="solr.ICUTokenizerFactory"/>
|
310
|
+
<filter class="solr.ICUFoldingFilterFactory"/> <!-- NFKC, case folding, diacritics removed -->
|
311
|
+
<filter class="solr.EnglishPossessiveFilterFactory"/>
|
312
|
+
<!-- EnglishMinimalStemFilterFactory is less aggressive than PorterStemFilterFactory: -->
|
313
|
+
<filter class="solr.EnglishMinimalStemFilterFactory"/>
|
314
|
+
<!--
|
315
|
+
<filter class="solr.PorterStemFilterFactory"/>
|
316
|
+
-->
|
317
|
+
<filter class="solr.TrimFilterFactory"/>
|
318
|
+
</analyzer>
|
319
|
+
</fieldType>
|
320
|
+
|
321
|
+
<!-- A text field with defaults appropriate for English an NGrams -->
|
322
|
+
<fieldType name="text_en_ng" class="solr.TextField" positionIncrementGap="100">
|
323
|
+
<analyzer type="index">
|
324
|
+
<tokenizer class="solr.ICUTokenizerFactory"/>
|
325
|
+
<filter class="solr.ICUFoldingFilterFactory"/> <!-- NFKC, case folding, diacritics removed -->
|
326
|
+
<filter class="solr.EnglishPossessiveFilterFactory"/>
|
327
|
+
<!-- EnglishMinimalStemFilterFactory is less aggressive than PorterStemFilterFactory: -->
|
328
|
+
<filter class="solr.EnglishMinimalStemFilterFactory"/>
|
329
|
+
<filter class="solr.TrimFilterFactory"/>
|
330
|
+
<filter class="solr.EdgeNGramFilterFactory" minGramSize="3" maxGramSize="15" />
|
331
|
+
</analyzer>
|
332
|
+
|
333
|
+
<analyzer type="index">
|
334
|
+
<tokenizer class="solr.ICUTokenizerFactory"/>
|
335
|
+
<filter class="solr.ICUFoldingFilterFactory"/> <!-- NFKC, case folding, diacritics removed -->
|
336
|
+
<filter class="solr.EnglishPossessiveFilterFactory"/>
|
337
|
+
<!-- EnglishMinimalStemFilterFactory is less aggressive than PorterStemFilterFactory: -->
|
338
|
+
<filter class="solr.EnglishMinimalStemFilterFactory"/>
|
339
|
+
<filter class="solr.TrimFilterFactory"/>
|
340
|
+
</analyzer>
|
341
|
+
</fieldType>
|
342
|
+
|
343
|
+
<fieldType name="pid_text" class="solr.TextField" positionIncrementGap="100">
|
344
|
+
<analyzer>
|
345
|
+
<tokenizer class="solr.KeywordTokenizerFactory"/>
|
346
|
+
</analyzer>
|
347
|
+
</fieldType>
|
348
|
+
|
349
|
+
<fieldType name="textSpell" class="solr.TextField" positionIncrementGap="100" >
|
350
|
+
<analyzer>
|
351
|
+
<tokenizer class="solr.StandardTokenizerFactory"/>
|
352
|
+
<filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"/>
|
353
|
+
<filter class="solr.LowerCaseFilterFactory"/>
|
354
|
+
<filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
|
355
|
+
</analyzer>
|
356
|
+
</fieldType>
|
357
|
+
|
358
|
+
<fieldType name="textSuggest" class="solr.TextField" positionIncrementGap="100">
|
359
|
+
<analyzer>
|
360
|
+
<tokenizer class="solr.KeywordTokenizerFactory"/>
|
361
|
+
<filter class="solr.LowerCaseFilterFactory"/>
|
362
|
+
<filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
|
363
|
+
</analyzer>
|
364
|
+
</fieldType>
|
365
|
+
|
366
|
+
<!-- queries for paths match documents at that path, or in descendent paths -->
|
367
|
+
<fieldType name="descendent_path" class="solr.TextField">
|
368
|
+
<analyzer type="index">
|
369
|
+
<tokenizer class="solr.PathHierarchyTokenizerFactory" delimiter="/" />
|
370
|
+
</analyzer>
|
371
|
+
<analyzer type="query">
|
372
|
+
<tokenizer class="solr.KeywordTokenizerFactory" />
|
373
|
+
</analyzer>
|
374
|
+
</fieldType>
|
375
|
+
|
376
|
+
<!-- queries for paths match documents at that path, or in ancestor paths -->
|
377
|
+
<fieldType name="ancestor_path" class="solr.TextField">
|
378
|
+
<analyzer type="index">
|
379
|
+
<tokenizer class="solr.KeywordTokenizerFactory" />
|
380
|
+
</analyzer>
|
381
|
+
<analyzer type="query">
|
382
|
+
<tokenizer class="solr.PathHierarchyTokenizerFactory" delimiter="/" />
|
383
|
+
</analyzer>
|
384
|
+
</fieldType>
|
385
|
+
|
386
|
+
</types>
|
387
|
+
|
388
|
+
</schema>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Licensed to the Apache Software Foundation (ASF) under one or more
|
2
|
+
# contributor license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright ownership.
|
4
|
+
# The ASF licenses this file to You under the Apache License, Version 2.0
|
5
|
+
# (the "License"); you may not use this file except in compliance with
|
6
|
+
# the License. You may obtain a copy of the License at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
15
|
+
|
16
|
+
user=
|
17
|
+
solr_hostname=localhost
|
18
|
+
solr_port=8983
|
19
|
+
rsyncd_port=18983
|
20
|
+
data_dir=
|
21
|
+
webapp_name=solr
|
22
|
+
master_host=
|
23
|
+
master_data_dir=
|
24
|
+
master_status_dir=
|
@@ -0,0 +1,195 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" ?>
|
2
|
+
<config>
|
3
|
+
<!-- NOTE: various comments and unused configuration possibilities have been purged
|
4
|
+
from this file. Please refer to http://wiki.apache.org/solr/SolrConfigXml,
|
5
|
+
as well as the default solrconfig file included with Solr -->
|
6
|
+
|
7
|
+
<abortOnConfigurationError>${solr.abortOnConfigurationError:true}</abortOnConfigurationError>
|
8
|
+
|
9
|
+
<luceneMatchVersion>6.1.0</luceneMatchVersion>
|
10
|
+
|
11
|
+
<directoryFactory name="DirectoryFactory" class="${solr.directoryFactory:solr.StandardDirectoryFactory}"/>
|
12
|
+
|
13
|
+
<updateHandler class="solr.DirectUpdateHandler2">
|
14
|
+
<updateLog>
|
15
|
+
<str name="dir">${solr.core0.data.dir:}</str>
|
16
|
+
</updateLog>
|
17
|
+
</updateHandler>
|
18
|
+
|
19
|
+
<!-- solr lib dirs -->
|
20
|
+
<lib dir="${solr.install.dir:../../../..}/contrib/analysis-extras/lib" />
|
21
|
+
<lib dir="${solr.install.dir:../../../..}/contrib/analysis-extras/lucene-libs" />
|
22
|
+
|
23
|
+
<dataDir>${solr.data.dir:}</dataDir>
|
24
|
+
|
25
|
+
<requestHandler name="search" class="solr.SearchHandler" default="true">
|
26
|
+
<!-- default values for query parameters can be specified, these
|
27
|
+
will be overridden by parameters in the request
|
28
|
+
-->
|
29
|
+
<lst name="defaults">
|
30
|
+
<str name="defType">edismax</str>
|
31
|
+
<str name="echoParams">explicit</str>
|
32
|
+
<str name="q.alt">*:*</str>
|
33
|
+
<str name="mm">2<-1 5<-2 6<90%</str>
|
34
|
+
<int name="qs">1</int>
|
35
|
+
<int name="ps">2</int>
|
36
|
+
<float name="tie">0.01</float>
|
37
|
+
<!-- this qf and pf are used by default, if not otherwise specified by
|
38
|
+
client. The default blacklight_config will use these for the
|
39
|
+
"keywords" search. See the author_qf/author_pf, title_qf, etc
|
40
|
+
below, which the default blacklight_config will specify for
|
41
|
+
those searches. You may also be interested in:
|
42
|
+
http://wiki.apache.org/solr/LocalParams
|
43
|
+
-->
|
44
|
+
<str name="qf">
|
45
|
+
id
|
46
|
+
full_title_tsim
|
47
|
+
short_title_tsim
|
48
|
+
alternative_title_tsim
|
49
|
+
active_fedora_model_ssi
|
50
|
+
title_tsim
|
51
|
+
author_tsim
|
52
|
+
subject_tsim
|
53
|
+
all_text_timv
|
54
|
+
</str>
|
55
|
+
<str name="pf">
|
56
|
+
all_text_timv^10
|
57
|
+
</str>
|
58
|
+
|
59
|
+
<str name="author_qf">
|
60
|
+
author_tsim
|
61
|
+
</str>
|
62
|
+
<str name="author_pf">
|
63
|
+
</str>
|
64
|
+
<str name="title_qf">
|
65
|
+
title_tsim
|
66
|
+
full_title_tsim
|
67
|
+
short_title_tsim
|
68
|
+
alternative_title_tsim
|
69
|
+
</str>
|
70
|
+
<str name="title_pf">
|
71
|
+
</str>
|
72
|
+
<str name="subject_qf">
|
73
|
+
subject_tsim
|
74
|
+
</str>
|
75
|
+
<str name="subject_pf">
|
76
|
+
</str>
|
77
|
+
|
78
|
+
<str name="fl">
|
79
|
+
*,
|
80
|
+
score
|
81
|
+
</str>
|
82
|
+
|
83
|
+
<str name="facet">true</str>
|
84
|
+
<str name="facet.mincount">1</str>
|
85
|
+
<str name="facet.limit">10</str>
|
86
|
+
<str name="facet.field">active_fedora_model_ssi</str>
|
87
|
+
<str name="facet.field">subject_ssim</str>
|
88
|
+
|
89
|
+
<str name="spellcheck">true</str>
|
90
|
+
<str name="spellcheck.dictionary">default</str>
|
91
|
+
<str name="spellcheck.onlyMorePopular">true</str>
|
92
|
+
<str name="spellcheck.extendedResults">true</str>
|
93
|
+
<str name="spellcheck.collate">false</str>
|
94
|
+
<str name="spellcheck.count">5</str>
|
95
|
+
|
96
|
+
</lst>
|
97
|
+
<arr name="last-components">
|
98
|
+
<str>spellcheck</str>
|
99
|
+
</arr>
|
100
|
+
</requestHandler>
|
101
|
+
|
102
|
+
<requestHandler name="permissions" class="solr.SearchHandler" >
|
103
|
+
<lst name="defaults">
|
104
|
+
<str name="facet">off</str>
|
105
|
+
<str name="echoParams">all</str>
|
106
|
+
<str name="rows">1</str>
|
107
|
+
<str name="q">{!raw f=id v=$id}</str> <!-- use id=666 instead of q=id:666 -->
|
108
|
+
<str name="fl">
|
109
|
+
id,
|
110
|
+
access_ssim,
|
111
|
+
discover_access_group_ssim,discover_access_person_ssim,
|
112
|
+
read_access_group_ssim,read_access_person_ssim,
|
113
|
+
edit_access_group_ssim,edit_access_person_ssim,
|
114
|
+
depositor_ti,
|
115
|
+
embargo_release_date_dtsi
|
116
|
+
inheritable_access_ssim,
|
117
|
+
inheritable_discover_access_group_ssim,inheritable_discover_access_person_ssim,
|
118
|
+
inheritable_read_access_group_ssim,inheritable_read_access_person_ssim,
|
119
|
+
inheritable_edit_access_group_ssim,inheritable_edit_access_person_ssim,
|
120
|
+
inheritable_embargo_release_date_dtsi
|
121
|
+
</str>
|
122
|
+
</lst>
|
123
|
+
</requestHandler>
|
124
|
+
|
125
|
+
<requestHandler name="standard" class="solr.SearchHandler">
|
126
|
+
<lst name="defaults">
|
127
|
+
<str name="echoParams">explicit</str>
|
128
|
+
<str name="defType">lucene</str>
|
129
|
+
</lst>
|
130
|
+
</requestHandler>
|
131
|
+
|
132
|
+
|
133
|
+
<searchComponent name="spellcheck" class="solr.SpellCheckComponent">
|
134
|
+
<str name="queryAnalyzerFieldType">textSpell</str>
|
135
|
+
<!-- Multiple "Spell Checkers" can be declared and used by this component
|
136
|
+
(e.g. for title_spell field)
|
137
|
+
-->
|
138
|
+
<lst name="spellchecker">
|
139
|
+
<str name="name">default</str>
|
140
|
+
<str name="field">spell</str>
|
141
|
+
<str name="spellcheckIndexDir">./spell</str>
|
142
|
+
<str name="buildOnOptimize">true</str>
|
143
|
+
</lst>
|
144
|
+
<lst name="spellchecker">
|
145
|
+
<str name="name">author</str>
|
146
|
+
<str name="field">author_spell</str>
|
147
|
+
<str name="spellcheckIndexDir">./spell_author</str>
|
148
|
+
<str name="accuracy">0.7</str>
|
149
|
+
<str name="buildOnOptimize">true</str>
|
150
|
+
</lst>
|
151
|
+
<lst name="spellchecker">
|
152
|
+
<str name="name">subject</str>
|
153
|
+
<str name="field">subject_spell</str>
|
154
|
+
<str name="spellcheckIndexDir">./spell_subject</str>
|
155
|
+
<str name="accuracy">0.7</str>
|
156
|
+
<str name="buildOnOptimize">true</str>
|
157
|
+
</lst>
|
158
|
+
<lst name="spellchecker">
|
159
|
+
<str name="name">title</str>
|
160
|
+
<str name="field">title_spell</str>
|
161
|
+
<str name="spellcheckIndexDir">./spell_title</str>
|
162
|
+
<str name="accuracy">0.7</str>
|
163
|
+
<str name="buildOnOptimize">true</str>
|
164
|
+
</lst>
|
165
|
+
</searchComponent>
|
166
|
+
|
167
|
+
<searchComponent name="suggest" class="solr.SuggestComponent">
|
168
|
+
<lst name="suggester">
|
169
|
+
<str name="name">mySuggester</str>
|
170
|
+
<str name="lookupImpl">FuzzyLookupFactory</str>
|
171
|
+
<str name="suggestAnalyzerFieldType">textSuggest</str>
|
172
|
+
<str name="buildOnCommit">true</str>
|
173
|
+
<str name="field">suggest</str>
|
174
|
+
</lst>
|
175
|
+
</searchComponent>
|
176
|
+
|
177
|
+
<requestHandler name="/suggest" class="solr.SearchHandler" startup="lazy">
|
178
|
+
<lst name="defaults">
|
179
|
+
<str name="suggest">true</str>
|
180
|
+
<str name="suggest.count">5</str>
|
181
|
+
<str name="suggest.dictionary">mySuggester</str>
|
182
|
+
</lst>
|
183
|
+
<arr name="components">
|
184
|
+
<str>suggest</str>
|
185
|
+
</arr>
|
186
|
+
</requestHandler>
|
187
|
+
|
188
|
+
<requestHandler name="/replication" class="solr.ReplicationHandler" startup="lazy" />
|
189
|
+
|
190
|
+
<requestDispatcher handleSelect="true" >
|
191
|
+
<requestParsers enableRemoteStreaming="true" multipartUploadLimitInKB="2048" />
|
192
|
+
</requestDispatcher>
|
193
|
+
|
194
|
+
<requestHandler name="/analysis/field" startup="lazy" class="solr.FieldAnalysisRequestHandler" />
|
195
|
+
</config>
|