geoblacklight_sidecar_images 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.coveralls.yml +1 -0
- data/.gitignore +17 -0
- data/.rspec +1 -0
- data/.rubocop.yml +80 -0
- data/.travis.yml +29 -0
- data/Gemfile +47 -0
- data/LICENSE +201 -0
- data/README.md +45 -0
- data/Rakefile +37 -0
- data/app/assets/config/geoblacklight_sidecar_images_manifest.js +2 -0
- data/app/assets/images/geoblacklight_sidecar_images/.keep +0 -0
- data/app/assets/javascripts/geoblacklight_sidecar_images/application.js +13 -0
- data/app/assets/stylesheets/geoblacklight_sidecar_images/application.css +15 -0
- data/app/controllers/geoblacklight_sidecar_images/application_controller.rb +5 -0
- data/app/helpers/geoblacklight_sidecar_images/application_helper.rb +4 -0
- data/app/jobs/geoblacklight_sidecar_images/application_job.rb +4 -0
- data/app/mailers/geoblacklight_sidecar_images/application_mailer.rb +6 -0
- data/app/models/geoblacklight_sidecar_images/application_record.rb +5 -0
- data/app/views/layouts/geoblacklight_sidecar_images/application.html.erb +14 -0
- data/config/routes.rb +2 -0
- data/db/migrate/20180118203155_create_solr_document_sidecars.rb +12 -0
- data/geoblacklight_sidecar_images.gemspec +37 -0
- data/lib/generators/geoblacklight_sidecar_images/assets_generator.rb +31 -0
- data/lib/generators/geoblacklight_sidecar_images/example_docs_generator.rb +18 -0
- data/lib/generators/geoblacklight_sidecar_images/install_generator.rb +58 -0
- data/lib/generators/geoblacklight_sidecar_images/jobs_generator.rb +27 -0
- data/lib/generators/geoblacklight_sidecar_images/models_generator.rb +60 -0
- data/lib/generators/geoblacklight_sidecar_images/services_generator.rb +19 -0
- data/lib/generators/geoblacklight_sidecar_images/templates/assets/images/thumbnail-image.png +0 -0
- data/lib/generators/geoblacklight_sidecar_images/templates/assets/images/thumbnail-line.png +0 -0
- data/lib/generators/geoblacklight_sidecar_images/templates/assets/images/thumbnail-mixed.png +0 -0
- data/lib/generators/geoblacklight_sidecar_images/templates/assets/images/thumbnail-multipoint.png +0 -0
- data/lib/generators/geoblacklight_sidecar_images/templates/assets/images/thumbnail-paper-map.png +0 -0
- data/lib/generators/geoblacklight_sidecar_images/templates/assets/images/thumbnail-point.png +0 -0
- data/lib/generators/geoblacklight_sidecar_images/templates/assets/images/thumbnail-polygon.png +0 -0
- data/lib/generators/geoblacklight_sidecar_images/templates/assets/images/thumbnail-raster.png +0 -0
- data/lib/generators/geoblacklight_sidecar_images/templates/assets/javascripts/geoblacklight.js +9 -0
- data/lib/generators/geoblacklight_sidecar_images/templates/assets/stylesheets/geoblacklight.scss +3 -0
- data/lib/generators/geoblacklight_sidecar_images/templates/jobs/store_image_job.rb +8 -0
- data/lib/generators/geoblacklight_sidecar_images/templates/models/concerns/wms_rewrite_concern.rb +20 -0
- data/lib/generators/geoblacklight_sidecar_images/templates/models/solr_document_sidecar.rb +16 -0
- data/lib/generators/geoblacklight_sidecar_images/templates/services/image_service.rb +193 -0
- data/lib/generators/geoblacklight_sidecar_images/templates/services/image_service/dynamic_map_layer.rb +11 -0
- data/lib/generators/geoblacklight_sidecar_images/templates/services/image_service/iiif.rb +13 -0
- data/lib/generators/geoblacklight_sidecar_images/templates/services/image_service/image_map_layer.rb +13 -0
- data/lib/generators/geoblacklight_sidecar_images/templates/services/image_service/tiled_map_layer.rb +11 -0
- data/lib/generators/geoblacklight_sidecar_images/templates/services/image_service/wms.rb +24 -0
- data/lib/generators/geoblacklight_sidecar_images/templates/uploaders/image_uploader.rb +53 -0
- data/lib/generators/geoblacklight_sidecar_images/templates/views/catalog/_index_split_default.html.erb +27 -0
- data/lib/generators/geoblacklight_sidecar_images/uploaders_generator.rb +19 -0
- data/lib/generators/geoblacklight_sidecar_images/views_generator.rb +21 -0
- data/lib/geoblacklight_sidecar_images.rb +5 -0
- data/lib/geoblacklight_sidecar_images/engine.rb +5 -0
- data/lib/geoblacklight_sidecar_images/version.rb +3 -0
- data/lib/tasks/geoblacklight_sidecar_images_tasks.rake +76 -0
- 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 +190 -0
- data/solr/conf/scripts.conf +24 -0
- data/solr/conf/solrconfig.xml +243 -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/fixtures/files/actual-papermap1.json +23 -0
- data/spec/fixtures/files/actual-point1.json +24 -0
- data/spec/fixtures/files/actual-polygon1.json +23 -0
- data/spec/fixtures/files/actual-raster1.json +37 -0
- data/spec/fixtures/files/baruch_ancestor1.json +46 -0
- data/spec/fixtures/files/baruch_ancestor2.json +46 -0
- data/spec/fixtures/files/baruch_documentation_download.json +49 -0
- data/spec/fixtures/files/esri-dynamic-layer-all-layers.json +36 -0
- data/spec/fixtures/files/esri-dynamic-layer-single-layer.json +37 -0
- data/spec/fixtures/files/esri-feature-layer.json +33 -0
- data/spec/fixtures/files/esri-image-map-layer.json +21 -0
- data/spec/fixtures/files/esri-tiled_map_layer.json +22 -0
- data/spec/fixtures/files/esri-wms-layer.json +33 -0
- data/spec/fixtures/files/harvard_raster.json +44 -0
- data/spec/fixtures/files/no_spatial.json +21 -0
- data/spec/fixtures/files/public_direct_download.json +28 -0
- data/spec/fixtures/files/public_iiif_princeton.json +36 -0
- data/spec/fixtures/files/public_polygon_mit.json +39 -0
- data/spec/fixtures/files/restricted-line.json +36 -0
- data/spec/fixtures/files/umich_iiif_jpg.json +28 -0
- data/spec/fixtures/files/umn_iiif_jpg.json +30 -0
- data/spec/fixtures/files/umn_metro_result1.json +37 -0
- data/spec/fixtures/files/umn_metro_result2.json +35 -0
- data/spec/fixtures/files/umn_state_result1.json +31 -0
- data/spec/fixtures/files/umn_state_result2.json +36 -0
- data/spec/models/solr_document_sidecar_spec.rb +13 -0
- data/spec/models/solr_document_spec.rb +14 -0
- data/spec/rails_helper.rb +59 -0
- data/spec/services/image_service_spec.rb +31 -0
- data/spec/spec_helper.rb +5 -0
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +33 -0
- data/template.rb +13 -0
- metadata +395 -0
@@ -0,0 +1,31 @@
|
|
1
|
+
<!--
|
2
|
+
Licensed to the Apache Software Foundation (ASF) under one or more
|
3
|
+
contributor license agreements. See the NOTICE file distributed with
|
4
|
+
this work for additional information regarding copyright ownership.
|
5
|
+
The ASF licenses this file to You under the Apache License, Version 2.0
|
6
|
+
(the "License"); you may not use this file except in compliance with
|
7
|
+
the License. You may obtain a copy of the License at
|
8
|
+
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
|
11
|
+
Unless required by applicable law or agreed to in writing, software
|
12
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
See the License for the specific language governing permissions and
|
15
|
+
limitations under the License.
|
16
|
+
-->
|
17
|
+
|
18
|
+
<!-- The content of this page will be statically included into the top
|
19
|
+
of the admin page. Uncomment this as an example to see there the content
|
20
|
+
will show up.
|
21
|
+
|
22
|
+
<hr>
|
23
|
+
<i>This line will appear before the first table</i>
|
24
|
+
<tr>
|
25
|
+
<td colspan="2">
|
26
|
+
This row will be appended to the end of the first table
|
27
|
+
</td>
|
28
|
+
</tr>
|
29
|
+
<hr>
|
30
|
+
|
31
|
+
-->
|
@@ -0,0 +1,36 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" ?>
|
2
|
+
<!--
|
3
|
+
Licensed to the Apache Software Foundation (ASF) under one or more
|
4
|
+
contributor license agreements. See the NOTICE file distributed with
|
5
|
+
this work for additional information regarding copyright ownership.
|
6
|
+
The ASF licenses this file to You under the Apache License, Version 2.0
|
7
|
+
(the "License"); you may not use this file except in compliance with
|
8
|
+
the License. You may obtain a copy of the License at
|
9
|
+
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
|
12
|
+
Unless required by applicable law or agreed to in writing, software
|
13
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
See the License for the specific language governing permissions and
|
16
|
+
limitations under the License.
|
17
|
+
-->
|
18
|
+
|
19
|
+
<!-- If this file is found in the config directory, it will only be
|
20
|
+
loaded once at startup. If it is found in Solr's data
|
21
|
+
directory, it will be re-loaded every commit.
|
22
|
+
-->
|
23
|
+
|
24
|
+
<elevate>
|
25
|
+
<query text="foo bar">
|
26
|
+
<doc id="1" />
|
27
|
+
<doc id="2" />
|
28
|
+
<doc id="3" />
|
29
|
+
</query>
|
30
|
+
|
31
|
+
<query text="ipod">
|
32
|
+
<doc id="MA147LL/A" /> <!-- put the actual ipod at the top -->
|
33
|
+
<doc id="IW-02" exclude="true" /> <!-- exclude this cable -->
|
34
|
+
</query>
|
35
|
+
|
36
|
+
</elevate>
|
@@ -0,0 +1,246 @@
|
|
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
|
+
# Syntax:
|
14
|
+
# "source" => "target"
|
15
|
+
# "source".length() > 0 (source cannot be empty.)
|
16
|
+
# "target".length() >= 0 (target can be empty.)
|
17
|
+
|
18
|
+
# example:
|
19
|
+
# "??" => "A"
|
20
|
+
# "\u00C0" => "A"
|
21
|
+
# "\u00C0" => "\u0041"
|
22
|
+
# "??" => "ss"
|
23
|
+
# "\t" => " "
|
24
|
+
# "\n" => ""
|
25
|
+
|
26
|
+
# ?? => A
|
27
|
+
"\u00C0" => "A"
|
28
|
+
|
29
|
+
# ?? => A
|
30
|
+
"\u00C1" => "A"
|
31
|
+
|
32
|
+
# ?? => A
|
33
|
+
"\u00C2" => "A"
|
34
|
+
|
35
|
+
# ?? => A
|
36
|
+
"\u00C3" => "A"
|
37
|
+
|
38
|
+
# ?? => A
|
39
|
+
"\u00C4" => "A"
|
40
|
+
|
41
|
+
# ?? => A
|
42
|
+
"\u00C5" => "A"
|
43
|
+
|
44
|
+
# ?? => AE
|
45
|
+
"\u00C6" => "AE"
|
46
|
+
|
47
|
+
# ?? => C
|
48
|
+
"\u00C7" => "C"
|
49
|
+
|
50
|
+
# ?? => E
|
51
|
+
"\u00C8" => "E"
|
52
|
+
|
53
|
+
# ?? => E
|
54
|
+
"\u00C9" => "E"
|
55
|
+
|
56
|
+
# ?? => E
|
57
|
+
"\u00CA" => "E"
|
58
|
+
|
59
|
+
# ?? => E
|
60
|
+
"\u00CB" => "E"
|
61
|
+
|
62
|
+
# ?? => I
|
63
|
+
"\u00CC" => "I"
|
64
|
+
|
65
|
+
# ?? => I
|
66
|
+
"\u00CD" => "I"
|
67
|
+
|
68
|
+
# ?? => I
|
69
|
+
"\u00CE" => "I"
|
70
|
+
|
71
|
+
# ?? => I
|
72
|
+
"\u00CF" => "I"
|
73
|
+
|
74
|
+
# ?? => IJ
|
75
|
+
"\u0132" => "IJ"
|
76
|
+
|
77
|
+
# ?? => D
|
78
|
+
"\u00D0" => "D"
|
79
|
+
|
80
|
+
# ?? => N
|
81
|
+
"\u00D1" => "N"
|
82
|
+
|
83
|
+
# ?? => O
|
84
|
+
"\u00D2" => "O"
|
85
|
+
|
86
|
+
# ?? => O
|
87
|
+
"\u00D3" => "O"
|
88
|
+
|
89
|
+
# ?? => O
|
90
|
+
"\u00D4" => "O"
|
91
|
+
|
92
|
+
# ?? => O
|
93
|
+
"\u00D5" => "O"
|
94
|
+
|
95
|
+
# ?? => O
|
96
|
+
"\u00D6" => "O"
|
97
|
+
|
98
|
+
# ?? => O
|
99
|
+
"\u00D8" => "O"
|
100
|
+
|
101
|
+
# ?? => OE
|
102
|
+
"\u0152" => "OE"
|
103
|
+
|
104
|
+
# ??
|
105
|
+
"\u00DE" => "TH"
|
106
|
+
|
107
|
+
# ?? => U
|
108
|
+
"\u00D9" => "U"
|
109
|
+
|
110
|
+
# ?? => U
|
111
|
+
"\u00DA" => "U"
|
112
|
+
|
113
|
+
# ?? => U
|
114
|
+
"\u00DB" => "U"
|
115
|
+
|
116
|
+
# ?? => U
|
117
|
+
"\u00DC" => "U"
|
118
|
+
|
119
|
+
# ?? => Y
|
120
|
+
"\u00DD" => "Y"
|
121
|
+
|
122
|
+
# ?? => Y
|
123
|
+
"\u0178" => "Y"
|
124
|
+
|
125
|
+
# ?? => a
|
126
|
+
"\u00E0" => "a"
|
127
|
+
|
128
|
+
# ?? => a
|
129
|
+
"\u00E1" => "a"
|
130
|
+
|
131
|
+
# ?? => a
|
132
|
+
"\u00E2" => "a"
|
133
|
+
|
134
|
+
# ?? => a
|
135
|
+
"\u00E3" => "a"
|
136
|
+
|
137
|
+
# ?? => a
|
138
|
+
"\u00E4" => "a"
|
139
|
+
|
140
|
+
# ?? => a
|
141
|
+
"\u00E5" => "a"
|
142
|
+
|
143
|
+
# ?? => ae
|
144
|
+
"\u00E6" => "ae"
|
145
|
+
|
146
|
+
# ?? => c
|
147
|
+
"\u00E7" => "c"
|
148
|
+
|
149
|
+
# ?? => e
|
150
|
+
"\u00E8" => "e"
|
151
|
+
|
152
|
+
# ?? => e
|
153
|
+
"\u00E9" => "e"
|
154
|
+
|
155
|
+
# ?? => e
|
156
|
+
"\u00EA" => "e"
|
157
|
+
|
158
|
+
# ?? => e
|
159
|
+
"\u00EB" => "e"
|
160
|
+
|
161
|
+
# ?? => i
|
162
|
+
"\u00EC" => "i"
|
163
|
+
|
164
|
+
# ?? => i
|
165
|
+
"\u00ED" => "i"
|
166
|
+
|
167
|
+
# ?? => i
|
168
|
+
"\u00EE" => "i"
|
169
|
+
|
170
|
+
# ?? => i
|
171
|
+
"\u00EF" => "i"
|
172
|
+
|
173
|
+
# ?? => ij
|
174
|
+
"\u0133" => "ij"
|
175
|
+
|
176
|
+
# ?? => d
|
177
|
+
"\u00F0" => "d"
|
178
|
+
|
179
|
+
# ?? => n
|
180
|
+
"\u00F1" => "n"
|
181
|
+
|
182
|
+
# ?? => o
|
183
|
+
"\u00F2" => "o"
|
184
|
+
|
185
|
+
# ?? => o
|
186
|
+
"\u00F3" => "o"
|
187
|
+
|
188
|
+
# ?? => o
|
189
|
+
"\u00F4" => "o"
|
190
|
+
|
191
|
+
# ?? => o
|
192
|
+
"\u00F5" => "o"
|
193
|
+
|
194
|
+
# ?? => o
|
195
|
+
"\u00F6" => "o"
|
196
|
+
|
197
|
+
# ?? => o
|
198
|
+
"\u00F8" => "o"
|
199
|
+
|
200
|
+
# ?? => oe
|
201
|
+
"\u0153" => "oe"
|
202
|
+
|
203
|
+
# ?? => ss
|
204
|
+
"\u00DF" => "ss"
|
205
|
+
|
206
|
+
# ?? => th
|
207
|
+
"\u00FE" => "th"
|
208
|
+
|
209
|
+
# ?? => u
|
210
|
+
"\u00F9" => "u"
|
211
|
+
|
212
|
+
# ?? => u
|
213
|
+
"\u00FA" => "u"
|
214
|
+
|
215
|
+
# ?? => u
|
216
|
+
"\u00FB" => "u"
|
217
|
+
|
218
|
+
# ?? => u
|
219
|
+
"\u00FC" => "u"
|
220
|
+
|
221
|
+
# ?? => y
|
222
|
+
"\u00FD" => "y"
|
223
|
+
|
224
|
+
# ?? => y
|
225
|
+
"\u00FF" => "y"
|
226
|
+
|
227
|
+
# ??? => ff
|
228
|
+
"\uFB00" => "ff"
|
229
|
+
|
230
|
+
# ??? => fi
|
231
|
+
"\uFB01" => "fi"
|
232
|
+
|
233
|
+
# ??? => fl
|
234
|
+
"\uFB02" => "fl"
|
235
|
+
|
236
|
+
# ??? => ffi
|
237
|
+
"\uFB03" => "ffi"
|
238
|
+
|
239
|
+
# ??? => ffl
|
240
|
+
"\uFB04" => "ffl"
|
241
|
+
|
242
|
+
# ??? => ft
|
243
|
+
"\uFB05" => "ft"
|
244
|
+
|
245
|
+
# ??? => st
|
246
|
+
"\uFB06" => "st"
|
@@ -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,190 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<schema name="geoblacklight-schema" version="1.6">
|
3
|
+
<uniqueKey>layer_slug_s</uniqueKey>
|
4
|
+
<fields>
|
5
|
+
<field name="_version_" type="long" stored="true" indexed="true"/>
|
6
|
+
<field name="timestamp" type="date" stored="true" indexed="true" default="NOW"/>
|
7
|
+
<field name="layer_slug_s" type="string" stored="true" indexed="true" required="true"/>
|
8
|
+
<field name="geoblacklight_version" type="string" stored="true" indexed="true"/>
|
9
|
+
<field name="uuid" type="string" stored="true" indexed="true"/><!-- deprecated -->
|
10
|
+
|
11
|
+
<!-- core generated fields -->
|
12
|
+
<field name="text" type="text_en" stored="false" indexed="true" multiValued="true"
|
13
|
+
termVectors="true" termPositions="true" termOffsets="true" />
|
14
|
+
|
15
|
+
<!-- dynamic field with simple types by suffix -->
|
16
|
+
<dynamicField name="*_b" type="boolean" stored="true" indexed="true"/>
|
17
|
+
<dynamicField name="*_d" type="double" stored="true" indexed="true"/>
|
18
|
+
<dynamicField name="*_dt" type="date" stored="true" indexed="true"/>
|
19
|
+
<dynamicField name="*_f" type="float" stored="true" indexed="true"/>
|
20
|
+
<dynamicField name="*_i" type="int" stored="true" indexed="true"/>
|
21
|
+
<dynamicField name="*_im" type="int" stored="true" indexed="true" multiValued="true" />
|
22
|
+
<dynamicField name="*_l" type="long" stored="true" indexed="true"/>
|
23
|
+
<dynamicField name="*_s" type="string" stored="true" indexed="true"/>
|
24
|
+
<dynamicField name="*_ss" type="string" stored="true" indexed="false"/>
|
25
|
+
<dynamicField name="*_si" type="string" stored="false" indexed="true"/>
|
26
|
+
<dynamicField name="*_sim" type="string" stored="false" indexed="true" multiValued="true" />
|
27
|
+
<dynamicField name="*_sm" type="string" stored="true" indexed="true" multiValued="true" />
|
28
|
+
<dynamicField name="*_url" type="string" stored="true" indexed="false"/>
|
29
|
+
<dynamicField name="*_blob" type="binary" stored="true" indexed="false"/>
|
30
|
+
|
31
|
+
<!-- dynamic Text fields by suffix without storage -->
|
32
|
+
<dynamicField name="*_t" type="text_en" stored="false" indexed="true"
|
33
|
+
termVectors="true" termPositions="true" termOffsets="true"/>
|
34
|
+
<dynamicField name="*_tm" type="text_en" stored="false" indexed="true" multiValued="true"
|
35
|
+
termVectors="true" termPositions="true" termOffsets="true"/>
|
36
|
+
<dynamicField name="*_ti" type="text_en" stored="false" indexed="true"
|
37
|
+
termVectors="true" termPositions="true" termOffsets="true"/>
|
38
|
+
<dynamicField name="*_tmi" type="text_en" stored="false" indexed="true" multiValued="true"
|
39
|
+
termVectors="true" termPositions="true" termOffsets="true"/>
|
40
|
+
<dynamicField name="*_sort" type="text_sort" stored="false" indexed="true" multiValued="false"/>
|
41
|
+
|
42
|
+
<dynamicField name="*spell" type="textSpell" indexed="true" stored="false" multiValued="true" />
|
43
|
+
|
44
|
+
<dynamicField name="*suggest" type="textSuggest" indexed="true" stored="false" multiValued="true" />
|
45
|
+
|
46
|
+
<!-- Spatial field types:
|
47
|
+
|
48
|
+
Solr3:
|
49
|
+
<field name="my_pt">83.1,-117.312</field>
|
50
|
+
as (y,x)
|
51
|
+
|
52
|
+
Solr4:
|
53
|
+
|
54
|
+
<field name="my_bbox">-117.312 83.1 -115.39 84.31</field>
|
55
|
+
as (W S E N)
|
56
|
+
|
57
|
+
<field name="my_geom">ENVELOPE(-117.312, -115.39, 84.31, 83.1)</field>
|
58
|
+
as (W E N S)
|
59
|
+
|
60
|
+
<field name="my_jts">POLYGON((1 8, 1 9, 2 9, 2 8, 1 8))</field>
|
61
|
+
as WKT for point, linestring, polygon
|
62
|
+
|
63
|
+
-->
|
64
|
+
<dynamicField name="*_pt" type="location" stored="true" indexed="true"/>
|
65
|
+
<dynamicField name="*_bbox" type="location_rpt" stored="true" indexed="true"/><!-- deprecated -->
|
66
|
+
<dynamicField name="*_geom" type="location_rpt" stored="true" indexed="true"/>
|
67
|
+
</fields>
|
68
|
+
|
69
|
+
<types>
|
70
|
+
<fieldType name="string" class="solr.StrField" sortMissingLast="true" />
|
71
|
+
<fieldType name="boolean" class="solr.BoolField" sortMissingLast="true"/>
|
72
|
+
|
73
|
+
<fieldType name="int" class="solr.TrieIntField" precisionStep="8" positionIncrementGap="0"/>
|
74
|
+
<fieldType name="float" class="solr.TrieFloatField" precisionStep="8" positionIncrementGap="0"/>
|
75
|
+
<fieldType name="long" class="solr.TrieLongField" precisionStep="8" positionIncrementGap="0"/>
|
76
|
+
<fieldType name="double" class="solr.TrieDoubleField" precisionStep="8" positionIncrementGap="0"/>
|
77
|
+
|
78
|
+
<!-- The format for this date field is of the form 1995-12-31T23:59:59Z.
|
79
|
+
The trailing "Z" designates UTC time and is mandatory.
|
80
|
+
A Trie based date field for faster date range queries and date faceting. -->
|
81
|
+
<fieldType name="date" class="solr.TrieDateField" precisionStep="6" positionIncrementGap="0"/>
|
82
|
+
|
83
|
+
<!--Binary data type. The data should be sent/retrieved in as Base64 encoded Strings -->
|
84
|
+
<fieldtype name="binary" class="solr.BinaryField"/>
|
85
|
+
|
86
|
+
<!-- A text field with defaults appropriate for English: it
|
87
|
+
tokenizes with StandardTokenizer, removes English stop words
|
88
|
+
(stopwords_en.txt), down cases, protects words from protwords.txt, and
|
89
|
+
finally applies Porter's stemming. The query time analyzer
|
90
|
+
also applies synonyms from synonyms.txt. -->
|
91
|
+
<fieldType name="text_en" class="solr.TextField" positionIncrementGap="100">
|
92
|
+
<analyzer type="index">
|
93
|
+
<tokenizer class="solr.StandardTokenizerFactory"/>
|
94
|
+
<filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords_en.txt"/>
|
95
|
+
<filter class="solr.LowerCaseFilterFactory"/>
|
96
|
+
<filter class="solr.EnglishPossessiveFilterFactory"/>
|
97
|
+
<filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/>
|
98
|
+
<filter class="solr.PorterStemFilterFactory"/>
|
99
|
+
</analyzer>
|
100
|
+
<analyzer type="query">
|
101
|
+
<tokenizer class="solr.StandardTokenizerFactory"/>
|
102
|
+
<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
|
103
|
+
<filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords_en.txt"/>
|
104
|
+
<filter class="solr.LowerCaseFilterFactory"/>
|
105
|
+
<filter class="solr.EnglishPossessiveFilterFactory"/>
|
106
|
+
<filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/>
|
107
|
+
<filter class="solr.PorterStemFilterFactory"/>
|
108
|
+
</analyzer>
|
109
|
+
</fieldType>
|
110
|
+
|
111
|
+
<!-- for alpha sorting as a single token -->
|
112
|
+
<fieldType name="text_sort" class="solr.TextField" sortMissingLast="true" omitNorms="true">
|
113
|
+
<analyzer>
|
114
|
+
<tokenizer class="solr.KeywordTokenizerFactory"/>
|
115
|
+
<filter class="solr.LowerCaseFilterFactory" />
|
116
|
+
<filter class="solr.TrimFilterFactory" />
|
117
|
+
<filter class="solr.PatternReplaceFilterFactory" pattern="([^a-z0-9 ])" replacement="" replace="all"/>
|
118
|
+
</analyzer>
|
119
|
+
</fieldType>
|
120
|
+
|
121
|
+
<!-- for spell checking -->
|
122
|
+
<fieldType name="textSpell" class="solr.TextField" positionIncrementGap="100" >
|
123
|
+
<analyzer>
|
124
|
+
<tokenizer class="solr.StandardTokenizerFactory"/>
|
125
|
+
<filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords_en.txt"/>
|
126
|
+
<filter class="solr.StandardFilterFactory"/>
|
127
|
+
<filter class="solr.LowerCaseFilterFactory"/>
|
128
|
+
<filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
|
129
|
+
</analyzer>
|
130
|
+
</fieldType>
|
131
|
+
|
132
|
+
<!-- for suggestions -->
|
133
|
+
<fieldType class="solr.TextField" name="textSuggest" positionIncrementGap="100">
|
134
|
+
<analyzer>
|
135
|
+
<tokenizer class="solr.KeywordTokenizerFactory"/>
|
136
|
+
<filter class="solr.StandardFilterFactory"/>
|
137
|
+
<filter class="solr.LowerCaseFilterFactory"/>
|
138
|
+
<filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
|
139
|
+
</analyzer>
|
140
|
+
</fieldType>
|
141
|
+
|
142
|
+
<!-- Spatial field types -->
|
143
|
+
<fieldType name="location" class="solr.LatLonType" subFieldSuffix="_d"/>
|
144
|
+
|
145
|
+
<fieldType name="location_rpt" class="solr.SpatialRecursivePrefixTreeFieldType"
|
146
|
+
geo="true" distErrPct="0.025" maxDistErr="0.001" distanceUnits="kilometers"/>
|
147
|
+
|
148
|
+
</types>
|
149
|
+
|
150
|
+
<!-- for scoring formula -->
|
151
|
+
<copyField source="dct_spatial_sm" dest="dct_spatial_tmi" maxChars="10000"/>
|
152
|
+
<copyField source="dct_temporal_sm" dest="dct_temporal_tmi" maxChars="10000"/>
|
153
|
+
<copyField source="dc_creator_sm" dest="dc_creator_tmi" maxChars="1000"/>
|
154
|
+
<copyField source="dc_description_s" dest="dc_description_ti" maxChars="10000"/>
|
155
|
+
<copyField source="dc_format_s" dest="dc_format_ti" maxChars="100"/>
|
156
|
+
<copyField source="dc_identifier_s" dest="dc_identifier_ti" maxChars="100"/>
|
157
|
+
<copyField source="dc_publisher_s" dest="dc_publisher_ti" maxChars="1000"/>
|
158
|
+
<copyField source="dc_rights_s" dest="dc_rights_ti" maxChars="100"/>
|
159
|
+
<copyField source="dct_provenance_s" dest="dct_provenance_ti" maxChars="1000"/>
|
160
|
+
<copyField source="dc_subject_sm" dest="dc_subject_tmi" maxChars="10000"/>
|
161
|
+
<copyField source="dc_title_s" dest="dc_title_ti" maxChars="1000"/>
|
162
|
+
<copyField source="dct_isPartOf_sm" dest="dct_isPartOf_tmi" maxChars="1000"/>
|
163
|
+
<copyField source="layer_geom_type_s" dest="layer_geom_type_ti" maxChars="100"/>
|
164
|
+
<copyField source="layer_slug_s" dest="layer_slug_ti" maxChars="100"/>
|
165
|
+
|
166
|
+
<!-- core text search -->
|
167
|
+
<copyField source="*_ti" dest="text" />
|
168
|
+
<copyField source="*_tmi" dest="text" />
|
169
|
+
|
170
|
+
<!-- for sorting text fields -->
|
171
|
+
<copyField source="dct_provenance_s" dest="dct_provenance_sort"/>
|
172
|
+
<copyField source="dc_publisher_s" dest="dc_publisher_sort"/>
|
173
|
+
<copyField source="dc_title_s" dest="dc_title_sort"/>
|
174
|
+
|
175
|
+
<!-- for spell checking -->
|
176
|
+
<copyField source="dc_title_s" dest="spell"/>
|
177
|
+
<copyField source="dc_creator_sm" dest="spell"/>
|
178
|
+
<copyField source="dc_publisher_s" dest="spell"/>
|
179
|
+
<copyField source="dct_provenance_s" dest="spell"/>
|
180
|
+
<copyField source="dc_subject_sm" dest="spell"/>
|
181
|
+
<copyField source="dct_spatial_sm" dest="spell"/>
|
182
|
+
|
183
|
+
<!-- for suggestions -->
|
184
|
+
<copyField source="dc_title_s" dest="suggest"/>
|
185
|
+
<copyField source="dc_creator_sm" dest="suggest"/>
|
186
|
+
<copyField source="dc_publisher_s" dest="suggest"/>
|
187
|
+
<copyField source="dct_provenance_s" dest="suggest"/>
|
188
|
+
<copyField source="dc_subject_sm" dest="suggest"/>
|
189
|
+
<copyField source="dct_spatial_sm" dest="suggest"/>
|
190
|
+
</schema>
|