iiif_print 1.0.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (181) hide show
  1. checksums.yaml +4 -4
  2. data/.github/ISSUE_TEMPLATE.md +18 -0
  3. data/.github/PULL_REQUEST_TEMPLATE.md +16 -0
  4. data/.github/workflows/build-lint-test-action.yaml +4 -5
  5. data/.gitignore +5 -4
  6. data/.rubocop.yml +1 -0
  7. data/.solargraph.yml +19 -0
  8. data/Gemfile.lock +1025 -0
  9. data/README.md +102 -9
  10. data/Rakefile +6 -0
  11. data/app/actors/iiif_print/actors/cleanup_file_sets_actor_decorator.rb +24 -0
  12. data/app/actors/iiif_print/actors/file_set_actor_decorator.rb +30 -28
  13. data/app/controllers/iiif_print/split_pdfs_controller.rb +38 -0
  14. data/app/helpers/iiif_print/iiif_helper_decorator.rb +32 -0
  15. data/app/helpers/iiif_print/iiif_print_helper_behavior.rb +23 -0
  16. data/app/helpers/iiif_print_helper.rb +0 -20
  17. data/app/indexers/concerns/iiif_print/child_work_indexer.rb +27 -0
  18. data/app/indexers/concerns/iiif_print/file_set_indexer.rb +45 -17
  19. data/{lib → app/jobs}/iiif_print/jobs/application_job.rb +2 -1
  20. data/app/jobs/iiif_print/jobs/child_works_from_pdf_job.rb +153 -0
  21. data/app/jobs/iiif_print/jobs/create_relationships_job.rb +117 -0
  22. data/app/jobs/iiif_print/jobs/request_split_pdf_job.rb +31 -0
  23. data/app/listeners/iiif_print/listener.rb +31 -0
  24. data/app/models/concerns/iiif_print/set_child_flag.rb +10 -1
  25. data/app/models/concerns/iiif_print/solr/document.rb +19 -3
  26. data/app/models/iiif_print/iiif_search_decorator.rb +35 -0
  27. data/app/models/iiif_print/iiif_search_response_decorator.rb +25 -2
  28. data/app/models/iiif_print/pending_relationship.rb +3 -0
  29. data/app/presenters/iiif_print/file_set_presenter_decorator.rb +11 -0
  30. data/app/presenters/iiif_print/iiif_manifest_presenter_behavior.rb +120 -0
  31. data/app/presenters/iiif_print/iiif_manifest_presenter_factory_behavior.rb +1 -1
  32. data/app/presenters/iiif_print/work_show_presenter_decorator.rb +23 -11
  33. data/app/search_builders/concerns/iiif_print/allinson_flex_fields.rb +15 -0
  34. data/app/search_builders/concerns/iiif_print/highlight_search_params.rb +2 -1
  35. data/app/services/iiif_print/derivative_rodeo_service.rb +382 -0
  36. data/app/services/iiif_print/manifest_builder_service_behavior.rb +90 -31
  37. data/app/services/iiif_print/pluggable_derivative_service.rb +8 -10
  38. data/app/services/iiif_print/simple_schema_loader_decorator.rb +11 -0
  39. data/app/transactions/hyrax/transactions/iiif_print_container_decorator.rb +34 -0
  40. data/app/transactions/hyrax/transactions/steps/conditionally_destroy_children_from_split.rb +32 -0
  41. data/app/transactions/hyrax/transactions/steps/delete_all_file_sets_decorator.rb +35 -0
  42. data/app/views/catalog/_index_header_list_default.html.erb +13 -0
  43. data/app/views/hyrax/base/_representative_media.html.erb +4 -3
  44. data/app/views/hyrax/base/iiif_viewers/_universal_viewer.html.erb +1 -1
  45. data/app/views/hyrax/file_sets/_show_actions.html.erb +24 -0
  46. data/config/initializers/simple_schema_loader.rb +1 -0
  47. data/config/locales/iiif_print.en.yml +4 -0
  48. data/config/metadata/child_works_from_pdf_splitting.yaml +21 -0
  49. data/config/routes.rb +3 -0
  50. data/db/migrate/20181214181358_create_iiif_print_derivative_attachments.rb +8 -6
  51. data/db/migrate/20190107165909_create_iiif_print_ingest_file_relations.rb +7 -5
  52. data/db/migrate/20230109000000_create_iiif_print_pending_relationships.rb +8 -6
  53. data/db/migrate/20231110163052_add_model_details_to_iiif_print_pending_relationships.rb +7 -0
  54. data/docker-compose.yml +2 -2
  55. data/iiif_print.gemspec +11 -10
  56. data/lib/generators/iiif_print/install_generator.rb +21 -1
  57. data/lib/generators/iiif_print/templates/config/initializers/iiif_print.rb +11 -4
  58. data/lib/generators/iiif_print/templates/helpers/iiif_print_helper.rb +5 -0
  59. data/lib/iiif_print/base_derivative_service.rb +14 -2
  60. data/lib/iiif_print/blacklight_iiif_search/annotation_decorator.rb +58 -6
  61. data/lib/iiif_print/catalog_search_builder.rb +7 -3
  62. data/lib/iiif_print/configuration.rb +205 -8
  63. data/lib/iiif_print/data/fileset_helper.rb +3 -3
  64. data/lib/iiif_print/data/work_derivatives.rb +4 -4
  65. data/lib/iiif_print/engine.rb +53 -15
  66. data/lib/iiif_print/errors.rb +18 -0
  67. data/lib/iiif_print/homepage_search_builder.rb +17 -0
  68. data/lib/iiif_print/image_tool.rb +12 -8
  69. data/lib/iiif_print/jp2_derivative_service.rb +4 -1
  70. data/lib/iiif_print/lineage_service.rb +47 -13
  71. data/lib/iiif_print/metadata.rb +67 -48
  72. data/lib/iiif_print/pdf_derivative_service.rb +3 -1
  73. data/lib/iiif_print/persistence_layer/active_fedora_adapter.rb +189 -0
  74. data/lib/iiif_print/persistence_layer/valkyrie_adapter.rb +183 -0
  75. data/lib/iiif_print/persistence_layer.rb +118 -0
  76. data/lib/iiif_print/split_pdfs/base_splitter.rb +153 -0
  77. data/lib/iiif_print/split_pdfs/child_work_creation_from_pdf_service.rb +83 -37
  78. data/lib/iiif_print/split_pdfs/derivative_rodeo_splitter.rb +166 -0
  79. data/lib/iiif_print/split_pdfs/destroy_pdf_child_works_service.rb +22 -0
  80. data/lib/iiif_print/split_pdfs/pages_to_jpgs_splitter.rb +19 -0
  81. data/lib/iiif_print/split_pdfs/pages_to_pngs_splitter.rb +26 -0
  82. data/lib/iiif_print/split_pdfs/pages_to_tiffs_splitter.rb +41 -0
  83. data/lib/iiif_print/split_pdfs/pdf_image_extraction_service.rb +64 -59
  84. data/lib/iiif_print/text_extraction/hocr_reader.rb +7 -3
  85. data/lib/iiif_print/text_extraction/page_ocr.rb +5 -4
  86. data/lib/iiif_print/text_extraction_derivative_service.rb +4 -2
  87. data/lib/iiif_print/text_formats_from_alto_service.rb +3 -1
  88. data/lib/iiif_print/tiff_derivative_service.rb +3 -1
  89. data/lib/iiif_print/version.rb +1 -1
  90. data/lib/iiif_print.rb +210 -20
  91. data/lib/samvera/derivatives/configuration.rb +83 -0
  92. data/lib/samvera/derivatives/hyrax.rb +129 -0
  93. data/lib/samvera/derivatives.rb +238 -0
  94. data/tasks/copy_authorities_to_test_app.rake +11 -0
  95. data/tasks/iiif_print_dev.rake +4 -4
  96. metadata +111 -196
  97. data/app/helpers/hyrax/iiif_helper.rb +0 -22
  98. data/app/indexers/concerns/iiif_print/child_indexer.rb +0 -34
  99. data/app/views/hyrax/file_sets/_actions.html.erb +0 -45
  100. data/bin/rails +0 -13
  101. data/lib/iiif_print/jobs/child_works_from_pdf_job.rb +0 -107
  102. data/lib/iiif_print/jobs/create_relationships_job.rb +0 -78
  103. data/lib/iiif_print/split_pdfs/pages_into_images_service.rb +0 -130
  104. data/spec/.keep.txt +0 -1
  105. data/spec/factories/ability.rb +0 -6
  106. data/spec/factories/newspaper_issue.rb +0 -7
  107. data/spec/factories/newspaper_page.rb +0 -7
  108. data/spec/factories/newspaper_page_solr_document.rb +0 -12
  109. data/spec/factories/newspaper_title.rb +0 -8
  110. data/spec/factories/uploaded_pdf_file.rb +0 -9
  111. data/spec/factories/uploaded_txt_file.rb +0 -9
  112. data/spec/factories/user.rb +0 -13
  113. data/spec/fixtures/files/4.1.07.jp2 +0 -0
  114. data/spec/fixtures/files/4.1.07.tiff +0 -0
  115. data/spec/fixtures/files/README.md +0 -7
  116. data/spec/fixtures/files/alto-2-0.xsd +0 -714
  117. data/spec/fixtures/files/broken-truncated.pdf +0 -0
  118. data/spec/fixtures/files/credits.md +0 -16
  119. data/spec/fixtures/files/lowres-gray-via-ndnp-sample.tiff +0 -0
  120. data/spec/fixtures/files/minimal-1-page.pdf +0 -0
  121. data/spec/fixtures/files/minimal-2-page.pdf +0 -0
  122. data/spec/fixtures/files/minimal-alto.xml +0 -31
  123. data/spec/fixtures/files/ndnp-alto-sample.xml +0 -24
  124. data/spec/fixtures/files/ndnp-sample1-json.json +0 -1
  125. data/spec/fixtures/files/ndnp-sample1-txt.txt +0 -1
  126. data/spec/fixtures/files/ndnp-sample1.pdf +0 -0
  127. data/spec/fixtures/files/ocr_alto.xml +0 -202
  128. data/spec/fixtures/files/ocr_alto_scaled_4pts_per_px.xml +0 -202
  129. data/spec/fixtures/files/ocr_color.tiff +0 -0
  130. data/spec/fixtures/files/ocr_gray.jp2 +0 -0
  131. data/spec/fixtures/files/ocr_gray.tiff +0 -0
  132. data/spec/fixtures/files/ocr_mono.tiff +0 -0
  133. data/spec/fixtures/files/ocr_mono_text_hocr.html +0 -78
  134. data/spec/fixtures/files/page1.tiff +0 -0
  135. data/spec/fixtures/files/sample-4page-issue.pdf +0 -0
  136. data/spec/fixtures/files/sample-color-newsletter.pdf +0 -0
  137. data/spec/fixtures/files/thumbnail.jpg +0 -0
  138. data/spec/helpers/hyrax/iiif_helper_spec.rb +0 -65
  139. data/spec/helpers/iiif_print_helper_spec.rb +0 -43
  140. data/spec/iiif_print/base_derivative_service_spec.rb +0 -11
  141. data/spec/iiif_print/blacklight_iiif_search/annotation_decorator_spec.rb +0 -51
  142. data/spec/iiif_print/catalog_search_builder_spec.rb +0 -60
  143. data/spec/iiif_print/configuration_spec.rb +0 -67
  144. data/spec/iiif_print/data/work_derivatives_spec.rb +0 -245
  145. data/spec/iiif_print/data/work_file_spec.rb +0 -99
  146. data/spec/iiif_print/data/work_files_spec.rb +0 -237
  147. data/spec/iiif_print/image_tool_spec.rb +0 -109
  148. data/spec/iiif_print/jobs/child_works_from_pdf_job_spec.rb +0 -30
  149. data/spec/iiif_print/jobs/create_relationships_job_spec.rb +0 -17
  150. data/spec/iiif_print/jp2_image_metadata_spec.rb +0 -37
  151. data/spec/iiif_print/lineage_service_spec.rb +0 -13
  152. data/spec/iiif_print/metadata_spec.rb +0 -115
  153. data/spec/iiif_print/split_pdfs/pages_into_images_service_spec.rb +0 -6
  154. data/spec/iiif_print/text_extraction/alto_reader_spec.rb +0 -49
  155. data/spec/iiif_print/text_extraction/hocr_reader_spec.rb +0 -45
  156. data/spec/iiif_print/text_extraction/page_ocr_spec.rb +0 -84
  157. data/spec/iiif_print/text_extraction/render_alto_spec.rb +0 -54
  158. data/spec/iiif_print/text_extraction/word_coords_builder_spec.rb +0 -44
  159. data/spec/iiif_print_spec.rb +0 -51
  160. data/spec/misc_shared.rb +0 -111
  161. data/spec/models/iiif_print/derivative_attachment_spec.rb +0 -37
  162. data/spec/models/iiif_print/ingest_file_relation_spec.rb +0 -56
  163. data/spec/models/solr_document_spec.rb +0 -14
  164. data/spec/presenters/iiif_print/iiif_manifest_presenter_behavior_spec.rb +0 -19
  165. data/spec/presenters/iiif_print/iiif_manifest_presenter_factory_behavior_spec.rb +0 -49
  166. data/spec/services/iiif_print/jp2_derivative_service_spec.rb +0 -59
  167. data/spec/services/iiif_print/pdf_derivative_service_spec.rb +0 -66
  168. data/spec/services/iiif_print/pluggable_derivative_service_spec.rb +0 -178
  169. data/spec/services/iiif_print/text_extraction_derivative_service_spec.rb +0 -82
  170. data/spec/services/iiif_print/text_formats_from_alto_service_spec.rb +0 -127
  171. data/spec/services/iiif_print/tiff_derivative_service_spec.rb +0 -65
  172. data/spec/spec_helper.rb +0 -181
  173. data/spec/support/controller_level_helpers.rb +0 -28
  174. data/spec/support/iiif_print_models.rb +0 -127
  175. data/spec/test_app_templates/blacklight.yml +0 -9
  176. data/spec/test_app_templates/fedora.yml +0 -15
  177. data/spec/test_app_templates/lib/generators/test_app_generator.rb +0 -40
  178. data/spec/test_app_templates/redis.yml +0 -9
  179. data/spec/test_app_templates/solr/conf/schema.xml +0 -362
  180. data/spec/test_app_templates/solr/conf/solrconfig.xml +0 -322
  181. data/spec/test_app_templates/solr.yml +0 -7
@@ -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>6.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
- <dataDir>${solr.blacklight-core.data.dir:}</dataDir>
47
-
48
- <requestDispatcher handleSelect="true" >
49
- <requestParsers enableRemoteStreaming="false" multipartUploadLimitInKB="2048000" />
50
- </requestDispatcher>
51
-
52
- <requestHandler name="/analysis/field" startup="lazy" class="solr.FieldAnalysisRequestHandler" />
53
-
54
- <!-- config for the admin interface -->
55
- <admin>
56
- <defaultQuery>*:*</defaultQuery>
57
- </admin>
58
-
59
- <updateHandler class="solr.DirectUpdateHandler2">
60
- <updateLog>
61
- <str name="dir">${solr.ulog.dir:}</str>
62
- </updateLog>
63
-
64
- <autoCommit>
65
- <maxTime>${solr.autoCommit.maxTime:15000}</maxTime>
66
- <openSearcher>false</openSearcher>
67
- </autoCommit>
68
-
69
- <autoSoftCommit>
70
- <maxTime>${solr.autoSoftCommit.maxTime:-1}</maxTime>
71
- </autoSoftCommit>
72
- </updateHandler>
73
-
74
- <!-- SearchHandler
75
-
76
- http://wiki.apache.org/solr/SearchHandler
77
-
78
- For processing Search Queries, the primary Request Handler
79
- provided with Solr is "SearchHandler" It delegates to a sequent
80
- of SearchComponents (see below) and supports distributed
81
- queries across multiple shards
82
- -->
83
- <requestHandler name="search" class="solr.SearchHandler" default="true">
84
- <!-- default values for query parameters can be specified, these
85
- will be overridden by parameters in the request
86
- -->
87
- <lst name="defaults">
88
- <str name="defType">edismax</str>
89
- <str name="echoParams">explicit</str>
90
- <str name="q.alt">*:*</str>
91
- <str name="mm">2&lt;-1 5&lt;-2 6&lt;90%</str>
92
- <int name="qs">1</int>
93
- <int name="ps">2</int>
94
- <float name="tie">0.01</float>
95
- <!-- this qf and pf are used by default, if not otherwise specified by
96
- client. The default blacklight_config will use these for the
97
- "keywords" search. See the author_qf/author_pf, title_qf, etc
98
- below, which the default blacklight_config will specify for
99
- those searches. You may also be interested in:
100
- http://wiki.apache.org/solr/LocalParams
101
- -->
102
- <str name="qf">
103
- id
104
- active_fedora_model_ssi
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
- <!-- TURN OFF SUGGEST - it causes performance issues -->
287
- <!--
288
- <searchComponent name="suggest" class="solr.SuggestComponent">
289
- <lst name="suggester">
290
- <str name="name">mySuggester</str>
291
- <str name="lookupImpl">FuzzyLookupFactory</str>
292
- <str name="suggestAnalyzerFieldType">textSuggest</str>
293
- <str name="buildOnCommit">true</str>
294
- <str name="field">suggest</str>
295
- </lst>
296
- </searchComponent>
297
-
298
- <requestHandler name="/suggest" class="solr.SearchHandler" startup="lazy">
299
- <lst name="defaults">
300
- <str name="suggest">true</str>
301
- <str name="suggest.count">5</str>
302
- <str name="suggest.dictionary">mySuggester</str>
303
- </lst>
304
- <arr name="components">
305
- <str>suggest</str>
306
- </arr>
307
- </requestHandler>
308
- -->
309
- <requestHandler name="/update/extract" class="org.apache.solr.handler.extraction.ExtractingRequestHandler">
310
- <lst name="defaults">
311
- <str name="fmap.Last-Modified">last_modified</str>
312
- <str name="uprefix">ignored_</str>
313
- </lst>
314
- <!--Optional. Specify a path to a tika configuration file. See the Tika docs for details.-->
315
- <!-- <str name="tika.config">/my/path/to/tika.config</str> -->
316
- <!-- Optional. Specify one or more date formats to parse. See DateUtil.DEFAULT_DATE_FORMATS
317
- for default date formats -->
318
- <!-- <lst name="date.formats"> -->
319
- <!-- <str>yyyy&#45;MM&#45;dd</str> -->
320
- <!-- </lst> -->
321
- </requestHandler>
322
- </config>
@@ -1,7 +0,0 @@
1
- # This is a sample config file that points to a solr server for each environment
2
- development:
3
- url: <%= ENV['SOLR_URL'] %>/hyrax
4
- test:
5
- url: <%= ENV['SOLR_URL'] %>/hyrax_test
6
- production:
7
- url: <%= ENV['SOLR_URL'] || "http://your.production.server:8080/bl_solr/core0" %>