zizia 3.1.0.alpha.01 → 4.0.0.alpha.01

Sign up to get free protection for your applications and to get access to all the features.
Files changed (199) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +14 -3
  3. data/lib/zizia/engine.rb +8 -0
  4. data/lib/zizia/{hyrax_basic_metadata_mapper.rb → hyrax/hyrax_basic_metadata_mapper.rb} +0 -0
  5. data/lib/zizia/hyrax/hyrax_default_updater.rb +11 -0
  6. data/lib/zizia/hyrax/hyrax_delete_files_updater.rb +16 -0
  7. data/lib/zizia/hyrax/hyrax_metadata_only_updater.rb +58 -0
  8. data/lib/zizia/{hyrax_record_importer.rb → hyrax/hyrax_record_importer.rb} +45 -56
  9. data/lib/zizia/{metadata_only_stack.rb → hyrax/metadata_only_stack.rb} +0 -0
  10. data/lib/zizia/version.rb +1 -1
  11. data/lib/zizia.rb +6 -3
  12. metadata +371 -213
  13. data/.circleci/config.yml +0 -44
  14. data/.gitignore +0 -16
  15. data/.rubocop.yml +0 -81
  16. data/.rubocop_todo.yml +0 -21
  17. data/.solr_wrapper +0 -8
  18. data/.travis.yml +0 -12
  19. data/Gemfile +0 -14
  20. data/Rakefile +0 -38
  21. data/app/assets/config/zizia_manifest.js +0 -2
  22. data/app/assets/images/zizia/.keep +0 -0
  23. data/app/assets/javascripts/zizia/DisplayUploadedFile.es6 +0 -43
  24. data/app/assets/javascripts/zizia/application.js +0 -13
  25. data/app/assets/javascripts/zizia/zizia.js +0 -6
  26. data/app/assets/stylesheets/zizia/_file_upload.scss +0 -17
  27. data/app/assets/stylesheets/zizia/application.css +0 -15
  28. data/app/assets/stylesheets/zizia/zizia.scss +0 -1
  29. data/app/controllers/zizia/application_controller.rb +0 -6
  30. data/app/controllers/zizia/csv_imports_controller.rb +0 -53
  31. data/app/controllers/zizia/importer_documentation_controller.rb +0 -11
  32. data/app/helpers/importer_documentation_helper.rb +0 -13
  33. data/app/helpers/zizia/application_helper.rb +0 -14
  34. data/app/importers/modular_importer.rb +0 -31
  35. data/app/jobs/zizia/application_job.rb +0 -5
  36. data/app/jobs/zizia/start_csv_import_job.rb +0 -14
  37. data/app/models/zizia/application_record.rb +0 -6
  38. data/app/models/zizia/csv_import.rb +0 -21
  39. data/app/models/zizia/csv_import_detail.rb +0 -13
  40. data/app/models/zizia/pre_ingest_file.rb +0 -6
  41. data/app/models/zizia/pre_ingest_work.rb +0 -6
  42. data/app/uploaders/zizia/csv_manifest_uploader.rb +0 -62
  43. data/app/uploaders/zizia/csv_manifest_validator.rb +0 -163
  44. data/app/views/layouts/zizia/application.html.erb +0 -14
  45. data/app/views/zizia/csv_imports/_actions.html.erb +0 -3
  46. data/app/views/zizia/csv_imports/_collection_selection.html.erb +0 -3
  47. data/app/views/zizia/csv_imports/_error.html.erb +0 -10
  48. data/app/views/zizia/csv_imports/_file_upload.html.erb +0 -3
  49. data/app/views/zizia/csv_imports/_form.html.erb +0 -75
  50. data/app/views/zizia/csv_imports/_no_collection.html.erb +0 -7
  51. data/app/views/zizia/csv_imports/_record_count.html.erb +0 -7
  52. data/app/views/zizia/csv_imports/_start_import_form.html.erb +0 -9
  53. data/app/views/zizia/csv_imports/index.html.erb +0 -21
  54. data/app/views/zizia/csv_imports/new.html.erb +0 -2
  55. data/app/views/zizia/csv_imports/preview.html.erb +0 -76
  56. data/app/views/zizia/csv_imports/show.html.erb +0 -31
  57. data/app/views/zizia/importer_documentation/guide.html.erb +0 -1
  58. data/bin/rails +0 -15
  59. data/config/routes.rb +0 -9
  60. data/db/migrate/201901162141281_create_zizia_csv_imports.rb +0 -10
  61. data/db/migrate/201901162203121_add_manifest_to_zizia_csv_imports.rb +0 -6
  62. data/db/migrate/201901241536541_add_fedora_collection_id_to_zizia_csv_imports.rb +0 -5
  63. data/db/migrate/20190911133657_create_zizia_pre_ingest_files.rb +0 -12
  64. data/db/migrate/20190911134002_create_zizia_pre_ingest_works.rb +0 -9
  65. data/db/migrate/20190911142616_create_zizia_csv_import_details.rb +0 -8
  66. data/docs/_config.yml +0 -1
  67. data/docs/customizing_metadata.md +0 -41
  68. data/docs/index.md +0 -113
  69. data/log/.keep +0 -0
  70. data/solr/config/_rest_managed.json +0 -3
  71. data/solr/config/admin-extra.html +0 -31
  72. data/solr/config/elevate.xml +0 -36
  73. data/solr/config/mapping-ISOLatin1Accent.txt +0 -246
  74. data/solr/config/protwords.txt +0 -21
  75. data/solr/config/routes.rb +0 -9
  76. data/solr/config/schema.xml +0 -366
  77. data/solr/config/scripts.conf +0 -24
  78. data/solr/config/solrconfig.xml +0 -322
  79. data/solr/config/spellings.txt +0 -2
  80. data/solr/config/stopwords.txt +0 -58
  81. data/solr/config/stopwords_en.txt +0 -58
  82. data/solr/config/synonyms.txt +0 -31
  83. data/solr/config/xslt/example.xsl +0 -132
  84. data/solr/config/xslt/example_atom.xsl +0 -67
  85. data/solr/config/xslt/example_rss.xsl +0 -66
  86. data/solr/config/xslt/luke.xsl +0 -337
  87. data/spec/controllers/importer_documentation_controller_spec.rb +0 -14
  88. data/spec/dummy/.gitignore +0 -23
  89. data/spec/dummy/Gemfile +0 -57
  90. data/spec/dummy/README.md +0 -24
  91. data/spec/dummy/Rakefile +0 -6
  92. data/spec/dummy/app/assets/config/manifest.js +0 -3
  93. data/spec/dummy/app/assets/csv/import_manifest.csv +0 -1
  94. data/spec/dummy/app/assets/images/.keep +0 -0
  95. data/spec/dummy/app/assets/javascripts/application.js +0 -15
  96. data/spec/dummy/app/assets/javascripts/cable.js +0 -13
  97. data/spec/dummy/app/assets/javascripts/channels/.keep +0 -0
  98. data/spec/dummy/app/assets/markdown/importer_guide.md +0 -256
  99. data/spec/dummy/app/assets/stylesheets/application.css +0 -15
  100. data/spec/dummy/app/channels/application_cable/channel.rb +0 -4
  101. data/spec/dummy/app/channels/application_cable/connection.rb +0 -4
  102. data/spec/dummy/app/controllers/application_controller.rb +0 -3
  103. data/spec/dummy/app/controllers/concerns/.keep +0 -0
  104. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  105. data/spec/dummy/app/jobs/application_job.rb +0 -2
  106. data/spec/dummy/app/mailers/application_mailer.rb +0 -4
  107. data/spec/dummy/app/models/application_record.rb +0 -3
  108. data/spec/dummy/app/models/concerns/.keep +0 -0
  109. data/spec/dummy/app/models/user.rb +0 -2
  110. data/spec/dummy/app/views/layouts/application.html.erb +0 -14
  111. data/spec/dummy/app/views/layouts/mailer.html.erb +0 -13
  112. data/spec/dummy/app/views/layouts/mailer.text.erb +0 -1
  113. data/spec/dummy/bin/bundle +0 -3
  114. data/spec/dummy/bin/rails +0 -9
  115. data/spec/dummy/bin/rake +0 -9
  116. data/spec/dummy/bin/setup +0 -38
  117. data/spec/dummy/bin/spring +0 -17
  118. data/spec/dummy/bin/update +0 -29
  119. data/spec/dummy/bin/yarn +0 -11
  120. data/spec/dummy/config/application.rb +0 -18
  121. data/spec/dummy/config/boot.rb +0 -3
  122. data/spec/dummy/config/cable.yml +0 -10
  123. data/spec/dummy/config/database.yml +0 -25
  124. data/spec/dummy/config/environment.rb +0 -5
  125. data/spec/dummy/config/environments/development.rb +0 -54
  126. data/spec/dummy/config/environments/production.rb +0 -91
  127. data/spec/dummy/config/environments/test.rb +0 -42
  128. data/spec/dummy/config/initializers/application_controller_renderer.rb +0 -8
  129. data/spec/dummy/config/initializers/assets.rb +0 -14
  130. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  131. data/spec/dummy/config/initializers/cookies_serializer.rb +0 -5
  132. data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  133. data/spec/dummy/config/initializers/inflections.rb +0 -16
  134. data/spec/dummy/config/initializers/mime_types.rb +0 -4
  135. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  136. data/spec/dummy/config/locales/en.yml +0 -33
  137. data/spec/dummy/config/puma.rb +0 -56
  138. data/spec/dummy/config/routes.rb +0 -4
  139. data/spec/dummy/config/secrets.yml +0 -32
  140. data/spec/dummy/config/spring.rb +0 -6
  141. data/spec/dummy/config.ru +0 -5
  142. data/spec/dummy/db/migrate/20190911165049_create_users.rb +0 -8
  143. data/spec/dummy/db/schema.rb +0 -55
  144. data/spec/dummy/db/seeds.rb +0 -7
  145. data/spec/dummy/lib/assets/.keep +0 -0
  146. data/spec/dummy/lib/tasks/.keep +0 -0
  147. data/spec/dummy/log/.keep +0 -0
  148. data/spec/dummy/package.json +0 -5
  149. data/spec/dummy/public/404.html +0 -67
  150. data/spec/dummy/public/422.html +0 -67
  151. data/spec/dummy/public/500.html +0 -66
  152. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  153. data/spec/dummy/public/apple-touch-icon.png +0 -0
  154. data/spec/dummy/public/favicon.ico +0 -0
  155. data/spec/dummy/public/robots.txt +0 -1
  156. data/spec/dummy/test/application_system_test_case.rb +0 -5
  157. data/spec/dummy/test/controllers/.keep +0 -0
  158. data/spec/dummy/test/fixtures/.keep +0 -0
  159. data/spec/dummy/test/fixtures/files/.keep +0 -0
  160. data/spec/dummy/test/fixtures/users.yml +0 -11
  161. data/spec/dummy/test/helpers/.keep +0 -0
  162. data/spec/dummy/test/integration/.keep +0 -0
  163. data/spec/dummy/test/mailers/.keep +0 -0
  164. data/spec/dummy/test/models/.keep +0 -0
  165. data/spec/dummy/test/models/user_test.rb +0 -7
  166. data/spec/dummy/test/system/.keep +0 -0
  167. data/spec/dummy/test/test_helper.rb +0 -10
  168. data/spec/dummy/vendor/.keep +0 -0
  169. data/spec/fixtures/bad_example.csv +0 -2
  170. data/spec/fixtures/dog.jpg +0 -0
  171. data/spec/fixtures/example.csv +0 -4
  172. data/spec/fixtures/hyrax/example.csv +0 -3
  173. data/spec/fixtures/images/animals/cat.png +0 -0
  174. data/spec/fixtures/images/zizia.png +0 -0
  175. data/spec/fixtures/zizia.png +0 -0
  176. data/spec/integration/csv_import_detail_spec.rb +0 -48
  177. data/spec/integration/import_csv_spec.rb +0 -27
  178. data/spec/integration/import_hyrax_csv.rb +0 -71
  179. data/spec/models/csv_import_spec.rb +0 -18
  180. data/spec/spec_helper.rb +0 -31
  181. data/spec/support/hyrax/basic_metadata.rb +0 -30
  182. data/spec/support/hyrax/core_metadata.rb +0 -15
  183. data/spec/support/shared_contexts/with_work_type.rb +0 -101
  184. data/spec/uploaders/csv_manifest_uploader_spec.rb +0 -30
  185. data/spec/views/zizia/importer_documentation/guide.html.erb_spec.rb +0 -13
  186. data/spec/zizia/csv_format_validator_spec.rb +0 -38
  187. data/spec/zizia/csv_parser_spec.rb +0 -73
  188. data/spec/zizia/csv_template_spec.rb +0 -15
  189. data/spec/zizia/hash_mapper_spec.rb +0 -8
  190. data/spec/zizia/hyrax_basic_metadata_mapper_spec.rb +0 -190
  191. data/spec/zizia/hyrax_record_importer_spec.rb +0 -176
  192. data/spec/zizia/importer_spec.rb +0 -46
  193. data/spec/zizia/input_record_spec.rb +0 -71
  194. data/spec/zizia/record_importer_spec.rb +0 -53
  195. data/spec/zizia/title_validator_spec.rb +0 -23
  196. data/spec/zizia/validator_spec.rb +0 -9
  197. data/spec/zizia/version_spec.rb +0 -7
  198. data/spec/zizia_spec.rb +0 -20
  199. data/zizia.gemspec +0 -42
@@ -1,322 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" ?>
2
- <!--
3
- Licensed to the Apache Software Foundation (ASF) under one or more
4
- contributor license agreements. See the NOTICE file distributed with
5
- this work for additional information regarding copyright ownership.
6
- The ASF licenses this file to You under the Apache License, Version 2.0
7
- (the "License"); you may not use this file except in compliance with
8
- the License. You may obtain a copy of the License at
9
-
10
- http://www.apache.org/licenses/LICENSE-2.0
11
-
12
- Unless required by applicable law or agreed to in writing, software
13
- distributed under the License is distributed on an "AS IS" BASIS,
14
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- See the License for the specific language governing permissions and
16
- limitations under the License.
17
- -->
18
-
19
- <!--
20
- This is a stripped down config file used for a simple example...
21
- It is *not* a good example to work from.
22
- -->
23
- <config>
24
-
25
- <!-- Controls what version of Lucene various components of Solr
26
- adhere to. Generally, you want to use the latest version to
27
- get all bug fixes and improvements. It is highly recommended
28
- that you fully re-index after changing this setting as it can
29
- affect both how text is indexed and queried.
30
- -->
31
- <luceneMatchVersion>5.0.0</luceneMatchVersion>
32
-
33
- <lib dir="${solr.install.dir:../../../..}/contrib/analysis-extras/lib" />
34
- <lib dir="${solr.install.dir:../../../..}/contrib/analysis-extras/lucene-libs" />
35
- <lib dir="${solr.install.dir:../../../..}/contrib/extraction/lib" regex=".*\.jar" />
36
- <lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-cell-\d.*\.jar" />
37
-
38
- <directoryFactory name="DirectoryFactory"
39
- class="${solr.directoryFactory:solr.NRTCachingDirectoryFactory}">
40
- </directoryFactory>
41
-
42
- <codecFactory class="solr.SchemaCodecFactory"/>
43
-
44
- <schemaFactory class="ClassicIndexSchemaFactory"/>
45
-
46
-
47
- <dataDir>${solr.blacklight-core.data.dir:}</dataDir>
48
-
49
- <requestDispatcher handleSelect="true" >
50
- <requestParsers enableRemoteStreaming="false" multipartUploadLimitInKB="2048000" />
51
- </requestDispatcher>
52
-
53
- <requestHandler name="/analysis/field" startup="lazy" class="solr.FieldAnalysisRequestHandler" />
54
-
55
- <!-- config for the admin interface -->
56
- <admin>
57
- <defaultQuery>*:*</defaultQuery>
58
- </admin>
59
-
60
- <updateHandler class="solr.DirectUpdateHandler2">
61
- <updateLog>
62
- <str name="dir">${solr.ulog.dir:}</str>
63
- </updateLog>
64
-
65
- <autoCommit>
66
- <maxTime>${solr.autoCommit.maxTime:15000}</maxTime>
67
- <openSearcher>false</openSearcher>
68
- </autoCommit>
69
-
70
- <autoSoftCommit>
71
- <maxTime>${solr.autoSoftCommit.maxTime:-1}</maxTime>
72
- </autoSoftCommit>
73
- </updateHandler>
74
-
75
- <!-- SearchHandler
76
-
77
- http://wiki.apache.org/solr/SearchHandler
78
-
79
- For processing Search Queries, the primary Request Handler
80
- provided with Solr is "SearchHandler" It delegates to a sequent
81
- of SearchComponents (see below) and supports distributed
82
- queries across multiple shards
83
- -->
84
- <requestHandler name="search" class="solr.SearchHandler" default="true">
85
- <!-- default values for query parameters can be specified, these
86
- will be overridden by parameters in the request
87
- -->
88
- <lst name="defaults">
89
- <str name="defType">edismax</str>
90
- <str name="echoParams">explicit</str>
91
- <str name="q.alt">*:*</str>
92
- <str name="mm">2&lt;-1 5&lt;-2 6&lt;90%</str>
93
- <int name="qs">1</int>
94
- <int name="ps">2</int>
95
- <float name="tie">0.01</float>
96
- <!-- this qf and pf are used by default, if not otherwise specified by
97
- client. The default blacklight_config will use these for the
98
- "keywords" search. See the author_qf/author_pf, title_qf, etc
99
- below, which the default blacklight_config will specify for
100
- those searches. You may also be interested in:
101
- http://wiki.apache.org/solr/LocalParams
102
- -->
103
- <str name="qf">
104
- id
105
- title_tesim
106
- author_tesim
107
- subject_tesim
108
- </str>
109
- <str name="pf">
110
- all_text_timv^10
111
- </str>
112
-
113
- <str name="author_qf">
114
- author_tesim
115
- </str>
116
- <str name="author_pf">
117
- </str>
118
- <str name="title_qf">
119
- title_tesim
120
- </str>
121
- <str name="title_pf">
122
- </str>
123
- <str name="subject_qf">
124
- subject_tesim
125
- </str>
126
- <str name="subject_pf">
127
- </str>
128
-
129
- <str name="fl">
130
- *,
131
- score
132
- </str>
133
-
134
- <str name="facet">true</str>
135
- <str name="facet.mincount">1</str>
136
-
137
- <str name="spellcheck">true</str>
138
- <str name="spellcheck.dictionary">default</str>
139
- <str name="spellcheck.onlyMorePopular">true</str>
140
- <str name="spellcheck.extendedResults">true</str>
141
- <str name="spellcheck.collate">false</str>
142
- <str name="spellcheck.count">5</str>
143
-
144
- </lst>
145
- <arr name="last-components">
146
- <str>spellcheck</str>
147
- </arr>
148
- </requestHandler>
149
-
150
- <requestHandler name="permissions" class="solr.SearchHandler" >
151
- <lst name="defaults">
152
- <str name="facet">off</str>
153
- <str name="echoParams">all</str>
154
- <str name="rows">1</str>
155
- <str name="q">{!raw f=id v=$id}</str> <!-- use id=666 instead of q=id:666 -->
156
- <str name="fl">
157
- id,
158
- access_ssim,
159
- discover_access_group_ssim,discover_access_person_ssim,
160
- read_access_group_ssim,read_access_person_ssim,
161
- edit_access_group_ssim,edit_access_person_ssim,
162
- depositor_ti,
163
- embargo_release_date_dtsi
164
- inheritable_access_ssim,
165
- inheritable_discover_access_group_ssim,inheritable_discover_access_person_ssim,
166
- inheritable_read_access_group_ssim,inheritable_read_access_person_ssim,
167
- inheritable_edit_access_group_ssim,inheritable_edit_access_person_ssim,
168
- inheritable_embargo_release_date_dtsi
169
- </str>
170
- </lst>
171
- </requestHandler>
172
-
173
- <requestHandler name="standard" class="solr.SearchHandler">
174
- <lst name="defaults">
175
- <str name="echoParams">explicit</str>
176
- <str name="defType">lucene</str>
177
- </lst>
178
- </requestHandler>
179
-
180
- <!-- for requests to get a single document; use id=666 instead of q=id:666 -->
181
- <requestHandler name="document" class="solr.SearchHandler" >
182
- <lst name="defaults">
183
- <str name="echoParams">all</str>
184
- <str name="fl">*</str>
185
- <str name="rows">1</str>
186
- <str name="q">{!term f=id v=$id}</str> <!-- use id=666 instead of q=id:666 -->
187
- </lst>
188
- </requestHandler>
189
-
190
- <searchComponent name="termsComponent" class="solr.TermsComponent" />
191
-
192
- <requestHandler name="/terms" class="solr.SearchHandler">
193
- <lst name="defaults">
194
- <bool name="terms">true</bool>
195
- </lst>
196
- <arr name="components">
197
- <str>termsComponent</str>
198
- </arr>
199
- </requestHandler>
200
-
201
- <!-- Spell Check
202
-
203
- The spell check component can return a list of alternative spelling
204
- suggestions.
205
-
206
- http://wiki.apache.org/solr/SpellCheckComponent
207
- -->
208
- <searchComponent name="spellcheck" class="solr.SpellCheckComponent">
209
-
210
- <str name="queryAnalyzerFieldType">textSpell</str>
211
-
212
- <!-- Multiple "Spell Checkers" can be declared and used by this
213
- component
214
- -->
215
-
216
- <!-- a spellchecker built from a field of the main index, and
217
- written to disk
218
- -->
219
- <lst name="spellchecker">
220
- <str name="name">default</str>
221
- <str name="field">spell</str>
222
- <str name="spellcheckIndexDir">./spell</str>
223
- <str name="buildOnOptimize">true</str>
224
- </lst>
225
- <lst name="spellchecker">
226
- <str name="name">author</str>
227
- <str name="field">author_spell</str>
228
- <str name="spellcheckIndexDir">./spell_author</str>
229
- <str name="accuracy">0.7</str>
230
- <str name="buildOnOptimize">true</str>
231
- </lst>
232
- <lst name="spellchecker">
233
- <str name="name">subject</str>
234
- <str name="field">subject_spell</str>
235
- <str name="spellcheckIndexDir">./spell_subject</str>
236
- <str name="accuracy">0.7</str>
237
- <str name="buildOnOptimize">true</str>
238
- </lst>
239
- <lst name="spellchecker">
240
- <str name="name">title</str>
241
- <str name="field">title_spell</str>
242
- <str name="spellcheckIndexDir">./spell_title</str>
243
- <str name="accuracy">0.7</str>
244
- <str name="buildOnOptimize">true</str>
245
- </lst>
246
-
247
- <!-- a spellchecker that uses a different distance measure -->
248
- <!--
249
- <lst name="spellchecker">
250
- <str name="name">jarowinkler</str>
251
- <str name="field">spell</str>
252
- <str name="distanceMeasure">
253
- org.apache.lucene.search.spell.JaroWinklerDistance
254
- </str>
255
- <str name="spellcheckIndexDir">spellcheckerJaro</str>
256
- </lst>
257
- -->
258
-
259
- <!-- a spellchecker that use an alternate comparator
260
-
261
- comparatorClass be one of:
262
- 1. score (default)
263
- 2. freq (Frequency first, then score)
264
- 3. A fully qualified class name
265
- -->
266
- <!--
267
- <lst name="spellchecker">
268
- <str name="name">freq</str>
269
- <str name="field">lowerfilt</str>
270
- <str name="spellcheckIndexDir">spellcheckerFreq</str>
271
- <str name="comparatorClass">freq</str>
272
- <str name="buildOnCommit">true</str>
273
- -->
274
-
275
- <!-- A spellchecker that reads the list of words from a file -->
276
- <!--
277
- <lst name="spellchecker">
278
- <str name="classname">solr.FileBasedSpellChecker</str>
279
- <str name="name">file</str>
280
- <str name="sourceLocation">spellings.txt</str>
281
- <str name="characterEncoding">UTF-8</str>
282
- <str name="spellcheckIndexDir">spellcheckerFile</str>
283
- </lst>
284
- -->
285
- </searchComponent>
286
-
287
- <searchComponent name="suggest" class="solr.SuggestComponent">
288
- <lst name="suggester">
289
- <str name="name">mySuggester</str>
290
- <str name="lookupImpl">FuzzyLookupFactory</str>
291
- <str name="suggestAnalyzerFieldType">textSuggest</str>
292
- <str name="buildOnCommit">true</str>
293
- <str name="field">suggest</str>
294
- </lst>
295
- </searchComponent>
296
-
297
- <requestHandler name="/suggest" class="solr.SearchHandler" startup="lazy">
298
- <lst name="defaults">
299
- <str name="suggest">true</str>
300
- <str name="suggest.count">5</str>
301
- <str name="suggest.dictionary">mySuggester</str>
302
- </lst>
303
- <arr name="components">
304
- <str>suggest</str>
305
- </arr>
306
- </requestHandler>
307
-
308
- <requestHandler name="/update/extract" class="org.apache.solr.handler.extraction.ExtractingRequestHandler">
309
- <lst name="defaults">
310
- <str name="fmap.Last-Modified">last_modified</str>
311
- <str name="uprefix">ignored_</str>
312
- </lst>
313
- <!--Optional. Specify a path to a tika configuration file. See the Tika docs for details.-->
314
- <!-- <str name="tika.config">/my/path/to/tika.config</str> -->
315
- <!-- Optional. Specify one or more date formats to parse. See DateUtil.DEFAULT_DATE_FORMATS
316
- for default date formats -->
317
- <!-- <lst name="date.formats"> -->
318
- <!-- <str>yyyy&#45;MM&#45;dd</str> -->
319
- <!-- </lst> -->
320
- </requestHandler>
321
- </config>
322
-
@@ -1,2 +0,0 @@
1
- pizza
2
- history
@@ -1,58 +0,0 @@
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
- #-----------------------------------------------------------------------
17
- # a couple of test stopwords to test that the words are really being
18
- # configured from this file:
19
- stopworda
20
- stopwordb
21
-
22
- #Standard english stop words taken from Lucene's StopAnalyzer
23
- a
24
- an
25
- and
26
- are
27
- as
28
- at
29
- be
30
- but
31
- by
32
- for
33
- if
34
- in
35
- into
36
- is
37
- it
38
- no
39
- not
40
- of
41
- on
42
- or
43
- s
44
- such
45
- t
46
- that
47
- the
48
- their
49
- then
50
- there
51
- these
52
- they
53
- this
54
- to
55
- was
56
- will
57
- with
58
-
@@ -1,58 +0,0 @@
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
- #-----------------------------------------------------------------------
17
- # a couple of test stopwords to test that the words are really being
18
- # configured from this file:
19
- stopworda
20
- stopwordb
21
-
22
- #Standard english stop words taken from Lucene's StopAnalyzer
23
- a
24
- an
25
- and
26
- are
27
- as
28
- at
29
- be
30
- but
31
- by
32
- for
33
- if
34
- in
35
- into
36
- is
37
- it
38
- no
39
- not
40
- of
41
- on
42
- or
43
- s
44
- such
45
- t
46
- that
47
- the
48
- their
49
- then
50
- there
51
- these
52
- they
53
- this
54
- to
55
- was
56
- will
57
- with
58
-
@@ -1,31 +0,0 @@
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
- #some test synonym mappings unlikely to appear in real input text
15
- aaa => aaaa
16
- bbb => bbbb1 bbbb2
17
- ccc => cccc1,cccc2
18
- a\=>a => b\=>b
19
- a\,a => b\,b
20
- fooaaa,baraaa,bazaaa
21
-
22
- # Some synonym groups specific to this example
23
- GB,gib,gigabyte,gigabytes
24
- MB,mib,megabyte,megabytes
25
- Television, Televisions, TV, TVs
26
- #notice we use "gib" instead of "GiB" so any WordDelimiterFilter coming
27
- #after us won't split it into two words.
28
-
29
- # Synonym mappings can be used for spelling correction too
30
- pixima => pixma
31
-
@@ -1,132 +0,0 @@
1
- <?xml version='1.0' encoding='UTF-8'?>
2
-
3
- <!--
4
- * Licensed to the Apache Software Foundation (ASF) under one or more
5
- * contributor license agreements. See the NOTICE file distributed with
6
- * this work for additional information regarding copyright ownership.
7
- * The ASF licenses this file to You under the Apache License, Version 2.0
8
- * (the "License"); you may not use this file except in compliance with
9
- * the License. You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- -->
19
-
20
- <!--
21
- Simple transform of Solr query results to HTML
22
- -->
23
- <xsl:stylesheet version='1.0'
24
- xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
25
- >
26
-
27
- <xsl:output media-type="text/html; charset=UTF-8" encoding="UTF-8"/>
28
-
29
- <xsl:variable name="title" select="concat('Solr search results (',response/result/@numFound,' documents)')"/>
30
-
31
- <xsl:template match='/'>
32
- <html>
33
- <head>
34
- <title><xsl:value-of select="$title"/></title>
35
- <xsl:call-template name="css"/>
36
- </head>
37
- <body>
38
- <h1><xsl:value-of select="$title"/></h1>
39
- <div class="note">
40
- This has been formatted by the sample "example.xsl" transform -
41
- use your own XSLT to get a nicer page
42
- </div>
43
- <xsl:apply-templates select="response/result/doc"/>
44
- </body>
45
- </html>
46
- </xsl:template>
47
-
48
- <xsl:template match="doc">
49
- <xsl:variable name="pos" select="position()"/>
50
- <div class="doc">
51
- <table width="100%">
52
- <xsl:apply-templates>
53
- <xsl:with-param name="pos"><xsl:value-of select="$pos"/></xsl:with-param>
54
- </xsl:apply-templates>
55
- </table>
56
- </div>
57
- </xsl:template>
58
-
59
- <xsl:template match="doc/*[@name='score']" priority="100">
60
- <xsl:param name="pos"></xsl:param>
61
- <tr>
62
- <td class="name">
63
- <xsl:value-of select="@name"/>
64
- </td>
65
- <td class="value">
66
- <xsl:value-of select="."/>
67
-
68
- <xsl:if test="boolean(//lst[@name='explain'])">
69
- <xsl:element name="a">
70
- <!-- can't allow whitespace here -->
71
- <xsl:attribute name="href">javascript:toggle("<xsl:value-of select="concat('exp-',$pos)" />");</xsl:attribute>?</xsl:element>
72
- <br/>
73
- <xsl:element name="div">
74
- <xsl:attribute name="class">exp</xsl:attribute>
75
- <xsl:attribute name="id">
76
- <xsl:value-of select="concat('exp-',$pos)" />
77
- </xsl:attribute>
78
- <xsl:value-of select="//lst[@name='explain']/str[position()=$pos]"/>
79
- </xsl:element>
80
- </xsl:if>
81
- </td>
82
- </tr>
83
- </xsl:template>
84
-
85
- <xsl:template match="doc/arr" priority="100">
86
- <tr>
87
- <td class="name">
88
- <xsl:value-of select="@name"/>
89
- </td>
90
- <td class="value">
91
- <ul>
92
- <xsl:for-each select="*">
93
- <li><xsl:value-of select="."/></li>
94
- </xsl:for-each>
95
- </ul>
96
- </td>
97
- </tr>
98
- </xsl:template>
99
-
100
-
101
- <xsl:template match="doc/*">
102
- <tr>
103
- <td class="name">
104
- <xsl:value-of select="@name"/>
105
- </td>
106
- <td class="value">
107
- <xsl:value-of select="."/>
108
- </td>
109
- </tr>
110
- </xsl:template>
111
-
112
- <xsl:template match="*"/>
113
-
114
- <xsl:template name="css">
115
- <script>
116
- function toggle(id) {
117
- var obj = document.getElementById(id);
118
- obj.style.display = (obj.style.display != 'block') ? 'block' : 'none';
119
- }
120
- </script>
121
- <style type="text/css">
122
- body { font-family: "Lucida Grande", sans-serif }
123
- td.name { font-style: italic; font-size:80%; }
124
- td { vertical-align: top; }
125
- ul { margin: 0px; margin-left: 1em; padding: 0px; }
126
- .note { font-size:80%; }
127
- .doc { margin-top: 1em; border-top: solid grey 1px; }
128
- .exp { display: none; font-family: monospace; white-space: pre; }
129
- </style>
130
- </xsl:template>
131
-
132
- </xsl:stylesheet>
@@ -1,67 +0,0 @@
1
- <?xml version='1.0' encoding='UTF-8'?>
2
-
3
- <!--
4
- * Licensed to the Apache Software Foundation (ASF) under one or more
5
- * contributor license agreements. See the NOTICE file distributed with
6
- * this work for additional information regarding copyright ownership.
7
- * The ASF licenses this file to You under the Apache License, Version 2.0
8
- * (the "License"); you may not use this file except in compliance with
9
- * the License. You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- -->
19
-
20
- <!--
21
- Simple transform of Solr query results to Atom
22
- -->
23
-
24
- <xsl:stylesheet version='1.0'
25
- xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
26
-
27
- <xsl:output
28
- method="xml"
29
- encoding="utf-8"
30
- media-type="text/xml; charset=UTF-8"
31
- />
32
-
33
- <xsl:template match='/'>
34
- <xsl:variable name="query" select="response/lst[@name='responseHeader']/lst[@name='params']/str[@name='q']"/>
35
- <feed xmlns="http://www.w3.org/2005/Atom">
36
- <title>Example Solr Atom 1.0 Feed</title>
37
- <subtitle>
38
- This has been formatted by the sample "example_atom.xsl" transform -
39
- use your own XSLT to get a nicer Atom feed.
40
- </subtitle>
41
- <author>
42
- <name>Apache Solr</name>
43
- <email>solr-user@lucene.apache.org</email>
44
- </author>
45
- <link rel="self" type="application/atom+xml"
46
- href="http://localhost:8983/solr/q={$query}&amp;wt=xslt&amp;tr=atom.xsl"/>
47
- <updated>
48
- <xsl:value-of select="response/result/doc[position()=1]/date[@name='timestamp']"/>
49
- </updated>
50
- <id>tag:localhost,2007:example</id>
51
- <xsl:apply-templates select="response/result/doc"/>
52
- </feed>
53
- </xsl:template>
54
-
55
- <!-- search results xslt -->
56
- <xsl:template match="doc">
57
- <xsl:variable name="id" select="str[@name='id']"/>
58
- <entry>
59
- <title><xsl:value-of select="str[@name='name']"/></title>
60
- <link href="http://localhost:8983/solr/select?q={$id}"/>
61
- <id>tag:localhost,2007:<xsl:value-of select="$id"/></id>
62
- <summary><xsl:value-of select="arr[@name='features']"/></summary>
63
- <updated><xsl:value-of select="date[@name='timestamp']"/></updated>
64
- </entry>
65
- </xsl:template>
66
-
67
- </xsl:stylesheet>