geo_concerns 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/.gitignore +13 -0
- data/.rubocop.yml +101 -0
- data/.travis.yml +17 -0
- data/Gemfile +46 -0
- data/LICENSE +202 -0
- data/README.md +46 -0
- data/Rakefile +21 -0
- data/app/actors/geo_concerns/file_actor.rb +20 -0
- data/app/actors/geo_concerns/file_set_actor.rb +7 -0
- data/app/assets/images/geo_concerns/.keep +0 -0
- data/app/assets/images/geo_concerns/images/geocoder.png +0 -0
- data/app/assets/images/geo_concerns/images/throbber.gif +0 -0
- data/app/assets/images/geo_concerns/img/filter-icon.png +0 -0
- data/app/assets/images/geo_concerns/img/move-handle.png +0 -0
- data/app/assets/images/geo_concerns/img/resize-handle.png +0 -0
- data/app/assets/javascripts/geo_concerns/Control.Geocoder.js +1056 -0
- data/app/assets/javascripts/geo_concerns/application.js +5 -0
- data/app/assets/javascripts/geo_concerns/bounding_box_selector.js +100 -0
- data/app/assets/javascripts/geo_concerns/leaflet-boundingbox.js +467 -0
- data/app/assets/stylesheets/geo_concerns/Control.Geocoder.css +104 -0
- data/app/assets/stylesheets/geo_concerns/application.css +18 -0
- data/app/assets/stylesheets/geo_concerns/bounding_box.scss +7 -0
- data/app/assets/stylesheets/geo_concerns/leaflet-boundingbox.css +17 -0
- data/app/controllers/concerns/geo_concerns/file_sets_controller_behavior.rb +19 -0
- data/app/controllers/concerns/geo_concerns/image_works_controller_behavior.rb +13 -0
- data/app/controllers/concerns/geo_concerns/raster_works_controller_behavior.rb +23 -0
- data/app/controllers/concerns/geo_concerns/vector_works_controller_behavior.rb +23 -0
- data/app/forms/geo_concerns/basic_geo_metadata_form.rb +8 -0
- data/app/forms/geo_concerns/external_metadata_file_form.rb +8 -0
- data/app/forms/geo_concerns/georeferenced_form.rb +9 -0
- data/app/forms/geo_concerns/image_work_form.rb +9 -0
- data/app/forms/geo_concerns/raster_work_form.rb +8 -0
- data/app/forms/geo_concerns/vector_work_form.rb +8 -0
- data/app/helpers/bounding_box_helper.rb +24 -0
- data/app/helpers/geo_concerns/application_helper.rb +4 -0
- data/app/models/concerns/geo_concerns/basic_geo_metadata.rb +21 -0
- data/app/models/concerns/geo_concerns/external_metadata_file_behavior.rb +31 -0
- data/app/models/concerns/geo_concerns/extractors/fgdc_helper.rb +9 -0
- data/app/models/concerns/geo_concerns/extractors/fgdc_metadata_extractor.rb +114 -0
- data/app/models/concerns/geo_concerns/extractors/iso19139_helper.rb +50 -0
- data/app/models/concerns/geo_concerns/extractors/mods_helper.rb +15 -0
- data/app/models/concerns/geo_concerns/file_set/derivatives.rb +60 -0
- data/app/models/concerns/geo_concerns/file_set_presenter_behavior.rb +7 -0
- data/app/models/concerns/geo_concerns/geo_file_format_behavior.rb +37 -0
- data/app/models/concerns/geo_concerns/geo_file_set_behavior.rb +11 -0
- data/app/models/concerns/geo_concerns/georeferenced_behavior.rb +18 -0
- data/app/models/concerns/geo_concerns/image_file_behavior.rb +14 -0
- data/app/models/concerns/geo_concerns/image_work_behavior.rb +69 -0
- data/app/models/concerns/geo_concerns/metadata_extraction_helper.rb +28 -0
- data/app/models/concerns/geo_concerns/raster_file_behavior.rb +14 -0
- data/app/models/concerns/geo_concerns/raster_work_behavior.rb +82 -0
- data/app/models/concerns/geo_concerns/solr_document_behavior.rb +25 -0
- data/app/models/concerns/geo_concerns/vector_file_behavior.rb +14 -0
- data/app/models/concerns/geo_concerns/vector_work_behavior.rb +78 -0
- data/app/presenters/geo_concerns/geo_concerns_show_presenter.rb +30 -0
- data/app/presenters/geo_concerns/image_work_show_presenter.rb +18 -0
- data/app/presenters/geo_concerns/raster_work_show_presenter.rb +18 -0
- data/app/presenters/geo_concerns/vector_work_show_presenter.rb +10 -0
- data/app/processors/geo_concerns/processors/base_geo_processor.rb +86 -0
- data/app/processors/geo_concerns/processors/raster.rb +11 -0
- data/app/processors/geo_concerns/processors/raster/aig.rb +44 -0
- data/app/processors/geo_concerns/processors/raster/base.rb +74 -0
- data/app/processors/geo_concerns/processors/raster/dem.rb +46 -0
- data/app/processors/geo_concerns/processors/raster/processor.rb +27 -0
- data/app/processors/geo_concerns/processors/vector.rb +11 -0
- data/app/processors/geo_concerns/processors/vector/base.rb +68 -0
- data/app/processors/geo_concerns/processors/vector/processor.rb +25 -0
- data/app/processors/geo_concerns/processors/vector/shapefile.rb +20 -0
- data/app/processors/geo_concerns/processors/zip.rb +31 -0
- data/app/renderers/coverage_renderer.rb +34 -0
- data/app/runners/geo_concerns/runners/raster_derivatives.rb +9 -0
- data/app/runners/geo_concerns/runners/vector_derivatives.rb +9 -0
- data/app/schemas/geo_concerns/basic_geo_metadata_optional.rb +39 -0
- data/app/schemas/geo_concerns/basic_geo_metadata_required.rb +25 -0
- data/app/services/authority_service.rb +23 -0
- data/app/services/geo_concerns/derivative_path.rb +16 -0
- data/app/services/image_format_service.rb +4 -0
- data/app/services/metadata_format_service.rb +4 -0
- data/app/services/raster_format_service.rb +4 -0
- data/app/services/vector_format_service.rb +4 -0
- data/app/values/geo_concerns/coverage.rb +36 -0
- data/app/values/geo_concerns/time_period.rb +31 -0
- data/app/views/curation_concerns/file_sets/_form.html.erb +48 -0
- data/app/views/curation_concerns/image_works/_form.html.erb +23 -0
- data/app/views/curation_concerns/image_works/_image_work.html.erb +2 -0
- data/app/views/curation_concerns/image_works/_members.html.erb +30 -0
- data/app/views/curation_concerns/image_works/_related_image_files.html.erb +24 -0
- data/app/views/curation_concerns/image_works/_show_actions.html.erb +16 -0
- data/app/views/curation_concerns/image_works/show.html.erb +17 -0
- data/app/views/curation_concerns/raster_works/_form.html.erb +25 -0
- data/app/views/curation_concerns/raster_works/_members.html.erb +30 -0
- data/app/views/curation_concerns/raster_works/_raster_work.html.erb +2 -0
- data/app/views/curation_concerns/raster_works/_related_raster_files.html.erb +24 -0
- data/app/views/curation_concerns/raster_works/_show_actions.html.erb +16 -0
- data/app/views/curation_concerns/raster_works/show.html.erb +17 -0
- data/app/views/curation_concerns/vector_works/_form.html.erb +25 -0
- data/app/views/curation_concerns/vector_works/_related_vector_files.html.erb +24 -0
- data/app/views/curation_concerns/vector_works/_show_actions.html.erb +15 -0
- data/app/views/curation_concerns/vector_works/_vector_work.html.erb +2 -0
- data/app/views/curation_concerns/vector_works/show.html.erb +15 -0
- data/app/views/geo_concerns/_attribute_rows.html.erb +11 -0
- data/app/views/geo_concerns/_attributes.html.erb +13 -0
- data/app/views/geo_concerns/_form_additional_information.html.erb +11 -0
- data/app/views/geo_concerns/_form_bounding_box.html.erb +9 -0
- data/app/views/geo_concerns/_form_descriptive_fields.html.erb +9 -0
- data/app/views/geo_concerns/_form_files_and_links.html.erb +0 -0
- data/app/views/geo_concerns/_form_populate_metadata.html.erb +8 -0
- data/app/views/geo_concerns/_form_required_information.html.erb +12 -0
- data/app/views/geo_concerns/_form_supplementary_fields.html.erb +15 -0
- data/app/views/geo_concerns/_related_external_metadata_files.html.erb +24 -0
- data/app/vocabs/geo_concerns/geo_terms.rb +12 -0
- data/bin/rails +12 -0
- data/config/routes.rb +6 -0
- data/geo_concerns.gemspec +36 -0
- data/lib/generators/geo_concerns/install_generator.rb +119 -0
- data/lib/generators/geo_concerns/templates/actors/curation_concerns/image_work_actor.rb +4 -0
- data/lib/generators/geo_concerns/templates/actors/curation_concerns/raster_work_actor.rb +4 -0
- data/lib/generators/geo_concerns/templates/actors/curation_concerns/vector_work_actor.rb +4 -0
- data/lib/generators/geo_concerns/templates/config/authorities/image_formats.yml +5 -0
- data/lib/generators/geo_concerns/templates/config/authorities/metadata_formats.yml +7 -0
- data/lib/generators/geo_concerns/templates/config/authorities/raster_formats.yml +9 -0
- data/lib/generators/geo_concerns/templates/config/authorities/vector_formats.yml +5 -0
- data/lib/generators/geo_concerns/templates/controllers/curation_concerns/file_sets_controller.rb +6 -0
- data/lib/generators/geo_concerns/templates/controllers/curation_concerns/image_works_controller.rb +5 -0
- data/lib/generators/geo_concerns/templates/controllers/curation_concerns/raster_works_controller.rb +6 -0
- data/lib/generators/geo_concerns/templates/controllers/curation_concerns/vector_works_controller.rb +6 -0
- data/lib/generators/geo_concerns/templates/geo_concerns.js +1 -0
- data/lib/generators/geo_concerns/templates/geo_concerns.scss +3 -0
- data/lib/generators/geo_concerns/templates/jobs/characterize_job.rb +12 -0
- data/lib/generators/geo_concerns/templates/models/file_set.rb +4 -0
- data/lib/generators/geo_concerns/templates/models/image_work.rb +6 -0
- data/lib/generators/geo_concerns/templates/models/raster_work.rb +7 -0
- data/lib/generators/geo_concerns/templates/models/vector_work.rb +7 -0
- data/lib/generators/geo_concerns/templates/presenters/file_set_presenter.rb +3 -0
- data/lib/generators/geo_concerns/templates/spec/actor_spec.rb.erb +9 -0
- data/lib/generators/geo_concerns/templates/spec/controller_spec.rb.erb +9 -0
- data/lib/generators/geo_concerns/templates/spec/model_spec.rb.erb +9 -0
- data/lib/geo_concerns.rb +6 -0
- data/lib/geo_concerns/engine.rb +4 -0
- data/lib/geo_concerns/version.rb +3 -0
- data/lib/tasks/geo_concerns_tasks.rake +4 -0
- data/solr/config/_rest_managed.json +3 -0
- data/solr/config/admin-extra.html +31 -0
- data/solr/config/elevate.xml +36 -0
- data/solr/config/mapping-ISOLatin1Accent.txt +246 -0
- data/solr/config/protwords.txt +21 -0
- data/solr/config/schema.xml +372 -0
- data/solr/config/scripts.conf +24 -0
- data/solr/config/solrconfig.xml +312 -0
- data/solr/config/spellings.txt +2 -0
- data/solr/config/stopwords.txt +58 -0
- data/solr/config/stopwords_en.txt +58 -0
- data/solr/config/synonyms.txt +31 -0
- data/solr/config/xslt/example.xsl +132 -0
- data/solr/config/xslt/example_atom.xsl +67 -0
- data/solr/config/xslt/example_rss.xsl +66 -0
- data/solr/config/xslt/luke.xsl +337 -0
- data/spec/actors/geo_concerns/file_actor_spec.rb +26 -0
- data/spec/controllers/image_works_controller_spec.rb +25 -0
- data/spec/controllers/raster_works_controller_spec.rb +50 -0
- data/spec/controllers/vector_works_controller_spec.rb +50 -0
- data/spec/factories/external_metadata_files.rb +20 -0
- data/spec/factories/image_files.rb +32 -0
- data/spec/factories/image_works.rb +68 -0
- data/spec/factories/raster_files.rb +35 -0
- data/spec/factories/raster_works.rb +86 -0
- data/spec/factories/users.rb +26 -0
- data/spec/factories/vector_files.rb +31 -0
- data/spec/factories/vector_works.rb +83 -0
- data/spec/features/create_raster_work_spec.rb +49 -0
- data/spec/forms/geo_concerns/basic_geo_metadata_form_spec.rb +27 -0
- data/spec/forms/geo_concerns/external_metadata_file_form_spec.rb +27 -0
- data/spec/forms/geo_concerns/georeferenced_form_spec.rb +29 -0
- data/spec/forms/geo_concerns/image_work_form_spec.rb +11 -0
- data/spec/forms/geo_concerns/raster_work_form_spec.rb +15 -0
- data/spec/forms/geo_concerns/vector_work_form_spec.rb +15 -0
- data/spec/helpers/bounding_box_helper_spec.rb +34 -0
- data/spec/models/concerns/basic_geo_metadata_spec.rb +21 -0
- data/spec/models/concerns/geo_concerns/file_set/derivatives_spec.rb +108 -0
- data/spec/models/concerns/geo_concerns/file_set/geo_file_format_behavior_spec.rb +56 -0
- data/spec/models/external_metadata_file_spec.rb +118 -0
- data/spec/models/file_set_spec.rb +9 -0
- data/spec/models/image_file_spec.rb +48 -0
- data/spec/models/image_work_spec.rb +71 -0
- data/spec/models/raster_file_spec.rb +48 -0
- data/spec/models/raster_work_spec.rb +122 -0
- data/spec/models/solr_document_spec.rb +35 -0
- data/spec/models/vector_file_spec.rb +48 -0
- data/spec/models/vector_work_spec.rb +113 -0
- data/spec/presenters/file_set_presenter_spec.rb +13 -0
- data/spec/presenters/geo_concerns_show_presenter_spec.rb +56 -0
- data/spec/presenters/image_work_show_presenter_spec.rb +52 -0
- data/spec/presenters/raster_work_show_presenter_spec.rb +52 -0
- data/spec/presenters/vector_work_show_presenter_spec.rb +41 -0
- data/spec/processors/geo_concerns/processors/base_geo_processor_spec.rb +109 -0
- data/spec/processors/geo_concerns/processors/raster/aig_spec.rb +28 -0
- data/spec/processors/geo_concerns/processors/raster/base_spec.rb +86 -0
- data/spec/processors/geo_concerns/processors/raster/dem_spec.rb +26 -0
- data/spec/processors/geo_concerns/processors/raster/processor_spec.rb +39 -0
- data/spec/processors/geo_concerns/processors/vector/base_spec.rb +67 -0
- data/spec/processors/geo_concerns/processors/vector/processor_spec.rb +28 -0
- data/spec/processors/geo_concerns/processors/vector/shapefile_spec.rb +17 -0
- data/spec/processors/geo_concerns/processors/zip_spec.rb +39 -0
- data/spec/renderers/coverage_renderer_spec.rb +21 -0
- data/spec/services/derivative_path_spec.rb +12 -0
- data/spec/services/raster_format_service_spec.rb +13 -0
- data/spec/spec_helper.rb +34 -0
- data/spec/support/controllers/engine_helpers.rb +7 -0
- data/spec/support/database_cleaner.rb +18 -0
- data/spec/support/devise.rb +10 -0
- data/spec/support/devise_helpers.rb +6 -0
- data/spec/support/factory_girl.rb +3 -0
- data/spec/support/features.rb +14 -0
- data/spec/support/features/session_helpers.rb +40 -0
- data/spec/support/fixture_reader.rb +7 -0
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +20 -0
- data/spec/values/coverage_spec.rb +40 -0
- data/tasks/ci.rake +49 -0
- metadata +527 -0
@@ -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,312 @@
|
|
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<-1 5<-2 6<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
|
+
active_fedora_model_ssi
|
106
|
+
title_tesim
|
107
|
+
author_tesim
|
108
|
+
subject_tesim
|
109
|
+
</str>
|
110
|
+
<str name="pf">
|
111
|
+
all_text_timv^10
|
112
|
+
</str>
|
113
|
+
|
114
|
+
<str name="author_qf">
|
115
|
+
author_tesim
|
116
|
+
</str>
|
117
|
+
<str name="author_pf">
|
118
|
+
</str>
|
119
|
+
<str name="title_qf">
|
120
|
+
title_tesim
|
121
|
+
</str>
|
122
|
+
<str name="title_pf">
|
123
|
+
</str>
|
124
|
+
<str name="subject_qf">
|
125
|
+
subject_tesim
|
126
|
+
</str>
|
127
|
+
<str name="subject_pf">
|
128
|
+
</str>
|
129
|
+
|
130
|
+
<str name="fl">
|
131
|
+
*,
|
132
|
+
score
|
133
|
+
</str>
|
134
|
+
|
135
|
+
<str name="facet">true</str>
|
136
|
+
<str name="facet.mincount">1</str>
|
137
|
+
|
138
|
+
<str name="spellcheck">true</str>
|
139
|
+
<str name="spellcheck.dictionary">default</str>
|
140
|
+
<str name="spellcheck.onlyMorePopular">true</str>
|
141
|
+
<str name="spellcheck.extendedResults">true</str>
|
142
|
+
<str name="spellcheck.collate">false</str>
|
143
|
+
<str name="spellcheck.count">5</str>
|
144
|
+
|
145
|
+
</lst>
|
146
|
+
<arr name="last-components">
|
147
|
+
<str>spellcheck</str>
|
148
|
+
</arr>
|
149
|
+
</requestHandler>
|
150
|
+
|
151
|
+
<requestHandler name="permissions" class="solr.SearchHandler" >
|
152
|
+
<lst name="defaults">
|
153
|
+
<str name="facet">off</str>
|
154
|
+
<str name="echoParams">all</str>
|
155
|
+
<str name="rows">1</str>
|
156
|
+
<str name="q">{!raw f=id v=$id}</str> <!-- use id=666 instead of q=id:666 -->
|
157
|
+
<str name="fl">
|
158
|
+
id,
|
159
|
+
access_ssim,
|
160
|
+
discover_access_group_ssim,discover_access_person_ssim,
|
161
|
+
read_access_group_ssim,read_access_person_ssim,
|
162
|
+
edit_access_group_ssim,edit_access_person_ssim,
|
163
|
+
depositor_ti,
|
164
|
+
embargo_release_date_dtsi
|
165
|
+
inheritable_access_ssim,
|
166
|
+
inheritable_discover_access_group_ssim,inheritable_discover_access_person_ssim,
|
167
|
+
inheritable_read_access_group_ssim,inheritable_read_access_person_ssim,
|
168
|
+
inheritable_edit_access_group_ssim,inheritable_edit_access_person_ssim,
|
169
|
+
inheritable_embargo_release_date_dtsi
|
170
|
+
</str>
|
171
|
+
</lst>
|
172
|
+
</requestHandler>
|
173
|
+
|
174
|
+
<requestHandler name="standard" class="solr.SearchHandler">
|
175
|
+
<lst name="defaults">
|
176
|
+
<str name="echoParams">explicit</str>
|
177
|
+
<str name="defType">lucene</str>
|
178
|
+
</lst>
|
179
|
+
</requestHandler>
|
180
|
+
|
181
|
+
<!-- for requests to get a single document; use id=666 instead of q=id:666 -->
|
182
|
+
<requestHandler name="document" class="solr.SearchHandler" >
|
183
|
+
<lst name="defaults">
|
184
|
+
<str name="echoParams">all</str>
|
185
|
+
<str name="fl">*</str>
|
186
|
+
<str name="rows">1</str>
|
187
|
+
<str name="q">{!term f=id v=$id}</str> <!-- use id=666 instead of q=id:666 -->
|
188
|
+
</lst>
|
189
|
+
</requestHandler>
|
190
|
+
|
191
|
+
<!-- Spell Check
|
192
|
+
|
193
|
+
The spell check component can return a list of alternative spelling
|
194
|
+
suggestions.
|
195
|
+
|
196
|
+
http://wiki.apache.org/solr/SpellCheckComponent
|
197
|
+
-->
|
198
|
+
<searchComponent name="spellcheck" class="solr.SpellCheckComponent">
|
199
|
+
|
200
|
+
<str name="queryAnalyzerFieldType">textSpell</str>
|
201
|
+
|
202
|
+
<!-- Multiple "Spell Checkers" can be declared and used by this
|
203
|
+
component
|
204
|
+
-->
|
205
|
+
|
206
|
+
<!-- a spellchecker built from a field of the main index, and
|
207
|
+
written to disk
|
208
|
+
-->
|
209
|
+
<lst name="spellchecker">
|
210
|
+
<str name="name">default</str>
|
211
|
+
<str name="field">spell</str>
|
212
|
+
<str name="spellcheckIndexDir">./spell</str>
|
213
|
+
<str name="buildOnOptimize">true</str>
|
214
|
+
</lst>
|
215
|
+
<lst name="spellchecker">
|
216
|
+
<str name="name">author</str>
|
217
|
+
<str name="field">author_spell</str>
|
218
|
+
<str name="spellcheckIndexDir">./spell_author</str>
|
219
|
+
<str name="accuracy">0.7</str>
|
220
|
+
<str name="buildOnOptimize">true</str>
|
221
|
+
</lst>
|
222
|
+
<lst name="spellchecker">
|
223
|
+
<str name="name">subject</str>
|
224
|
+
<str name="field">subject_spell</str>
|
225
|
+
<str name="spellcheckIndexDir">./spell_subject</str>
|
226
|
+
<str name="accuracy">0.7</str>
|
227
|
+
<str name="buildOnOptimize">true</str>
|
228
|
+
</lst>
|
229
|
+
<lst name="spellchecker">
|
230
|
+
<str name="name">title</str>
|
231
|
+
<str name="field">title_spell</str>
|
232
|
+
<str name="spellcheckIndexDir">./spell_title</str>
|
233
|
+
<str name="accuracy">0.7</str>
|
234
|
+
<str name="buildOnOptimize">true</str>
|
235
|
+
</lst>
|
236
|
+
|
237
|
+
<!-- a spellchecker that uses a different distance measure -->
|
238
|
+
<!--
|
239
|
+
<lst name="spellchecker">
|
240
|
+
<str name="name">jarowinkler</str>
|
241
|
+
<str name="field">spell</str>
|
242
|
+
<str name="distanceMeasure">
|
243
|
+
org.apache.lucene.search.spell.JaroWinklerDistance
|
244
|
+
</str>
|
245
|
+
<str name="spellcheckIndexDir">spellcheckerJaro</str>
|
246
|
+
</lst>
|
247
|
+
-->
|
248
|
+
|
249
|
+
<!-- a spellchecker that use an alternate comparator
|
250
|
+
|
251
|
+
comparatorClass be one of:
|
252
|
+
1. score (default)
|
253
|
+
2. freq (Frequency first, then score)
|
254
|
+
3. A fully qualified class name
|
255
|
+
-->
|
256
|
+
<!--
|
257
|
+
<lst name="spellchecker">
|
258
|
+
<str name="name">freq</str>
|
259
|
+
<str name="field">lowerfilt</str>
|
260
|
+
<str name="spellcheckIndexDir">spellcheckerFreq</str>
|
261
|
+
<str name="comparatorClass">freq</str>
|
262
|
+
<str name="buildOnCommit">true</str>
|
263
|
+
-->
|
264
|
+
|
265
|
+
<!-- A spellchecker that reads the list of words from a file -->
|
266
|
+
<!--
|
267
|
+
<lst name="spellchecker">
|
268
|
+
<str name="classname">solr.FileBasedSpellChecker</str>
|
269
|
+
<str name="name">file</str>
|
270
|
+
<str name="sourceLocation">spellings.txt</str>
|
271
|
+
<str name="characterEncoding">UTF-8</str>
|
272
|
+
<str name="spellcheckIndexDir">spellcheckerFile</str>
|
273
|
+
</lst>
|
274
|
+
-->
|
275
|
+
</searchComponent>
|
276
|
+
|
277
|
+
<searchComponent name="suggest" class="solr.SuggestComponent">
|
278
|
+
<lst name="suggester">
|
279
|
+
<str name="name">mySuggester</str>
|
280
|
+
<str name="lookupImpl">FuzzyLookupFactory</str>
|
281
|
+
<str name="suggestAnalyzerFieldType">textSuggest</str>
|
282
|
+
<str name="buildOnCommit">true</str>
|
283
|
+
<str name="field">suggest</str>
|
284
|
+
</lst>
|
285
|
+
</searchComponent>
|
286
|
+
|
287
|
+
<requestHandler name="/suggest" class="solr.SearchHandler" startup="lazy">
|
288
|
+
<lst name="defaults">
|
289
|
+
<str name="suggest">true</str>
|
290
|
+
<str name="suggest.count">5</str>
|
291
|
+
<str name="suggest.dictionary">mySuggester</str>
|
292
|
+
</lst>
|
293
|
+
<arr name="components">
|
294
|
+
<str>suggest</str>
|
295
|
+
</arr>
|
296
|
+
</requestHandler>
|
297
|
+
|
298
|
+
<requestHandler name="/update/extract" class="org.apache.solr.handler.extraction.ExtractingRequestHandler">
|
299
|
+
<lst name="defaults">
|
300
|
+
<str name="fmap.Last-Modified">last_modified</str>
|
301
|
+
<str name="uprefix">ignored_</str>
|
302
|
+
</lst>
|
303
|
+
<!--Optional. Specify a path to a tika configuration file. See the Tika docs for details.-->
|
304
|
+
<!-- <str name="tika.config">/my/path/to/tika.config</str> -->
|
305
|
+
<!-- Optional. Specify one or more date formats to parse. See DateUtil.DEFAULT_DATE_FORMATS
|
306
|
+
for default date formats -->
|
307
|
+
<!-- <lst name="date.formats"> -->
|
308
|
+
<!-- <str>yyyy-MM-dd</str> -->
|
309
|
+
<!-- </lst> -->
|
310
|
+
</requestHandler>
|
311
|
+
</config>
|
312
|
+
|
@@ -0,0 +1,58 @@
|
|
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
|
+
|
@@ -0,0 +1,58 @@
|
|
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
|
+
|