sufia 0.0.1.pre2 → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile +2 -5
- data/README.md +44 -12
- data/app/assets/javascripts/{scholarsphere.js → sufia.js} +0 -0
- data/app/assets/stylesheets/{scholarsphere.css → sufia.css} +0 -0
- data/app/controllers/batch_controller.rb +2 -3
- data/app/controllers/batch_edits_controller.rb +4 -4
- data/app/controllers/dashboard_controller.rb +5 -3
- data/app/controllers/generic_files_controller.rb +77 -41
- data/app/controllers/users_controller.rb +9 -21
- data/app/helpers/blacklight/render_constraints_helper_behavior.rb +2 -2
- data/app/helpers/sufia_helper.rb +23 -2
- data/app/models/datastreams/file_content_datastream.rb +17 -9
- data/app/models/generic_file.rb +1 -809
- data/app/views/_add_assets_links.html.erb +1 -1
- data/app/views/_user_util_links.html.erb +2 -2
- data/app/views/batch/_metadata.html.erb +16 -16
- data/app/views/batch/edit.html.erb +16 -10
- data/app/views/batch_edits/_metadata.html.erb +16 -16
- data/app/views/catalog/_index_partials/_list_files.html.erb +2 -2
- data/app/views/catalog/index.html.erb +5 -0
- data/app/views/dashboard/_facet_limit.html.erb +1 -1
- data/app/views/dashboard/_facet_pagination.html.erb +4 -4
- data/app/views/dashboard/_facet_selected.html.erb +1 -1
- data/app/views/dashboard/_index_partials/_list_files.html.erb +8 -8
- data/app/views/dashboard/_search_form.html.erb +1 -1
- data/app/views/dashboard/_sort_and_per_page.html.erb +1 -1
- data/app/views/dashboard/index.html.erb +0 -1
- data/app/views/generic_files/_breadcrumbs.html.erb +1 -1
- data/app/views/generic_files/_descriptions.html.erb +3 -3
- data/app/views/generic_files/_field_form +3 -3
- data/app/views/generic_files/_media_display.html.erb +5 -4
- data/app/views/generic_files/_permission.html.erb +5 -5
- data/app/views/generic_files/_versioning.html.erb +1 -1
- data/app/views/generic_files/edit.html.erb +2 -2
- data/app/views/generic_files/show.html.erb +3 -3
- data/app/views/static/versions.html.erb +1 -1
- data/app/views/users/edit.html.erb +5 -3
- data/app/views/users/index.html.erb +3 -3
- data/app/views/users/show.html.erb +6 -6
- data/config/jetty.yml +6 -0
- data/config/routes.rb +8 -4
- data/features/browse_dashboard_files.feature +11 -1
- data/features/browse_files.feature +6 -5
- data/features/contact_form.feature +4 -0
- data/features/display_dashboard.feature +6 -3
- data/features/ingest_upload_files.feature +2 -2
- data/features/step_definitions/fixture_steps.rb +6 -5
- data/features/step_definitions/scholarsphere.rb +24 -1
- data/features/step_definitions/user_steps.rb +2 -2
- data/features/step_definitions/web_steps.rb +1 -1
- data/features/support/env.rb +26 -0
- data/features/users.feature +18 -0
- data/lib/active_support/core_ext/marshal.rb +22 -0
- data/lib/generators/sufia/sufia_generator.rb +18 -2
- data/lib/generators/sufia/templates/catalog_controller.rb +3 -4
- data/{spec/support → lib/generators/sufia/templates}/config/redis.yml +0 -0
- data/lib/generators/sufia/templates/config/sufia.rb +68 -0
- data/lib/generators/sufia/templates/migrations/add_ldap_attrs_to_user.rb +41 -0
- data/lib/kaminari/helpers/tag.rb +11 -0
- data/lib/sufia.rb +30 -7
- data/lib/sufia/controller.rb +1 -5
- data/lib/sufia/generic_file.rb +200 -0
- data/lib/sufia/generic_file/audit.rb +119 -0
- data/lib/sufia/generic_file/characterization.rb +82 -0
- data/lib/sufia/generic_file/export.rb +339 -0
- data/lib/sufia/generic_file/permissions.rb +64 -0
- data/lib/sufia/generic_file/thumbnail.rb +68 -0
- data/{app/models → lib/sufia/jobs}/audit_job.rb +13 -3
- data/lib/sufia/jobs/batch_update_job.rb +86 -0
- data/lib/sufia/jobs/characterize_job.rb +35 -0
- data/{app/models → lib/sufia/jobs}/content_delete_event_job.rb +3 -1
- data/{app/models → lib/sufia/jobs}/content_deposit_event_job.rb +1 -1
- data/{app/models → lib/sufia/jobs}/content_new_version_event_job.rb +1 -1
- data/{app/models → lib/sufia/jobs}/content_restored_version_event_job.rb +8 -0
- data/{app/models → lib/sufia/jobs}/content_update_event_job.rb +1 -1
- data/{app/models → lib/sufia/jobs}/event_job.rb +7 -3
- data/{app/models → lib/sufia/jobs}/resolrize_job.rb +4 -2
- data/lib/sufia/jobs/transcode_video_job.rb +79 -0
- data/{app/models → lib/sufia/jobs}/unzip_job.rb +11 -3
- data/{app/models → lib/sufia/jobs}/user_edit_profile_event_job.rb +6 -0
- data/{app/models → lib/sufia/jobs}/user_follow_event_job.rb +9 -4
- data/{app/models → lib/sufia/jobs}/user_unfollow_event_job.rb +6 -0
- data/lib/sufia/queue/resque.rb +30 -0
- data/lib/sufia/role_mapper.rb +0 -1
- data/{app/models/characterize_job.rb → lib/sufia/solr_document_behavior.rb} +6 -7
- data/lib/sufia/user.rb +3 -3
- data/lib/sufia/version.rb +1 -1
- data/lib/tasks/fixtures.rake +38 -38
- data/lib/tasks/resque.rake +1 -0
- data/solr_conf/conf/solrconfig.xml +32 -1615
- data/solr_conf/solr.xml +1 -1
- data/spec/active_fedora/unsaved_digital_object_spec.rb +4 -4
- data/spec/config/host_to_vhost_spec.rb +4 -4
- data/spec/controllers/authorities_controller_spec.rb +1 -1
- data/spec/controllers/batch_controller_spec.rb +12 -10
- data/spec/controllers/catalog_controller_spec.rb +13 -13
- data/spec/controllers/dashboard_controller_spec.rb +15 -15
- data/spec/controllers/downloads_controller_spec.rb +14 -14
- data/spec/controllers/generic_files_controller_spec.rb +88 -46
- data/spec/controllers/mailbox_controller_spec.rb +2 -2
- data/spec/controllers/sessions_controller_spec.rb +1 -1
- data/spec/controllers/single_use_link_controller_spec.rb +18 -18
- data/spec/controllers/users_controller_spec.rb +47 -31
- data/spec/fixtures/countdown.avi +0 -0
- data/spec/fixtures/sufia/.gitignore +1 -0
- data/spec/fixtures/{scholarsphere → sufia}/bg_header.jpg +0 -0
- data/spec/fixtures/sufia/sufia_test1.descMeta.txt +12 -0
- data/spec/fixtures/{scholarsphere → sufia}/sufia_test1.foxml.erb +2 -2
- data/spec/fixtures/{scholarsphere/scholarsphere_test1.txt → sufia/sufia_test1.txt} +0 -0
- data/spec/fixtures/sufia/sufia_test2.descMeta.txt +12 -0
- data/spec/fixtures/{scholarsphere/scholarsphere_test2.docx → sufia/sufia_test2.docx} +0 -0
- data/spec/fixtures/{scholarsphere/scholarsphere_test2.foxml.erb → sufia/sufia_test2.foxml.erb} +6 -6
- data/spec/fixtures/sufia/sufia_test3.descMeta.txt +12 -0
- data/spec/fixtures/{scholarsphere/scholarsphere_test3.foxml.erb → sufia/sufia_test3.foxml.erb} +6 -6
- data/spec/fixtures/{scholarsphere/scholarsphere_test3.xls → sufia/sufia_test3.xls} +0 -0
- data/spec/fixtures/sufia/sufia_test4.descMeta.txt +12 -0
- data/spec/fixtures/{scholarsphere/scholarsphere_test4.foxml.erb → sufia/sufia_test4.foxml.erb} +6 -6
- data/spec/fixtures/{scholarsphere/scholarsphere_test4.pdf → sufia/sufia_test4.pdf} +0 -0
- data/spec/fixtures/sufia/sufia_test5.descMeta.txt +19 -0
- data/spec/fixtures/{scholarsphere → sufia}/sufia_test5.foxml.erb +3 -3
- data/spec/fixtures/{scholarsphere/scholarsphere_test5.mp3 → sufia/sufia_test5.mp3} +0 -0
- data/spec/fixtures/sufia/sufia_test5.txt +1 -0
- data/spec/fixtures/sufia/sufia_test6.descMeta.txt +12 -0
- data/spec/fixtures/{scholarsphere/scholarsphere_test6.foxml.erb → sufia/sufia_test6.foxml.erb} +6 -6
- data/spec/fixtures/{scholarsphere/scholarsphere_test6.jp2 → sufia/sufia_test6.jp2} +0 -0
- data/spec/fixtures/sufia/sufia_test6.txt +1 -0
- data/spec/fixtures/sufia_generic_stub.descMeta.txt +12 -0
- data/spec/fixtures/{scholarsphere_generic_stub.foxml.erb → sufia_generic_stub.foxml.erb} +3 -3
- data/spec/fixtures/sufia_generic_stub.txt +1 -0
- data/spec/lib/sufia/role_mapper_spec.rb +1 -1
- data/spec/models/audit_job_spec.rb +8 -11
- data/spec/models/batch_spec.rb +5 -5
- data/spec/models/batch_update_job_spec.rb +18 -15
- data/spec/models/checksum_audit_log_spec.rb +6 -19
- data/spec/models/event_jobs_spec.rb +23 -23
- data/spec/models/file_content_datastream_spec.rb +14 -14
- data/spec/models/fits_datastream_spec.rb +1 -1
- data/spec/models/generic_file_spec.rb +88 -41
- data/spec/models/single_use_link_spec.rb +3 -3
- data/spec/models/transcode_video_job_spec.rb +30 -0
- data/spec/models/unzip_job_spec.rb +6 -4
- data/spec/rake/{scholarsphere_fixtures_spec.rb → sufia_fixtures_spec.rb} +16 -16
- data/spec/routing/route_spec.rb +4 -8
- data/spec/spec_helper.rb +0 -7
- data/spec/support/Gemfile +4 -2
- data/spec/support/fedora_conf/fedora.fcfg +953 -0
- data/spec/support/lib/generators/test_app_generator.rb +1 -11
- data/sufia.gemspec +5 -3
- data/tasks/{scholarsphere-db.rake → sufia-db.rake} +1 -1
- data/tasks/{scholarsphere-dev.rake → sufia-dev.rake} +7 -3
- data/tasks/{scholarsphere-fixtures.rake → sufia-fixtures.rake} +43 -43
- data/tasks/{scholarsphere.rake → sufia.rake} +2 -2
- metadata +126 -95
- data/app/models/batch_update_job.rb +0 -82
- data/app/models/solr_document.rb +0 -50
- data/lib/sufia/permissions.rb +0 -43
- data/spec/fixtures/scholarsphere/scholarsphere_test1.descMeta.txt +0 -12
- data/spec/fixtures/scholarsphere/scholarsphere_test2.descMeta.txt +0 -12
- data/spec/fixtures/scholarsphere/scholarsphere_test3.descMeta.txt +0 -12
- data/spec/fixtures/scholarsphere/scholarsphere_test4.descMeta.txt +0 -12
- data/spec/fixtures/scholarsphere/scholarsphere_test5.descMeta.txt +0 -19
- data/spec/fixtures/scholarsphere/scholarsphere_test5.txt +0 -1
- data/spec/fixtures/scholarsphere/scholarsphere_test6.descMeta.txt +0 -12
- data/spec/fixtures/scholarsphere/scholarsphere_test6.txt +0 -1
- data/spec/fixtures/scholarsphere/sufia_scholarsphere1.descMeta.txt +0 -12
- data/spec/fixtures/scholarsphere/sufia_scholarsphere1.foxml.erb +0 -79
- data/spec/fixtures/scholarsphere/sufia_scholarsphere1.txt +0 -1
- data/spec/fixtures/scholarsphere_generic_stub.descMeta.txt +0 -12
- data/spec/fixtures/scholarsphere_generic_stub.txt +0 -1
|
@@ -13,10 +13,18 @@
|
|
|
13
13
|
# limitations under the License.
|
|
14
14
|
|
|
15
15
|
class UnzipJob
|
|
16
|
-
|
|
16
|
+
def queue_name
|
|
17
|
+
:unzip
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
attr_accessor :pid
|
|
21
|
+
|
|
22
|
+
def initialize(pid)
|
|
23
|
+
self.pid = pid
|
|
24
|
+
end
|
|
17
25
|
|
|
18
|
-
def
|
|
19
|
-
zip_file = GenericFile.find(pid
|
|
26
|
+
def run
|
|
27
|
+
zip_file = GenericFile.find(pid)
|
|
20
28
|
Zip::Archive.open_buffer(zip_file.content.content) do |archive|
|
|
21
29
|
archive.each do |f|
|
|
22
30
|
@generic_file = GenericFile.new
|
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
# limitations under the License.
|
|
14
14
|
|
|
15
15
|
class UserEditProfileEventJob < EventJob
|
|
16
|
+
attr_accessor :editor_id
|
|
17
|
+
|
|
16
18
|
def initialize(editor_id)
|
|
19
|
+
self.editor_id = editor_id
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def run
|
|
17
23
|
action = "User #{link_to_profile editor_id} has edited his or her profile"
|
|
18
24
|
timestamp = Time.now.to_i
|
|
19
25
|
editor = User.find_by_user_key(editor_id)
|
|
@@ -13,12 +13,17 @@
|
|
|
13
13
|
# limitations under the License.
|
|
14
14
|
|
|
15
15
|
class UserFollowEventJob < EventJob
|
|
16
|
+
attr_accessor :follower_id, :followee_id
|
|
17
|
+
|
|
16
18
|
def initialize(follower_id, followee_id)
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
self.follower_id = follower_id
|
|
20
|
+
self.followee_id = followee_id
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def run
|
|
20
24
|
# Create the event
|
|
21
|
-
|
|
25
|
+
follower = User.find_by_user_key(follower_id)
|
|
26
|
+
event = follower.create_event("User #{link_to_profile follower_id} is now following #{link_to_profile followee_id}", Time.now.to_i)
|
|
22
27
|
# Log the event to the follower's stream
|
|
23
28
|
follower.log_event(event)
|
|
24
29
|
# Fan out the event to followee
|
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
# limitations under the License.
|
|
14
14
|
|
|
15
15
|
class UserUnfollowEventJob < EventJob
|
|
16
|
+
attr_accessor :unfollower_id, :unfollowee_id
|
|
17
|
+
|
|
16
18
|
def initialize(unfollower_id, unfollowee_id)
|
|
19
|
+
self.unfollower_id = unfollower_id
|
|
20
|
+
self.unfollowee_id = unfollowee_id
|
|
21
|
+
end
|
|
22
|
+
def run
|
|
17
23
|
action = "User #{link_to_profile unfollower_id} has unfollowed #{link_to_profile unfollowee_id}"
|
|
18
24
|
timestamp = Time.now.to_i
|
|
19
25
|
unfollower = User.find_by_user_key(unfollower_id)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
require 'active_support/core_ext/marshal'
|
|
2
|
+
|
|
3
|
+
# Borrowed from:
|
|
4
|
+
# https://github.com/jeremy/resque-rails/blob/master/lib/resque/rails/queue.rb
|
|
5
|
+
module Sufia
|
|
6
|
+
module Resque
|
|
7
|
+
class Queue
|
|
8
|
+
attr_reader :default_queue_name
|
|
9
|
+
|
|
10
|
+
def initialize(default_queue_name)
|
|
11
|
+
@default_queue_name = default_queue_name
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
def push(job)
|
|
15
|
+
queue = job.respond_to?(:queue_name) ? job.queue_name : default_queue_name
|
|
16
|
+
begin
|
|
17
|
+
::Resque.enqueue_to queue, MarshaledJob, Marshal.dump(job)
|
|
18
|
+
rescue Redis::CannotConnectError
|
|
19
|
+
logger.error "Redis is down!"
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
class MarshaledJob
|
|
25
|
+
def self.perform(marshaled_job)
|
|
26
|
+
Marshal.load(marshaled_job).run
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
data/lib/sufia/role_mapper.rb
CHANGED
|
@@ -12,12 +12,11 @@
|
|
|
12
12
|
# See the License for the specific language governing permissions and
|
|
13
13
|
# limitations under the License.
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
generic_file.create_thumbnail
|
|
15
|
+
# -*- encoding : utf-8 -*-
|
|
16
|
+
module Sufia
|
|
17
|
+
module SolrDocumentBehavior
|
|
18
|
+
def title_or_label
|
|
19
|
+
self['generic_file__title_display'] ? 'generic_file__title_display' : 'label_t'
|
|
20
|
+
end
|
|
22
21
|
end
|
|
23
22
|
end
|
data/lib/sufia/user.rb
CHANGED
|
@@ -75,9 +75,9 @@ module Sufia::User
|
|
|
75
75
|
end
|
|
76
76
|
|
|
77
77
|
# The basic groups method, override or will fallback to Sufia::Ldap::User
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
def groups
|
|
79
|
+
return self.group_list ? self.group_list.split(";?;") : []
|
|
80
|
+
end
|
|
81
81
|
|
|
82
82
|
def ability
|
|
83
83
|
@ability ||= Ability.new(self)
|
data/lib/sufia/version.rb
CHANGED
data/lib/tasks/fixtures.rake
CHANGED
|
@@ -12,83 +12,83 @@
|
|
|
12
12
|
# See the License for the specific language governing permissions and
|
|
13
13
|
# limitations under the License.
|
|
14
14
|
|
|
15
|
-
#
|
|
15
|
+
# sufia-fixtures
|
|
16
16
|
#
|
|
17
17
|
# This was extracted from the original Hydra version in
|
|
18
|
-
# ~/rvm/gems/<rails version>@
|
|
18
|
+
# ~/rvm/gems/<rails version>@sufia/bundler/gems/lib/railties
|
|
19
19
|
# It has been changed to read all files out of a directory and pass those as fixtures.
|
|
20
20
|
# Any _ in the file name will be modified to a : for the id, since colons are not valid in a file name.
|
|
21
|
-
# The files should be named id_[fixture id] which should relates to the id within the foxml
|
|
21
|
+
# The files should be named id_[fixture id] which should relates to the id within the foxml sufia:[fixture id] where
|
|
22
22
|
# [fixture id] is some alpha numeric id ('test1')
|
|
23
23
|
#
|
|
24
24
|
# There are 2 sets of data needed to attach to a ScholarSphere fixture, 1 the data file, and 2 the metadata.
|
|
25
25
|
# It is important that the meta-data contains the appropriate id, or solor will not index it!
|
|
26
26
|
#
|
|
27
|
-
# Usage: rake
|
|
27
|
+
# Usage: rake sufia:fixtures:create [DIR=<fixture dir>] [FIXTURE_ID=<fixture id>] [FIXTURE_TITLE=<fixture title>] [FIXTURE_USER=<fixture user>]
|
|
28
28
|
# <fixture dir> is an optional directory under spec/fixtures to find the fixtures to load
|
|
29
|
-
# DEFAULT:
|
|
29
|
+
# DEFAULT: sufia
|
|
30
30
|
# <fixture id> is the id given to this fixture with fedora and solr.
|
|
31
31
|
# This must be unique and any old files will be overwritten.
|
|
32
|
-
# DEFAULT:
|
|
32
|
+
# DEFAULT: sufia
|
|
33
33
|
# <fixture title> is the title given to the fixture in fedora and solor,
|
|
34
34
|
# along with being put in the description and subject by default.
|
|
35
|
-
# DEFAULT:
|
|
35
|
+
# DEFAULT: sufia test
|
|
36
36
|
# <fixture user> is the user given to the fixture in fedora and solor,
|
|
37
37
|
# along with being put in the contributor and rights.
|
|
38
38
|
# DEFAULT: archivist1
|
|
39
39
|
#
|
|
40
40
|
#
|
|
41
41
|
# Creates new fixture files including the erb, descMeta, and text for loading into ScholarSphere.
|
|
42
|
-
# The Files are named based on the
|
|
42
|
+
# The Files are named based on the sufia: id_<fixture id>.foxml.erb, id_<fixture id>.descMeta.txt, and id_<fixture id>.txt
|
|
43
43
|
# The foxml.erb file references the descMeta.txt and .txt file. You can edit the erb to point to other data and/or edit the
|
|
44
44
|
# .descMeta.txt and/or .txt file to contain the data you wish.
|
|
45
45
|
#
|
|
46
46
|
# *** Please note that the id must be changed in the file name, foxml.erb, and descMeta.txt if you change it after creation. ***
|
|
47
47
|
#
|
|
48
|
-
# rake
|
|
48
|
+
# rake sufia:fixtures:generate [DIR=<fixture dir>]
|
|
49
49
|
# <fixture dir> is an optional directory under spec/fixtures to find the fixtures to load
|
|
50
|
-
# DEFAULT:
|
|
50
|
+
# DEFAULT: sufia
|
|
51
51
|
#
|
|
52
52
|
# Creates foxml.xml files from the foxml.erb files doing any erb substitutions within the erb file.
|
|
53
53
|
# This task is mostly used to put the appropriate Rails.root into the foxml.xml file so that
|
|
54
54
|
# the data and meta-data files can be located on load.
|
|
55
55
|
#
|
|
56
|
-
# rake
|
|
56
|
+
# rake sufia:fixtures:delete [DIR=<fixture dir>]
|
|
57
57
|
# <fixture dir> is an optional directory under spec/fixtures to find the fixtures to load
|
|
58
|
-
# DEFAULT:
|
|
58
|
+
# DEFAULT: sufia
|
|
59
59
|
#
|
|
60
60
|
# Remove any fixtures defined by .xml.foxml files in Rais.root/spec/fixtures/<fixture dir> from fedora and solr.
|
|
61
61
|
#
|
|
62
|
-
# rake
|
|
62
|
+
# rake sufia:fixtures:load [DIR=<fixture dir>]
|
|
63
63
|
# <fixture dir> is an optional directory under spec/fixtures to find the fixtures to load
|
|
64
|
-
# DEFAULT:
|
|
64
|
+
# DEFAULT: sufia
|
|
65
65
|
#
|
|
66
66
|
# load any fixtures defined by .xml.foxml files in Rais.root/spec/fixtures/<fixture dir> into fedora and solr.
|
|
67
67
|
#
|
|
68
|
-
# rake
|
|
68
|
+
# rake sufia:fixtures:refresh [DIR=<fixture dir>]
|
|
69
69
|
# <fixture dir> is an optional directory under spec/fixtures to find the fixtures to load
|
|
70
|
-
# DEFAULT:
|
|
70
|
+
# DEFAULT: sufia
|
|
71
71
|
#
|
|
72
72
|
# delete then load any fixtures defined by .xml.foxml files in Rais.root/spec/fixtures/<fixture dir> into fedora and solr.
|
|
73
73
|
#
|
|
74
74
|
# Example meta-data:
|
|
75
75
|
#
|
|
76
|
-
# <info:fedora/
|
|
77
|
-
# <info:fedora/
|
|
78
|
-
# <info:fedora/
|
|
79
|
-
# <info:fedora/
|
|
80
|
-
# <info:fedora/
|
|
81
|
-
# <info:fedora/
|
|
82
|
-
# <info:fedora/
|
|
83
|
-
# <info:fedora/
|
|
84
|
-
# <info:fedora/
|
|
85
|
-
# <info:fedora/
|
|
86
|
-
# <info:fedora/
|
|
87
|
-
# <info:fedora/
|
|
76
|
+
# <info:fedora/sufia:[fixture id]> <http://purl.org/dc/terms/publisher> "archivist1" .
|
|
77
|
+
# <info:fedora/sufia:[fixture id]> <http://purl.org/dc/terms/description> "MP3 Description" .
|
|
78
|
+
# <info:fedora/sufia:[fixture id]> <http://purl.org/dc/terms/created> "04/12/2012" .
|
|
79
|
+
# <info:fedora/sufia:[fixture id]> <http://purl.org/dc/terms/contributor> "archivist1" .
|
|
80
|
+
# <info:fedora/sufia:[fixture id]> <http://purl.org/dc/terms/title> "MP3" .
|
|
81
|
+
# <info:fedora/sufia:[fixture id]> <http://purl.org/dc/terms/relation> "test" .
|
|
82
|
+
# <info:fedora/sufia:[fixture id]> <http://purl.org/dc/terms/subject> "MP3 Test" .
|
|
83
|
+
# <info:fedora/sufia:[fixture id]> <http://purl.org/dc/terms/language> "En" .
|
|
84
|
+
# <info:fedora/sufia:[fixture id]> <http://xmlns.com/foaf/0.1/based_near> "State College" .
|
|
85
|
+
# <info:fedora/sufia:[fixture id]> <http://purl.org/dc/terms/rights> "archivist1" .
|
|
86
|
+
# <info:fedora/sufia:[fixture id]> <http://purl.org/dc/terms/creator> "archivist1" .
|
|
87
|
+
# <info:fedora/sufia:[fixture id]> <http://purl.org/dc/terms/identifier> "Test" .
|
|
88
88
|
#
|
|
89
89
|
# Example foxml: (note the ID needs to be unique) (the binary data in the xml below was generated using base64 on the text)
|
|
90
90
|
# <?xml version="1.0" encoding="UTF-8"?>
|
|
91
|
-
# <foxml:digitalObject PID="
|
|
91
|
+
# <foxml:digitalObject PID="sufia:[fixture id]" VERSION="1.1" xmlns:foxml="info:fedora/fedora-system:def/foxml#"
|
|
92
92
|
# xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="info:fedora/fedora-system:def/foxml# http://www.fedora.info/definitions/1/0/foxml1-1.xsd">
|
|
93
93
|
# <foxml:objectProperties>
|
|
94
94
|
# <foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/>
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
# xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
|
|
104
104
|
# xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
|
|
105
105
|
# <dc:title>testFixture2.txt</dc:title>
|
|
106
|
-
# <dc:identifier>
|
|
106
|
+
# <dc:identifier>sufia:[fixture id]</dc:identifier>
|
|
107
107
|
# </oai_dc:dc>
|
|
108
108
|
# </foxml:xmlContent>
|
|
109
109
|
# </foxml:datastreamVersion>
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
# LABEL="Fedora Object-to-Object Relationship Metadata" MIMETYPE="application/rdf+xml" SIZE="286">
|
|
135
135
|
# <foxml:xmlContent>
|
|
136
136
|
# <rdf:RDF xmlns:ns0="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
|
137
|
-
# <rdf:Description rdf:about="info:fedora/
|
|
137
|
+
# <rdf:Description rdf:about="info:fedora/sufia:[fixture id]">
|
|
138
138
|
# <ns0:hasModel rdf:resource="info:fedora/afmodel:GenericFile"/>
|
|
139
139
|
# </rdf:Description>
|
|
140
140
|
# </rdf:RDF>
|
|
@@ -187,12 +187,12 @@
|
|
|
187
187
|
require 'active_fedora'
|
|
188
188
|
|
|
189
189
|
SUFIA_TEST_NS = 'sufia' #this must be the same as id_namespace in the test applications config
|
|
190
|
-
namespace :
|
|
190
|
+
namespace :sufia do
|
|
191
191
|
namespace :fixtures do
|
|
192
192
|
@localDir = File.expand_path("../../../spec/fixtures", __FILE__)
|
|
193
|
-
@dir = ENV["FIXTURE_DIR"] || '
|
|
193
|
+
@dir = ENV["FIXTURE_DIR"] || 'sufia'
|
|
194
194
|
|
|
195
|
-
desc "Load default
|
|
195
|
+
desc "Load default Sufia Hydra fixtures"
|
|
196
196
|
task :load => :environment do
|
|
197
197
|
dir = File.join(@localDir, @dir)
|
|
198
198
|
loader = ActiveFedora::FixtureLoader.new(dir)
|
|
@@ -203,10 +203,10 @@ namespace :scholarsphere do
|
|
|
203
203
|
# Rake::Task["repo:load"].reenable
|
|
204
204
|
# Rake::Task["repo:load"].invoke
|
|
205
205
|
end
|
|
206
|
-
raise "No fixtures found; you may need to generate from erb, use: rake
|
|
206
|
+
raise "No fixtures found; you may need to generate from erb, use: rake sufia:fixtures:generate" if fixtures.empty?
|
|
207
207
|
end
|
|
208
208
|
|
|
209
|
-
desc "Remove default
|
|
209
|
+
desc "Remove default Sufia Hydra fixtures"
|
|
210
210
|
task :delete do
|
|
211
211
|
ENV["dir"] = File.join(@localDir, @dir)
|
|
212
212
|
fixtures = find_fixtures(@dir)
|
|
@@ -217,7 +217,7 @@ namespace :scholarsphere do
|
|
|
217
217
|
end
|
|
218
218
|
end
|
|
219
219
|
|
|
220
|
-
desc "Refresh default
|
|
220
|
+
desc "Refresh default Sufia Hydra fixtures"
|
|
221
221
|
task :refresh => [:delete, :load]
|
|
222
222
|
|
|
223
223
|
desc "Fix fixtures so they work with Cucumber [KLUDGE]"
|
|
@@ -227,7 +227,7 @@ namespace :scholarsphere do
|
|
|
227
227
|
# First, create a user record
|
|
228
228
|
User.create(email: 'archivist1@example.com')#, display_name: 'Captain Archivist')
|
|
229
229
|
# Then, set this user as the depositor of test4 to appease this damn failing cuke
|
|
230
|
-
gf = GenericFile.find('
|
|
230
|
+
gf = GenericFile.find('sufia:test4')
|
|
231
231
|
gf.terms_of_service = '1'
|
|
232
232
|
gf.apply_depositor_metadata('archivist1@example.com')
|
|
233
233
|
gf.save
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require 'resque/tasks'
|
|
@@ -47,672 +47,43 @@
|
|
|
47
47
|
that you fully re-index after changing this setting as it can
|
|
48
48
|
affect both how text is indexed and queried.
|
|
49
49
|
-->
|
|
50
|
-
<luceneMatchVersion>
|
|
50
|
+
<luceneMatchVersion>LUCENE_40</luceneMatchVersion>
|
|
51
51
|
|
|
52
|
-
<!--
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
<!-- The DirectoryFactory to use for indexes.
|
|
53
|
+
solr.StandardDirectoryFactory, the default, is filesystem based.
|
|
54
|
+
solr.RAMDirectoryFactory is memory based, not persistent, and doesn't work with replication. -->
|
|
55
|
+
<directoryFactory name="DirectoryFactory" class="${solr.directoryFactory:solr.StandardDirectoryFactory}"/>
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
If a "./lib" directory exists in your instanceDir, all files
|
|
61
|
-
found in it are included as if you had used the following
|
|
62
|
-
syntax...
|
|
63
|
-
|
|
64
|
-
<lib dir="./lib" />
|
|
65
|
-
-->
|
|
66
|
-
|
|
67
|
-
<!-- Blacklight jetty solr lib dirs -->
|
|
68
|
-
<lib dir="./contrib/extraction/lib" />
|
|
69
|
-
<lib dir="./contrib/clustering/lib/" />
|
|
70
|
-
<lib dir="./contrib/velocity/lib" />
|
|
71
|
-
<lib dir="./contrib/analysis-extras/lib" />
|
|
72
|
-
<lib dir="./contrib/analysis-extras/lucene-libs" />
|
|
73
|
-
|
|
74
|
-
<!-- A dir option by itself adds any files found in the directory to
|
|
75
|
-
the classpath, this is useful for including all jars in a
|
|
76
|
-
directory.
|
|
77
|
-
-->
|
|
78
|
-
<lib dir="../../contrib/extraction/lib" />
|
|
79
|
-
<lib dir="../../contrib/clustering/lib/" />
|
|
80
|
-
<lib dir="../../contrib/velocity/lib" />
|
|
81
|
-
|
|
82
|
-
<!-- When a regex is specified in addition to a directory, only the
|
|
83
|
-
files in that directory which completely match the regex
|
|
84
|
-
(anchored on both ends) will be included.
|
|
85
|
-
-->
|
|
86
|
-
<lib dir="../../dist/" regex="apache-solr-cell-\d.*\.jar" />
|
|
87
|
-
<lib dir="../../dist/" regex="apache-solr-clustering-\d.*\.jar" />
|
|
88
|
-
<lib dir="../../dist/" regex="apache-solr-dataimporthandler-\d.*\.jar" />
|
|
89
|
-
<lib dir="../../dist/" regex="apache-solr-langid-\d.*\.jar" />
|
|
90
|
-
<lib dir="../../dist/" regex="apache-solr-velocity-\d.*\.jar" />
|
|
91
|
-
|
|
92
|
-
<!-- If a dir option (with or without a regex) is used and nothing
|
|
93
|
-
is found that matches, it will be ignored
|
|
94
|
-
-->
|
|
95
|
-
<lib dir="../../contrib/clustering/lib/" />
|
|
96
|
-
<lib dir="/total/crap/dir/ignored" />
|
|
97
|
-
|
|
98
|
-
<!-- an exact path can be used to specify a specific file. This
|
|
99
|
-
will cause a serious error to be logged if it can't be loaded.
|
|
100
|
-
-->
|
|
101
|
-
<!--
|
|
102
|
-
<lib path="../a-jar-that-does-not-exist.jar" />
|
|
103
|
-
-->
|
|
57
|
+
<!-- solr lib dirs -->
|
|
58
|
+
<lib dir="../lib/contrib/analysis-extras/lib" />
|
|
59
|
+
<lib dir="../lib/contrib/analysis-extras/lucene-libs" />
|
|
104
60
|
|
|
105
|
-
<!-- Data Directory
|
|
106
|
-
|
|
107
|
-
Used to specify an alternate directory to hold all index data
|
|
108
|
-
other than the default ./data under the Solr home. If
|
|
109
|
-
replication is in use, this should match the replication
|
|
110
|
-
configuration.
|
|
111
|
-
-->
|
|
112
61
|
<dataDir>${solr.data.dir:}</dataDir>
|
|
113
62
|
|
|
63
|
+
<requestHandler name="/replication" class="solr.ReplicationHandler" startup="lazy" />
|
|
114
64
|
|
|
115
|
-
<!-- The DirectoryFactory to use for indexes.
|
|
116
|
-
|
|
117
|
-
solr.StandardDirectoryFactory, the default, is filesystem
|
|
118
|
-
based. solr.RAMDirectoryFactory is memory based, not
|
|
119
|
-
persistent, and doesn't work with replication.
|
|
120
|
-
-->
|
|
121
|
-
<directoryFactory name="DirectoryFactory"
|
|
122
|
-
class="${solr.directoryFactory:solr.StandardDirectoryFactory}"/>
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
<!-- Index Defaults
|
|
126
|
-
|
|
127
|
-
Values here affect all index writers and act as a default
|
|
128
|
-
unless overridden.
|
|
129
|
-
|
|
130
|
-
WARNING: See also the <mainIndex> section below for parameters
|
|
131
|
-
that overfor Solr's main Lucene index.
|
|
132
|
-
-->
|
|
133
|
-
<indexDefaults>
|
|
134
|
-
|
|
135
|
-
<useCompoundFile>false</useCompoundFile>
|
|
136
|
-
|
|
137
|
-
<mergeFactor>10</mergeFactor>
|
|
138
|
-
<!-- Sets the amount of RAM that may be used by Lucene indexing
|
|
139
|
-
for buffering added documents and deletions before they are
|
|
140
|
-
flushed to the Directory. -->
|
|
141
|
-
<ramBufferSizeMB>32</ramBufferSizeMB>
|
|
142
|
-
<!-- If both ramBufferSizeMB and maxBufferedDocs is set, then
|
|
143
|
-
Lucene will flush based on whichever limit is hit first.
|
|
144
|
-
-->
|
|
145
|
-
<!-- <maxBufferedDocs>1000</maxBufferedDocs> -->
|
|
146
|
-
|
|
147
|
-
<maxFieldLength>10000</maxFieldLength>
|
|
148
|
-
<writeLockTimeout>1000</writeLockTimeout>
|
|
149
|
-
|
|
150
|
-
<!-- Expert: Merge Policy
|
|
151
|
-
|
|
152
|
-
The Merge Policy in Lucene controls how merging is handled by
|
|
153
|
-
Lucene. The default in Solr 3.3 is TieredMergePolicy.
|
|
154
|
-
|
|
155
|
-
The default in 2.3 was the LogByteSizeMergePolicy,
|
|
156
|
-
previous versions used LogDocMergePolicy.
|
|
157
|
-
|
|
158
|
-
LogByteSizeMergePolicy chooses segments to merge based on
|
|
159
|
-
their size. The Lucene 2.2 default, LogDocMergePolicy chose
|
|
160
|
-
when to merge based on number of documents
|
|
161
|
-
|
|
162
|
-
Other implementations of MergePolicy must have a no-argument
|
|
163
|
-
constructor
|
|
164
|
-
-->
|
|
165
|
-
<!--
|
|
166
|
-
<mergePolicy class="org.apache.lucene.index.TieredMergePolicy"/>
|
|
167
|
-
-->
|
|
168
|
-
|
|
169
|
-
<!-- Expert: Merge Scheduler
|
|
170
|
-
|
|
171
|
-
The Merge Scheduler in Lucene controls how merges are
|
|
172
|
-
performed. The ConcurrentMergeScheduler (Lucene 2.3 default)
|
|
173
|
-
can perform merges in the background using separate threads.
|
|
174
|
-
The SerialMergeScheduler (Lucene 2.2 default) does not.
|
|
175
|
-
-->
|
|
176
|
-
<!--
|
|
177
|
-
<mergeScheduler class="org.apache.lucene.index.ConcurrentMergeScheduler"/>
|
|
178
|
-
-->
|
|
179
|
-
|
|
180
|
-
<!-- LockFactory
|
|
181
|
-
|
|
182
|
-
This option specifies which Lucene LockFactory implementation
|
|
183
|
-
to use.
|
|
184
|
-
|
|
185
|
-
single = SingleInstanceLockFactory - suggested for a
|
|
186
|
-
read-only index or when there is no possibility of
|
|
187
|
-
another process trying to modify the index.
|
|
188
|
-
native = NativeFSLockFactory - uses OS native file locking.
|
|
189
|
-
Do not use when multiple solr webapps in the same
|
|
190
|
-
JVM are attempting to share a single index.
|
|
191
|
-
simple = SimpleFSLockFactory - uses a plain file for locking
|
|
192
|
-
|
|
193
|
-
(For backwards compatibility with Solr 1.2, 'simple' is the
|
|
194
|
-
default if not specified.)
|
|
195
|
-
|
|
196
|
-
More details on the nuances of each LockFactory...
|
|
197
|
-
http://wiki.apache.org/lucene-java/AvailableLockFactories
|
|
198
|
-
-->
|
|
199
|
-
<lockType>native</lockType>
|
|
200
|
-
|
|
201
|
-
<!-- Expert: Controls how often Lucene loads terms into memory
|
|
202
|
-
Default is 128 and is likely good for most everyone.
|
|
203
|
-
-->
|
|
204
|
-
<!-- <termIndexInterval>256</termIndexInterval> -->
|
|
205
|
-
</indexDefaults>
|
|
206
|
-
|
|
207
|
-
<!-- Main Index
|
|
208
|
-
|
|
209
|
-
Values here override the values in the <indexDefaults> section
|
|
210
|
-
for the main on disk index.
|
|
211
|
-
-->
|
|
212
|
-
<mainIndex>
|
|
213
|
-
|
|
214
|
-
<useCompoundFile>false</useCompoundFile>
|
|
215
|
-
<ramBufferSizeMB>32</ramBufferSizeMB>
|
|
216
|
-
<mergeFactor>10</mergeFactor>
|
|
217
|
-
|
|
218
|
-
<!-- Unlock On Startup
|
|
219
|
-
|
|
220
|
-
If true, unlock any held write or commit locks on startup.
|
|
221
|
-
This defeats the locking mechanism that allows multiple
|
|
222
|
-
processes to safely access a lucene index, and should be used
|
|
223
|
-
with care.
|
|
224
|
-
|
|
225
|
-
This is not needed if lock type is 'none' or 'single'
|
|
226
|
-
-->
|
|
227
|
-
<unlockOnStartup>false</unlockOnStartup>
|
|
228
|
-
|
|
229
|
-
<!-- If true, IndexReaders will be reopened (often more efficient)
|
|
230
|
-
instead of closed and then opened.
|
|
231
|
-
-->
|
|
232
|
-
<reopenReaders>true</reopenReaders>
|
|
233
|
-
|
|
234
|
-
<!-- Commit Deletion Policy
|
|
235
|
-
|
|
236
|
-
Custom deletion policies can specified here. The class must
|
|
237
|
-
implement org.apache.lucene.index.IndexDeletionPolicy.
|
|
238
|
-
|
|
239
|
-
http://lucene.apache.org/java/2_9_1/api/all/org/apache/lucene/index/IndexDeletionPolicy.html
|
|
240
|
-
|
|
241
|
-
The standard Solr IndexDeletionPolicy implementation supports
|
|
242
|
-
deleting index commit points on number of commits, age of
|
|
243
|
-
commit point and optimized status.
|
|
244
|
-
|
|
245
|
-
The latest commit point should always be preserved regardless
|
|
246
|
-
of the criteria.
|
|
247
|
-
-->
|
|
248
|
-
<deletionPolicy class="solr.SolrDeletionPolicy">
|
|
249
|
-
<!-- The number of commit points to be kept -->
|
|
250
|
-
<str name="maxCommitsToKeep">1</str>
|
|
251
|
-
<!-- The number of optimized commit points to be kept -->
|
|
252
|
-
<str name="maxOptimizedCommitsToKeep">0</str>
|
|
253
|
-
<!--
|
|
254
|
-
Delete all commit points once they have reached the given age.
|
|
255
|
-
Supports DateMathParser syntax e.g.
|
|
256
|
-
-->
|
|
257
|
-
<!--
|
|
258
|
-
<str name="maxCommitAge">30MINUTES</str>
|
|
259
|
-
<str name="maxCommitAge">1DAY</str>
|
|
260
|
-
-->
|
|
261
|
-
</deletionPolicy>
|
|
262
|
-
|
|
263
|
-
<!-- Lucene Infostream
|
|
264
|
-
|
|
265
|
-
To aid in advanced debugging, Lucene provides an "InfoStream"
|
|
266
|
-
of detailed information when indexing.
|
|
267
|
-
|
|
268
|
-
Setting The value to true will instruct the underlying Lucene
|
|
269
|
-
IndexWriter to write its debugging info the specified file
|
|
270
|
-
-->
|
|
271
|
-
<infoStream file="INFOSTREAM.txt">false</infoStream>
|
|
272
|
-
|
|
273
|
-
</mainIndex>
|
|
274
|
-
|
|
275
|
-
<!-- JMX
|
|
276
|
-
|
|
277
|
-
This example enables JMX if and only if an existing MBeanServer
|
|
278
|
-
is found, use this if you want to configure JMX through JVM
|
|
279
|
-
parameters. Remove this to disable exposing Solr configuration
|
|
280
|
-
and statistics to JMX.
|
|
281
|
-
|
|
282
|
-
For more details see http://wiki.apache.org/solr/SolrJmx
|
|
283
|
-
-->
|
|
284
|
-
<jmx />
|
|
285
|
-
<!-- If you want to connect to a particular server, specify the
|
|
286
|
-
agentId
|
|
287
|
-
-->
|
|
288
|
-
<!-- <jmx agentId="myAgent" /> -->
|
|
289
|
-
<!-- If you want to start a new MBeanServer, specify the serviceUrl -->
|
|
290
|
-
<!-- <jmx serviceUrl="service:jmx:rmi:///jndi/rmi://localhost:9999/solr"/>
|
|
291
|
-
-->
|
|
292
|
-
|
|
293
|
-
<!-- The default high-performance update handler -->
|
|
294
|
-
<updateHandler class="solr.DirectUpdateHandler2">
|
|
295
|
-
|
|
296
|
-
<!-- AutoCommit
|
|
297
|
-
|
|
298
|
-
Perform a <commit/> automatically under certain conditions.
|
|
299
|
-
Instead of enabling autoCommit, consider using "commitWithin"
|
|
300
|
-
when adding documents.
|
|
301
|
-
|
|
302
|
-
http://wiki.apache.org/solr/UpdateXmlMessages
|
|
303
|
-
|
|
304
|
-
maxDocs - Maximum number of documents to add since the last
|
|
305
|
-
commit before automatically triggering a new commit.
|
|
306
|
-
|
|
307
|
-
maxTime - Maximum amount of time that is allowed to pass
|
|
308
|
-
since a document was added before automaticly
|
|
309
|
-
triggering a new commit.
|
|
310
|
-
-->
|
|
311
|
-
<!--
|
|
312
|
-
<autoCommit>
|
|
313
|
-
<maxDocs>10000</maxDocs>
|
|
314
|
-
<maxTime>1000</maxTime>
|
|
315
|
-
</autoCommit>
|
|
316
|
-
-->
|
|
317
|
-
|
|
318
|
-
<!-- Update Related Event Listeners
|
|
319
|
-
|
|
320
|
-
Various IndexWriter related events can trigger Listeners to
|
|
321
|
-
take actions.
|
|
322
|
-
|
|
323
|
-
postCommit - fired after every commit or optimize command
|
|
324
|
-
postOptimize - fired after every optimize command
|
|
325
|
-
-->
|
|
326
|
-
<!-- The RunExecutableListener executes an external command from a
|
|
327
|
-
hook such as postCommit or postOptimize.
|
|
328
|
-
|
|
329
|
-
exe - the name of the executable to run
|
|
330
|
-
dir - dir to use as the current working directory. (default=".")
|
|
331
|
-
wait - the calling thread waits until the executable returns.
|
|
332
|
-
(default="true")
|
|
333
|
-
args - the arguments to pass to the program. (default is none)
|
|
334
|
-
env - environment variables to set. (default is none)
|
|
335
|
-
-->
|
|
336
|
-
<!-- This example shows how RunExecutableListener could be used
|
|
337
|
-
with the script based replication...
|
|
338
|
-
http://wiki.apache.org/solr/CollectionDistribution
|
|
339
|
-
-->
|
|
340
|
-
<!--
|
|
341
|
-
<listener event="postCommit" class="solr.RunExecutableListener">
|
|
342
|
-
<str name="exe">solr/bin/snapshooter</str>
|
|
343
|
-
<str name="dir">.</str>
|
|
344
|
-
<bool name="wait">true</bool>
|
|
345
|
-
<arr name="args"> <str>arg1</str> <str>arg2</str> </arr>
|
|
346
|
-
<arr name="env"> <str>MYVAR=val1</str> </arr>
|
|
347
|
-
</listener>
|
|
348
|
-
-->
|
|
349
|
-
</updateHandler>
|
|
350
|
-
|
|
351
|
-
<!-- IndexReaderFactory
|
|
352
|
-
|
|
353
|
-
Use the following format to specify a custom IndexReaderFactory,
|
|
354
|
-
which allows for alternate IndexReader implementations.
|
|
355
|
-
|
|
356
|
-
** Experimental Feature **
|
|
357
|
-
|
|
358
|
-
Please note - Using a custom IndexReaderFactory may prevent
|
|
359
|
-
certain other features from working. The API to
|
|
360
|
-
IndexReaderFactory may change without warning or may even be
|
|
361
|
-
removed from future releases if the problems cannot be
|
|
362
|
-
resolved.
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
** Features that may not work with custom IndexReaderFactory **
|
|
366
|
-
|
|
367
|
-
The ReplicationHandler assumes a disk-resident index. Using a
|
|
368
|
-
custom IndexReader implementation may cause incompatibility
|
|
369
|
-
with ReplicationHandler and may cause replication to not work
|
|
370
|
-
correctly. See SOLR-1366 for details.
|
|
371
|
-
|
|
372
|
-
-->
|
|
373
|
-
<!--
|
|
374
|
-
<indexReaderFactory name="IndexReaderFactory" class="package.class">
|
|
375
|
-
<str name="someArg">Some Value</str>
|
|
376
|
-
</indexReaderFactory >
|
|
377
|
-
-->
|
|
378
|
-
<!-- By explicitly declaring the Factory, the termIndexDivisor can
|
|
379
|
-
be specified.
|
|
380
|
-
-->
|
|
381
|
-
<!--
|
|
382
|
-
<indexReaderFactory name="IndexReaderFactory"
|
|
383
|
-
class="solr.StandardIndexReaderFactory">
|
|
384
|
-
<int name="setTermIndexDivisor">12</int>
|
|
385
|
-
</indexReaderFactory >
|
|
386
|
-
-->
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
<query>
|
|
390
|
-
<!-- Max Boolean Clauses
|
|
391
|
-
|
|
392
|
-
Maximum number of clauses in each BooleanQuery, an exception
|
|
393
|
-
is thrown if exceeded.
|
|
394
|
-
|
|
395
|
-
** WARNING **
|
|
396
|
-
|
|
397
|
-
This option actually modifies a global Lucene property that
|
|
398
|
-
will affect all SolrCores. If multiple solrconfig.xml files
|
|
399
|
-
disagree on this property, the value at any given moment will
|
|
400
|
-
be based on the last SolrCore to be initialized.
|
|
401
|
-
|
|
402
|
-
-->
|
|
403
|
-
<maxBooleanClauses>1024</maxBooleanClauses>
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
<!-- Solr Internal Query Caches
|
|
407
|
-
|
|
408
|
-
There are two implementations of cache available for Solr,
|
|
409
|
-
LRUCache, based on a synchronized LinkedHashMap, and
|
|
410
|
-
FastLRUCache, based on a ConcurrentHashMap.
|
|
411
|
-
|
|
412
|
-
FastLRUCache has faster gets and slower puts in single
|
|
413
|
-
threaded operation and thus is generally faster than LRUCache
|
|
414
|
-
when the hit ratio of the cache is high (> 75%), and may be
|
|
415
|
-
faster under other scenarios on multi-cpu systems.
|
|
416
|
-
-->
|
|
417
|
-
|
|
418
|
-
<!-- Filter Cache
|
|
419
|
-
|
|
420
|
-
Cache used by SolrIndexSearcher for filters (DocSets),
|
|
421
|
-
unordered sets of *all* documents that match a query. When a
|
|
422
|
-
new searcher is opened, its caches may be prepopulated or
|
|
423
|
-
"autowarmed" using data from caches in the old searcher.
|
|
424
|
-
autowarmCount is the number of items to prepopulate. For
|
|
425
|
-
LRUCache, the autowarmed items will be the most recently
|
|
426
|
-
accessed items.
|
|
427
|
-
|
|
428
|
-
Parameters:
|
|
429
|
-
class - the SolrCache implementation LRUCache or
|
|
430
|
-
(LRUCache or FastLRUCache)
|
|
431
|
-
size - the maximum number of entries in the cache
|
|
432
|
-
initialSize - the initial capacity (number of entries) of
|
|
433
|
-
the cache. (see java.util.HashMap)
|
|
434
|
-
autowarmCount - the number of entries to prepopulate from
|
|
435
|
-
and old cache.
|
|
436
|
-
-->
|
|
437
|
-
<filterCache class="solr.FastLRUCache"
|
|
438
|
-
size="512"
|
|
439
|
-
initialSize="512"
|
|
440
|
-
autowarmCount="0"/>
|
|
441
|
-
|
|
442
|
-
<!-- Query Result Cache
|
|
443
|
-
|
|
444
|
-
Caches results of searches - ordered lists of document ids
|
|
445
|
-
(DocList) based on a query, a sort, and the range of documents requested.
|
|
446
|
-
-->
|
|
447
|
-
<queryResultCache class="solr.LRUCache"
|
|
448
|
-
size="512"
|
|
449
|
-
initialSize="512"
|
|
450
|
-
autowarmCount="0"/>
|
|
451
|
-
|
|
452
|
-
<!-- Document Cache
|
|
453
|
-
|
|
454
|
-
Caches Lucene Document objects (the stored fields for each
|
|
455
|
-
document). Since Lucene internal document ids are transient,
|
|
456
|
-
this cache will not be autowarmed.
|
|
457
|
-
-->
|
|
458
|
-
<documentCache class="solr.LRUCache"
|
|
459
|
-
size="512"
|
|
460
|
-
initialSize="512"
|
|
461
|
-
autowarmCount="0"/>
|
|
462
|
-
|
|
463
|
-
<!-- Field Value Cache
|
|
464
|
-
|
|
465
|
-
Cache used to hold field values that are quickly accessible
|
|
466
|
-
by document id. The fieldValueCache is created by default
|
|
467
|
-
even if not configured here.
|
|
468
|
-
-->
|
|
469
|
-
<!--
|
|
470
|
-
<fieldValueCache class="solr.FastLRUCache"
|
|
471
|
-
size="512"
|
|
472
|
-
autowarmCount="128"
|
|
473
|
-
showItems="32" />
|
|
474
|
-
-->
|
|
475
|
-
|
|
476
|
-
<!-- Custom Cache
|
|
477
|
-
|
|
478
|
-
Example of a generic cache. These caches may be accessed by
|
|
479
|
-
name through SolrIndexSearcher.getCache(),cacheLookup(), and
|
|
480
|
-
cacheInsert(). The purpose is to enable easy caching of
|
|
481
|
-
user/application level data. The regenerator argument should
|
|
482
|
-
be specified as an implementation of solr.CacheRegenerator
|
|
483
|
-
if autowarming is desired.
|
|
484
|
-
-->
|
|
485
|
-
<!--
|
|
486
|
-
<cache name="myUserCache"
|
|
487
|
-
class="solr.LRUCache"
|
|
488
|
-
size="4096"
|
|
489
|
-
initialSize="1024"
|
|
490
|
-
autowarmCount="1024"
|
|
491
|
-
regenerator="com.mycompany.MyRegenerator"
|
|
492
|
-
/>
|
|
493
|
-
-->
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
<!-- Lazy Field Loading
|
|
497
|
-
|
|
498
|
-
If true, stored fields that are not requested will be loaded
|
|
499
|
-
lazily. This can result in a significant speed improvement
|
|
500
|
-
if the usual case is to not load all stored fields,
|
|
501
|
-
especially if the skipped fields are large compressed text
|
|
502
|
-
fields.
|
|
503
|
-
-->
|
|
504
|
-
<enableLazyFieldLoading>true</enableLazyFieldLoading>
|
|
505
|
-
|
|
506
|
-
<!-- Use Filter For Sorted Query
|
|
507
|
-
|
|
508
|
-
A possible optimization that attempts to use a filter to
|
|
509
|
-
satisfy a search. If the requested sort does not include
|
|
510
|
-
score, then the filterCache will be checked for a filter
|
|
511
|
-
matching the query. If found, the filter will be used as the
|
|
512
|
-
source of document ids, and then the sort will be applied to
|
|
513
|
-
that.
|
|
514
|
-
|
|
515
|
-
For most situations, this will not be useful unless you
|
|
516
|
-
frequently get the same search repeatedly with different sort
|
|
517
|
-
options, and none of them ever use "score"
|
|
518
|
-
-->
|
|
519
|
-
<!--
|
|
520
|
-
<useFilterForSortedQuery>true</useFilterForSortedQuery>
|
|
521
|
-
-->
|
|
522
|
-
|
|
523
|
-
<!-- Result Window Size
|
|
524
|
-
|
|
525
|
-
An optimization for use with the queryResultCache. When a search
|
|
526
|
-
is requested, a superset of the requested number of document ids
|
|
527
|
-
are collected. For example, if a search for a particular query
|
|
528
|
-
requests matching documents 10 through 19, and queryWindowSize is 50,
|
|
529
|
-
then documents 0 through 49 will be collected and cached. Any further
|
|
530
|
-
requests in that range can be satisfied via the cache.
|
|
531
|
-
-->
|
|
532
|
-
<queryResultWindowSize>20</queryResultWindowSize>
|
|
533
|
-
|
|
534
|
-
<!-- Maximum number of documents to cache for any entry in the
|
|
535
|
-
queryResultCache.
|
|
536
|
-
-->
|
|
537
|
-
<queryResultMaxDocsCached>200</queryResultMaxDocsCached>
|
|
538
|
-
|
|
539
|
-
<!-- Query Related Event Listeners
|
|
540
|
-
|
|
541
|
-
Various IndexSearcher related events can trigger Listeners to
|
|
542
|
-
take actions.
|
|
543
|
-
|
|
544
|
-
newSearcher - fired whenever a new searcher is being prepared
|
|
545
|
-
and there is a current searcher handling requests (aka
|
|
546
|
-
registered). It can be used to prime certain caches to
|
|
547
|
-
prevent long request times for certain requests.
|
|
548
|
-
|
|
549
|
-
firstSearcher - fired whenever a new searcher is being
|
|
550
|
-
prepared but there is no current registered searcher to handle
|
|
551
|
-
requests or to gain autowarming data from.
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
-->
|
|
555
|
-
<!-- QuerySenderListener takes an array of NamedList and executes a
|
|
556
|
-
local query request for each NamedList in sequence.
|
|
557
|
-
-->
|
|
558
|
-
<listener event="newSearcher" class="solr.QuerySenderListener">
|
|
559
|
-
<arr name="queries">
|
|
560
|
-
<lst>
|
|
561
|
-
<str name="q">hydrus</str>
|
|
562
|
-
</lst>
|
|
563
|
-
</arr>
|
|
564
|
-
</listener>
|
|
565
|
-
<listener event="firstSearcher" class="solr.QuerySenderListener">
|
|
566
|
-
<arr name="queries">
|
|
567
|
-
<lst>
|
|
568
|
-
<str name="q">hydrus</str>
|
|
569
|
-
</lst>
|
|
570
|
-
</arr>
|
|
571
|
-
</listener>
|
|
572
|
-
|
|
573
|
-
<!-- Use Cold Searcher
|
|
574
|
-
|
|
575
|
-
If a search request comes in and there is no current
|
|
576
|
-
registered searcher, then immediately register the still
|
|
577
|
-
warming searcher and use it. If "false" then all requests
|
|
578
|
-
will block until the first searcher is done warming.
|
|
579
|
-
-->
|
|
580
|
-
<useColdSearcher>false</useColdSearcher>
|
|
581
|
-
|
|
582
|
-
<!-- Max Warming Searchers
|
|
583
|
-
|
|
584
|
-
Maximum number of searchers that may be warming in the
|
|
585
|
-
background concurrently. An error is returned if this limit
|
|
586
|
-
is exceeded.
|
|
587
|
-
|
|
588
|
-
Recommend values of 1-2 for read-only slaves, higher for
|
|
589
|
-
masters w/o cache warming.
|
|
590
|
-
-->
|
|
591
|
-
<maxWarmingSearchers>2</maxWarmingSearchers>
|
|
592
|
-
|
|
593
|
-
</query>
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
<!-- Request Dispatcher
|
|
597
|
-
|
|
598
|
-
This section contains instructions for how the SolrDispatchFilter
|
|
599
|
-
should behave when processing requests for this SolrCore.
|
|
600
|
-
|
|
601
|
-
handleSelect affects the behavior of requests such as /select?qt=XXX
|
|
602
|
-
|
|
603
|
-
handleSelect="true" will cause the SolrDispatchFilter to process
|
|
604
|
-
the request and will result in consistent error handling and
|
|
605
|
-
formatting for all types of requests.
|
|
606
|
-
|
|
607
|
-
handleSelect="false" will cause the SolrDispatchFilter to
|
|
608
|
-
ignore "/select" requests and fallback to using the legacy
|
|
609
|
-
SolrServlet and it's Solr 1.1 style error formatting
|
|
610
|
-
-->
|
|
611
65
|
<requestDispatcher handleSelect="true" >
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
These settings indicate how Solr Requests may be parsed, and
|
|
615
|
-
what restrictions may be placed on the ContentStreams from
|
|
616
|
-
those requests
|
|
617
|
-
|
|
618
|
-
enableRemoteStreaming - enables use of the stream.file
|
|
619
|
-
and stream.url parameters for specifying remote streams.
|
|
620
|
-
|
|
621
|
-
multipartUploadLimitInKB - specifies the max size of
|
|
622
|
-
Multipart File Uploads that Solr will allow in a Request.
|
|
623
|
-
|
|
624
|
-
*** WARNING ***
|
|
625
|
-
The settings below authorize Solr to fetch remote files, You
|
|
626
|
-
should make sure your system has some authentication before
|
|
627
|
-
using enableRemoteStreaming="true"
|
|
628
|
-
|
|
629
|
-
-->
|
|
630
|
-
<requestParsers enableRemoteStreaming="true"
|
|
631
|
-
multipartUploadLimitInKB="2048000" />
|
|
632
|
-
|
|
633
|
-
<!-- HTTP Caching
|
|
634
|
-
|
|
635
|
-
Set HTTP caching related parameters (for proxy caches and clients).
|
|
636
|
-
|
|
637
|
-
The options below instruct Solr not to output any HTTP Caching
|
|
638
|
-
related headers
|
|
639
|
-
-->
|
|
640
|
-
<httpCaching never304="true" />
|
|
641
|
-
<!-- If you include a <cacheControl> directive, it will be used to
|
|
642
|
-
generate a Cache-Control header (as well as an Expires header
|
|
643
|
-
if the value contains "max-age=")
|
|
644
|
-
|
|
645
|
-
By default, no Cache-Control header is generated.
|
|
646
|
-
|
|
647
|
-
You can use the <cacheControl> option even if you have set
|
|
648
|
-
never304="true"
|
|
649
|
-
-->
|
|
650
|
-
<!--
|
|
651
|
-
<httpCaching never304="true" >
|
|
652
|
-
<cacheControl>max-age=30, public</cacheControl>
|
|
653
|
-
</httpCaching>
|
|
654
|
-
-->
|
|
655
|
-
<!-- To enable Solr to respond with automatically generated HTTP
|
|
656
|
-
Caching headers, and to response to Cache Validation requests
|
|
657
|
-
correctly, set the value of never304="false"
|
|
658
|
-
|
|
659
|
-
This will cause Solr to generate Last-Modified and ETag
|
|
660
|
-
headers based on the properties of the Index.
|
|
661
|
-
|
|
662
|
-
The following options can also be specified to affect the
|
|
663
|
-
values of these headers...
|
|
664
|
-
|
|
665
|
-
lastModFrom - the default value is "openTime" which means the
|
|
666
|
-
Last-Modified value (and validation against If-Modified-Since
|
|
667
|
-
requests) will all be relative to when the current Searcher
|
|
668
|
-
was opened. You can change it to lastModFrom="dirLastMod" if
|
|
669
|
-
you want the value to exactly correspond to when the physical
|
|
670
|
-
index was last modified.
|
|
671
|
-
|
|
672
|
-
etagSeed="..." is an option you can change to force the ETag
|
|
673
|
-
header (and validation against If-None-Match requests) to be
|
|
674
|
-
different even if the index has not changed (ie: when making
|
|
675
|
-
significant changes to your config file)
|
|
676
|
-
|
|
677
|
-
(lastModifiedFrom and etagSeed are both ignored if you use
|
|
678
|
-
the never304="true" option)
|
|
679
|
-
-->
|
|
680
|
-
<!--
|
|
681
|
-
<httpCaching lastModifiedFrom="openTime"
|
|
682
|
-
etagSeed="Solr">
|
|
683
|
-
<cacheControl>max-age=30, public</cacheControl>
|
|
684
|
-
</httpCaching>
|
|
685
|
-
-->
|
|
66
|
+
<requestParsers enableRemoteStreaming="true" multipartUploadLimitInKB="2048" />
|
|
686
67
|
</requestDispatcher>
|
|
687
68
|
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
specified, the requestHandler that declares default="true" will
|
|
701
|
-
be used.
|
|
702
|
-
|
|
703
|
-
If a Request Handler is declared with startup="lazy", then it will
|
|
704
|
-
not be initialized until the first request that uses it.
|
|
705
|
-
|
|
706
|
-
-->
|
|
707
|
-
<!-- SearchHandler
|
|
69
|
+
<requestHandler name="/analysis/field" startup="lazy" class="solr.FieldAnalysisRequestHandler" />
|
|
70
|
+
<requestHandler name="/update" class="solr.UpdateRequestHandler" />
|
|
71
|
+
<requestHandler name="/admin/" class="org.apache.solr.handler.admin.AdminHandlers" />
|
|
72
|
+
|
|
73
|
+
<requestHandler name="/admin/ping" class="solr.PingRequestHandler">
|
|
74
|
+
<lst name="invariants">
|
|
75
|
+
<str name="q">solrpingquery</str>
|
|
76
|
+
</lst>
|
|
77
|
+
<lst name="defaults">
|
|
78
|
+
<str name="echoParams">all</str>
|
|
79
|
+
</lst>
|
|
80
|
+
</requestHandler>
|
|
708
81
|
|
|
709
|
-
|
|
82
|
+
<!-- config for the admin interface -->
|
|
83
|
+
<admin>
|
|
84
|
+
<defaultQuery>search</defaultQuery>
|
|
85
|
+
</admin>
|
|
710
86
|
|
|
711
|
-
For processing Search Queries, the primary Request Handler
|
|
712
|
-
provided with Solr is "SearchHandler" It delegates to a sequent
|
|
713
|
-
of SearchComponents (see below) and supports distributed
|
|
714
|
-
queries across multiple shards
|
|
715
|
-
-->
|
|
716
87
|
|
|
717
88
|
<requestHandler name="search" class="solr.SearchHandler" default="true">
|
|
718
89
|
<!-- default values for query parameters can be specified, these
|
|
@@ -828,58 +199,6 @@
|
|
|
828
199
|
<str name="spellcheck.count">5</str>
|
|
829
200
|
|
|
830
201
|
</lst>
|
|
831
|
-
<!-- In addition to defaults, "appends" params can be specified
|
|
832
|
-
to identify values which should be appended to the list of
|
|
833
|
-
multi-val params from the query (or the existing "defaults").
|
|
834
|
-
-->
|
|
835
|
-
<!-- In this example, the param "fq=instock:true" would be appended to
|
|
836
|
-
any query time fq params the user may specify, as a mechanism for
|
|
837
|
-
partitioning the index, independent of any user selected filtering
|
|
838
|
-
that may also be desired (perhaps as a result of faceted searching).
|
|
839
|
-
|
|
840
|
-
NOTE: there is *absolutely* nothing a client can do to prevent these
|
|
841
|
-
"appends" values from being used, so don't use this mechanism
|
|
842
|
-
unless you are sure you always want it.
|
|
843
|
-
-->
|
|
844
|
-
<!--
|
|
845
|
-
<lst name="appends">
|
|
846
|
-
<str name="fq">inStock:true</str>
|
|
847
|
-
</lst>
|
|
848
|
-
-->
|
|
849
|
-
<!-- "invariants" are a way of letting the Solr maintainer lock down
|
|
850
|
-
the options available to Solr clients. Any params values
|
|
851
|
-
specified here are used regardless of what values may be specified
|
|
852
|
-
in either the query, the "defaults", or the "appends" params.
|
|
853
|
-
|
|
854
|
-
In this example, the facet.field and facet.query params would
|
|
855
|
-
be fixed, limiting the facets clients can use. Faceting is
|
|
856
|
-
not turned on by default - but if the client does specify
|
|
857
|
-
facet=true in the request, these are the only facets they
|
|
858
|
-
will be able to see counts for; regardless of what other
|
|
859
|
-
facet.field or facet.query params they may specify.
|
|
860
|
-
|
|
861
|
-
NOTE: there is *absolutely* nothing a client can do to prevent these
|
|
862
|
-
"invariants" values from being used, so don't use this mechanism
|
|
863
|
-
unless you are sure you always want it.
|
|
864
|
-
-->
|
|
865
|
-
<!--
|
|
866
|
-
<lst name="invariants">
|
|
867
|
-
<str name="facet.field">cat</str>
|
|
868
|
-
<str name="facet.field">manu_exact</str>
|
|
869
|
-
<str name="facet.query">price:[* TO 500]</str>
|
|
870
|
-
<str name="facet.query">price:[500 TO *]</str>
|
|
871
|
-
</lst>
|
|
872
|
-
-->
|
|
873
|
-
<!-- If the default list of SearchComponents is not desired, that
|
|
874
|
-
list can either be overridden completely, or components can be
|
|
875
|
-
prepended or appended to the default list. (see below)
|
|
876
|
-
-->
|
|
877
|
-
<!--
|
|
878
|
-
<arr name="components">
|
|
879
|
-
<str>nameOfCustomComponent1</str>
|
|
880
|
-
<str>nameOfCustomComponent2</str>
|
|
881
|
-
</arr>
|
|
882
|
-
-->
|
|
883
202
|
<arr name="last-components">
|
|
884
203
|
<str>spellcheck</str>
|
|
885
204
|
</arr>
|
|
@@ -895,24 +214,6 @@
|
|
|
895
214
|
</lst>
|
|
896
215
|
</requestHandler>
|
|
897
216
|
|
|
898
|
-
<requestHandler name="fulltext" class="solr.SearchHandler" >
|
|
899
|
-
<lst name="defaults">
|
|
900
|
-
<str name="defType">dismax</str>
|
|
901
|
-
<str name="facet">on</str>
|
|
902
|
-
<str name="facet.mincount">1</str>
|
|
903
|
-
<str name="echoParams">explicit</str>
|
|
904
|
-
<float name="tie">0.01</float>
|
|
905
|
-
<str name="qf">id^0.8 id_t^0.8 format text^0.3</str>
|
|
906
|
-
<str name="pf">id^0.9 id_t^0.9 text^0.5</str>
|
|
907
|
-
<str name="fl">
|
|
908
|
-
id,text,title_t,date_t,year_facet,month_facet,medium_t,series_facet,box_facet,folder_facet
|
|
909
|
-
</str>
|
|
910
|
-
<str name="mm"> 2<-1 5<-2 6<90% </str>
|
|
911
|
-
<int name="ps">100</int>
|
|
912
|
-
<str name="q.alt">*:*</str>
|
|
913
|
-
</lst>
|
|
914
|
-
</requestHandler>
|
|
915
|
-
|
|
916
217
|
<requestHandler name="permissions" class="solr.SearchHandler" >
|
|
917
218
|
<lst name="defaults">
|
|
918
219
|
<str name="facet">off</str>
|
|
@@ -925,54 +226,16 @@
|
|
|
925
226
|
read_access_group_t,read_access_person_t,
|
|
926
227
|
edit_access_group_t,edit_access_person_t,
|
|
927
228
|
depositor_t,
|
|
928
|
-
embargo_release_date_dt
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
<lst name="defaults">
|
|
935
|
-
<!-- Making defType lucene to exclude file assets -->
|
|
936
|
-
<str name="defType">lucene</str>
|
|
937
|
-
<!-- lucene params -->
|
|
938
|
-
<str name="df">has_model_s</str>
|
|
939
|
-
<str name="q.op">AND</str>
|
|
940
|
-
<!-- dismax params -->
|
|
941
|
-
<str name="mm"> 2<-1 5<-2 6<90% </str>
|
|
942
|
-
<str name="q.alt">*:*</str>
|
|
943
|
-
<str name="qf">id^0.8 id_t^0.8 format text^0.3 journal_issn_t</str>
|
|
944
|
-
<str name="pf">id^0.9 id_t^0.9 text^0.5 journal_issn_t</str>
|
|
945
|
-
<str name="qf_dismax">id^0.8 id_t^0.8 format text^0.3</str>
|
|
946
|
-
<str name="pf_dismax">id^0.9 id_t^0.9 text^0.5</str>
|
|
947
|
-
<int name="ps">100</int>
|
|
948
|
-
<float name="tie">0.01</float>
|
|
949
|
-
<!-- general -->
|
|
950
|
-
<str name="facet">on</str>
|
|
951
|
-
<str name="facet.mincount">1</str>
|
|
952
|
-
<str name="echoParams">explicit</str>
|
|
953
|
-
<str name="fl">
|
|
954
|
-
*,score
|
|
229
|
+
embargo_release_date_dt,
|
|
230
|
+
inheritable_access_t,
|
|
231
|
+
inheritable_discover_access_group_t,inheritable_discover_access_person_t,
|
|
232
|
+
inheritable_read_access_group_t,inheritable_read_access_person_t,
|
|
233
|
+
inheritable_edit_access_group_t,inheritable_edit_access_person_t,
|
|
234
|
+
inheritable_embargo_release_date_dt
|
|
955
235
|
</str>
|
|
956
236
|
</lst>
|
|
957
237
|
</requestHandler>
|
|
958
238
|
|
|
959
|
-
<requestHandler name="fulltext" class="solr.SearchHandler" >
|
|
960
|
-
<lst name="defaults">
|
|
961
|
-
<str name="defType">dismax</str>
|
|
962
|
-
<str name="facet">on</str>
|
|
963
|
-
<str name="facet.mincount">1</str>
|
|
964
|
-
<str name="echoParams">explicit</str>
|
|
965
|
-
<float name="tie">0.01</float>
|
|
966
|
-
<str name="qf">id^0.8 id_t^0.8 format text^0.3</str>
|
|
967
|
-
<str name="pf">id^0.9 id_t^0.9 text^0.5</str>
|
|
968
|
-
<str name="fl">
|
|
969
|
-
id,text,title_t,date_t,year_facet,month_facet,medium_t,series_facet,box_facet,folder_facet
|
|
970
|
-
</str>
|
|
971
|
-
<str name="mm"> 2<-1 5<-2 6<90% </str>
|
|
972
|
-
<int name="ps">100</int>
|
|
973
|
-
<str name="q.alt">*:*</str>
|
|
974
|
-
</lst>
|
|
975
|
-
</requestHandler>
|
|
976
239
|
<!-- Hydra Additions End -->
|
|
977
240
|
|
|
978
241
|
<!-- for requests to get a single document; use id=666 instead of q=id:666 -->
|
|
@@ -985,372 +248,7 @@
|
|
|
985
248
|
</lst>
|
|
986
249
|
</requestHandler>
|
|
987
250
|
|
|
988
|
-
<!-- For Advanced Search -->
|
|
989
|
-
<requestHandler name="advanced" class="solr.SearchHandler" >
|
|
990
|
-
<lst name="defaults">
|
|
991
|
-
<str name="defType">lucene</str>
|
|
992
|
-
<str name="echoParams">explicit</str>
|
|
993
|
-
<str name="sort">score desc, pub_date_sort desc, title_sort asc</str>
|
|
994
|
-
<str name="df">text</str>
|
|
995
|
-
<str name="q.op">AND</str>
|
|
996
|
-
<str name="qs">1</str>
|
|
997
251
|
|
|
998
|
-
<!-- used for dismax query parser -->
|
|
999
|
-
<str name="mm">1</str>
|
|
1000
|
-
<str name="ps">3</str>
|
|
1001
|
-
<float name="tie">0.01</float>
|
|
1002
|
-
|
|
1003
|
-
<!-- for user query terms in author text box -->
|
|
1004
|
-
<str name="qf_author">
|
|
1005
|
-
author_unstem_search^200
|
|
1006
|
-
author_addl_unstem_search^50
|
|
1007
|
-
author_t^20
|
|
1008
|
-
author_addl_t
|
|
1009
|
-
</str>
|
|
1010
|
-
<str name="pf_author">
|
|
1011
|
-
author_unstem_search^2000
|
|
1012
|
-
author_addl_unstem_search^500
|
|
1013
|
-
author_t^200
|
|
1014
|
-
author_addl_t^10
|
|
1015
|
-
</str>
|
|
1016
|
-
|
|
1017
|
-
<!-- for user query terms in title text box -->
|
|
1018
|
-
<str name="qf_title">
|
|
1019
|
-
title_unstem_search^50000
|
|
1020
|
-
subtitle_unstem_search^25000
|
|
1021
|
-
title_addl_unstem_search^10000
|
|
1022
|
-
title_t^5000
|
|
1023
|
-
subtitle_t^2500
|
|
1024
|
-
title_addl_t^100
|
|
1025
|
-
title_added_entry_unstem_search^50
|
|
1026
|
-
title_added_entry_t^10
|
|
1027
|
-
title_series_unstem_search^5
|
|
1028
|
-
title_series_t
|
|
1029
|
-
</str>
|
|
1030
|
-
<str name="pf_title">
|
|
1031
|
-
title_unstem_search^500000
|
|
1032
|
-
subtitle_unstem_search^250000
|
|
1033
|
-
title_addl_unstem_search^100000
|
|
1034
|
-
title_t^50000
|
|
1035
|
-
subtitle_t^25000
|
|
1036
|
-
title_addl_t^1000
|
|
1037
|
-
title_added_entry_unstem_search^500
|
|
1038
|
-
title_added_entry_t^100
|
|
1039
|
-
title_series_t^50
|
|
1040
|
-
title_series_unstem_search^10
|
|
1041
|
-
</str>
|
|
1042
|
-
|
|
1043
|
-
<!-- for user query terms in subject text box -->
|
|
1044
|
-
<str name="qf_subject">
|
|
1045
|
-
subject_topic_unstem_search^200
|
|
1046
|
-
subject_unstem_search^125
|
|
1047
|
-
subject_topic_facet^100
|
|
1048
|
-
subject_t^50
|
|
1049
|
-
subject_addl_unstem_search^10
|
|
1050
|
-
subject_addl_t
|
|
1051
|
-
</str>
|
|
1052
|
-
<str name="pf_subject">
|
|
1053
|
-
subject_topic_unstem_search^2000
|
|
1054
|
-
subject_unstem_search^1250
|
|
1055
|
-
subject_t^1000
|
|
1056
|
-
subject_topic_facet^500
|
|
1057
|
-
subject_addl_unstem_search^100
|
|
1058
|
-
subject_addl_t^10
|
|
1059
|
-
</str>
|
|
1060
|
-
|
|
1061
|
-
<!-- for user query terms in number text box -->
|
|
1062
|
-
<str name="qf_number">isbn_t</str>
|
|
1063
|
-
|
|
1064
|
-
<!-- for user query terms in keyword text box -->
|
|
1065
|
-
<str name="qf_keyword">text</str>
|
|
1066
|
-
<str name="pf_keyword">text^10</str>
|
|
1067
|
-
|
|
1068
|
-
<!-- NOT using marc_display because it is large and will slow things down for search results -->
|
|
1069
|
-
<str name="fl">
|
|
1070
|
-
id,
|
|
1071
|
-
score,
|
|
1072
|
-
author_display,
|
|
1073
|
-
author_vern_display,
|
|
1074
|
-
format,
|
|
1075
|
-
isbn_t,
|
|
1076
|
-
language_facet,
|
|
1077
|
-
lc_callnum_display,
|
|
1078
|
-
material_type_display,
|
|
1079
|
-
published_display,
|
|
1080
|
-
published_vern_display,
|
|
1081
|
-
pub_date,
|
|
1082
|
-
title_display,
|
|
1083
|
-
title_vern_display,
|
|
1084
|
-
subject_topic_facet,
|
|
1085
|
-
subject_geo_facet,
|
|
1086
|
-
subject_era_facet,
|
|
1087
|
-
subtitle_display,
|
|
1088
|
-
subtitle_vern_display,
|
|
1089
|
-
url_fulltext_display,
|
|
1090
|
-
url_suppl_display,
|
|
1091
|
-
</str>
|
|
1092
|
-
|
|
1093
|
-
<str name="facet">true</str>
|
|
1094
|
-
<str name="facet.mincount">1</str>
|
|
1095
|
-
<str name="facet.limit">10</str>
|
|
1096
|
-
<str name="facet.field">format</str>
|
|
1097
|
-
<str name="facet.field">lc_1letter_facet</str>
|
|
1098
|
-
<str name="facet.field">lc_alpha_facet</str>
|
|
1099
|
-
<str name="facet.field">lc_b4cutter_facet</str>
|
|
1100
|
-
<str name="facet.field">language_facet</str>
|
|
1101
|
-
<str name="facet.field">pub_date</str>
|
|
1102
|
-
<str name="facet.field">subject_era_facet</str>
|
|
1103
|
-
<str name="facet.field">subject_geo_facet</str>
|
|
1104
|
-
<str name="facet.field">subject_topic_facet</str>
|
|
1105
|
-
|
|
1106
|
-
<str name="spellcheck">true</str>
|
|
1107
|
-
<str name="spellcheck.dictionary">subject</str>
|
|
1108
|
-
<str name="spellcheck.onlyMorePopular">true</str>
|
|
1109
|
-
<str name="spellcheck.extendedResults">true</str>
|
|
1110
|
-
<str name="spellcheck.collate">false</str>
|
|
1111
|
-
<str name="spellcheck.count">5</str>
|
|
1112
|
-
</lst>
|
|
1113
|
-
<arr name="last-components">
|
|
1114
|
-
<str>spellcheck</str>
|
|
1115
|
-
</arr>
|
|
1116
|
-
</requestHandler>
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
<!-- XML Update Request Handler.
|
|
1120
|
-
|
|
1121
|
-
http://wiki.apache.org/solr/UpdateXmlMessages
|
|
1122
|
-
|
|
1123
|
-
The canonical Request Handler for Modifying the Index through
|
|
1124
|
-
commands specified using XML.
|
|
1125
|
-
|
|
1126
|
-
Note: Since solr1.1 requestHandlers requires a valid content
|
|
1127
|
-
type header if posted in the body. For example, curl now
|
|
1128
|
-
requires: -H 'Content-type:text/xml; charset=utf-8'
|
|
1129
|
-
-->
|
|
1130
|
-
<requestHandler name="/update"
|
|
1131
|
-
class="solr.XmlUpdateRequestHandler">
|
|
1132
|
-
<!-- See below for information on defining
|
|
1133
|
-
updateRequestProcessorChains that can be used by name
|
|
1134
|
-
on each Update Request
|
|
1135
|
-
-->
|
|
1136
|
-
<!--
|
|
1137
|
-
<lst name="defaults">
|
|
1138
|
-
<str name="update.chain">dedupe</str>
|
|
1139
|
-
</lst>
|
|
1140
|
-
-->
|
|
1141
|
-
</requestHandler>
|
|
1142
|
-
<!-- Binary Update Request Handler
|
|
1143
|
-
http://wiki.apache.org/solr/javabin
|
|
1144
|
-
-->
|
|
1145
|
-
<requestHandler name="/update/javabin"
|
|
1146
|
-
class="solr.BinaryUpdateRequestHandler" />
|
|
1147
|
-
|
|
1148
|
-
<!-- CSV Update Request Handler
|
|
1149
|
-
http://wiki.apache.org/solr/UpdateCSV
|
|
1150
|
-
-->
|
|
1151
|
-
<requestHandler name="/update/csv"
|
|
1152
|
-
class="solr.CSVRequestHandler"
|
|
1153
|
-
startup="lazy" />
|
|
1154
|
-
|
|
1155
|
-
<!-- JSON Update Request Handler
|
|
1156
|
-
http://wiki.apache.org/solr/UpdateJSON
|
|
1157
|
-
-->
|
|
1158
|
-
<requestHandler name="/update/json"
|
|
1159
|
-
class="solr.JsonUpdateRequestHandler"
|
|
1160
|
-
startup="lazy" />
|
|
1161
|
-
|
|
1162
|
-
<!-- Solr Cell Update Request Handler
|
|
1163
|
-
|
|
1164
|
-
http://wiki.apache.org/solr/ExtractingRequestHandler
|
|
1165
|
-
|
|
1166
|
-
-->
|
|
1167
|
-
<requestHandler name="/update/extract"
|
|
1168
|
-
startup="lazy"
|
|
1169
|
-
class="solr.extraction.ExtractingRequestHandler" >
|
|
1170
|
-
<lst name="defaults">
|
|
1171
|
-
<!-- All the main content goes into "text"... if you need to return
|
|
1172
|
-
the extracted text or do highlighting, use a stored field. -->
|
|
1173
|
-
<str name="fmap.content">text</str>
|
|
1174
|
-
<str name="lowernames">true</str>
|
|
1175
|
-
<str name="uprefix">ignored_</str>
|
|
1176
|
-
|
|
1177
|
-
<!-- capture link hrefs but ignore div attributes -->
|
|
1178
|
-
<str name="captureAttr">true</str>
|
|
1179
|
-
<str name="fmap.a">links</str>
|
|
1180
|
-
<str name="fmap.div">ignored_</str>
|
|
1181
|
-
</lst>
|
|
1182
|
-
</requestHandler>
|
|
1183
|
-
|
|
1184
|
-
<!-- Field Analysis Request Handler
|
|
1185
|
-
|
|
1186
|
-
RequestHandler that provides much the same functionality as
|
|
1187
|
-
analysis.jsp. Provides the ability to specify multiple field
|
|
1188
|
-
types and field names in the same request and outputs
|
|
1189
|
-
index-time and query-time analysis for each of them.
|
|
1190
|
-
|
|
1191
|
-
Request parameters are:
|
|
1192
|
-
analysis.fieldname - field name whose analyzers are to be used
|
|
1193
|
-
|
|
1194
|
-
analysis.fieldtype - field type whose analyzers are to be used
|
|
1195
|
-
analysis.fieldvalue - text for index-time analysis
|
|
1196
|
-
q (or analysis.q) - text for query time analysis
|
|
1197
|
-
analysis.showmatch (true|false) - When set to true and when
|
|
1198
|
-
query analysis is performed, the produced tokens of the
|
|
1199
|
-
field value analysis will be marked as "matched" for every
|
|
1200
|
-
token that is produces by the query analysis
|
|
1201
|
-
-->
|
|
1202
|
-
<requestHandler name="/analysis/field"
|
|
1203
|
-
startup="lazy"
|
|
1204
|
-
class="solr.FieldAnalysisRequestHandler" />
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
<!-- Document Analysis Handler
|
|
1208
|
-
|
|
1209
|
-
http://wiki.apache.org/solr/AnalysisRequestHandler
|
|
1210
|
-
|
|
1211
|
-
An analysis handler that provides a breakdown of the analysis
|
|
1212
|
-
process of provided docuemnts. This handler expects a (single)
|
|
1213
|
-
content stream with the following format:
|
|
1214
|
-
|
|
1215
|
-
<docs>
|
|
1216
|
-
<doc>
|
|
1217
|
-
<field name="id">1</field>
|
|
1218
|
-
<field name="name">The Name</field>
|
|
1219
|
-
<field name="text">The Text Value</field>
|
|
1220
|
-
</doc>
|
|
1221
|
-
<doc>...</doc>
|
|
1222
|
-
<doc>...</doc>
|
|
1223
|
-
...
|
|
1224
|
-
</docs>
|
|
1225
|
-
|
|
1226
|
-
Note: Each document must contain a field which serves as the
|
|
1227
|
-
unique key. This key is used in the returned response to associate
|
|
1228
|
-
an analysis breakdown to the analyzed document.
|
|
1229
|
-
|
|
1230
|
-
Like the FieldAnalysisRequestHandler, this handler also supports
|
|
1231
|
-
query analysis by sending either an "analysis.query" or "q"
|
|
1232
|
-
request parameter that holds the query text to be analyzed. It
|
|
1233
|
-
also supports the "analysis.showmatch" parameter which when set to
|
|
1234
|
-
true, all field tokens that match the query tokens will be marked
|
|
1235
|
-
as a "match".
|
|
1236
|
-
-->
|
|
1237
|
-
<requestHandler name="/analysis/document"
|
|
1238
|
-
class="solr.DocumentAnalysisRequestHandler"
|
|
1239
|
-
startup="lazy" />
|
|
1240
|
-
|
|
1241
|
-
<!-- Admin Handlers
|
|
1242
|
-
|
|
1243
|
-
Admin Handlers - This will register all the standard admin
|
|
1244
|
-
RequestHandlers.
|
|
1245
|
-
-->
|
|
1246
|
-
<requestHandler name="/admin/"
|
|
1247
|
-
class="solr.admin.AdminHandlers" />
|
|
1248
|
-
<!-- This single handler is equivalent to the following... -->
|
|
1249
|
-
<!--
|
|
1250
|
-
<requestHandler name="/admin/luke" class="solr.admin.LukeRequestHandler" />
|
|
1251
|
-
<requestHandler name="/admin/system" class="solr.admin.SystemInfoHandler" />
|
|
1252
|
-
<requestHandler name="/admin/plugins" class="solr.admin.PluginInfoHandler" />
|
|
1253
|
-
<requestHandler name="/admin/threads" class="solr.admin.ThreadDumpHandler" />
|
|
1254
|
-
<requestHandler name="/admin/properties" class="solr.admin.PropertiesRequestHandler" />
|
|
1255
|
-
<requestHandler name="/admin/file" class="solr.admin.ShowFileRequestHandler" >
|
|
1256
|
-
-->
|
|
1257
|
-
<!-- If you wish to hide files under ${solr.home}/conf, explicitly
|
|
1258
|
-
register the ShowFileRequestHandler using:
|
|
1259
|
-
-->
|
|
1260
|
-
<!--
|
|
1261
|
-
<requestHandler name="/admin/file"
|
|
1262
|
-
class="solr.admin.ShowFileRequestHandler" >
|
|
1263
|
-
<lst name="invariants">
|
|
1264
|
-
<str name="hidden">synonyms.txt</str>
|
|
1265
|
-
<str name="hidden">anotherfile.txt</str>
|
|
1266
|
-
</lst>
|
|
1267
|
-
</requestHandler>
|
|
1268
|
-
-->
|
|
1269
|
-
|
|
1270
|
-
<!-- ping/healthcheck -->
|
|
1271
|
-
<requestHandler name="/admin/ping" class="solr.PingRequestHandler">
|
|
1272
|
-
<lst name="defaults">
|
|
1273
|
-
<str name="qt">search</str>
|
|
1274
|
-
<str name="q">solrpingquery</str>
|
|
1275
|
-
<str name="echoParams">all</str>
|
|
1276
|
-
</lst>
|
|
1277
|
-
</requestHandler>
|
|
1278
|
-
|
|
1279
|
-
<!-- Echo the request contents back to the client -->
|
|
1280
|
-
<requestHandler name="/debug/dump" class="solr.DumpRequestHandler" >
|
|
1281
|
-
<lst name="defaults">
|
|
1282
|
-
<str name="echoParams">explicit</str>
|
|
1283
|
-
<str name="echoHandler">true</str>
|
|
1284
|
-
</lst>
|
|
1285
|
-
</requestHandler>
|
|
1286
|
-
|
|
1287
|
-
<!-- Solr Replication
|
|
1288
|
-
|
|
1289
|
-
The SolrReplicationHandler supports replicating indexes from a
|
|
1290
|
-
"master" used for indexing and "salves" used for queries.
|
|
1291
|
-
|
|
1292
|
-
http://wiki.apache.org/solr/SolrReplication
|
|
1293
|
-
|
|
1294
|
-
In the example below, remove the <lst name="master"> section if
|
|
1295
|
-
this is just a slave and remove the <lst name="slave"> section
|
|
1296
|
-
if this is just a master.
|
|
1297
|
-
-->
|
|
1298
|
-
<!--
|
|
1299
|
-
<requestHandler name="/replication" class="solr.ReplicationHandler" >
|
|
1300
|
-
<lst name="master">
|
|
1301
|
-
<str name="replicateAfter">commit</str>
|
|
1302
|
-
<str name="replicateAfter">startup</str>
|
|
1303
|
-
<str name="confFiles">schema.xml,stopwords.txt</str>
|
|
1304
|
-
</lst>
|
|
1305
|
-
<lst name="slave">
|
|
1306
|
-
<str name="masterUrl">http://localhost:8983/solr/replication</str>
|
|
1307
|
-
<str name="pollInterval">00:00:60</str>
|
|
1308
|
-
</lst>
|
|
1309
|
-
</requestHandler>
|
|
1310
|
-
-->
|
|
1311
|
-
|
|
1312
|
-
<!-- Search Components
|
|
1313
|
-
|
|
1314
|
-
Search components are registered to SolrCore and used by
|
|
1315
|
-
instances of SearchHandler (which can access them by name)
|
|
1316
|
-
|
|
1317
|
-
By default, the following components are available:
|
|
1318
|
-
|
|
1319
|
-
<searchComponent name="query" class="solr.QueryComponent" />
|
|
1320
|
-
<searchComponent name="facet" class="solr.FacetComponent" />
|
|
1321
|
-
<searchComponent name="mlt" class="solr.MoreLikeThisComponent" />
|
|
1322
|
-
<searchComponent name="highlight" class="solr.HighlightComponent" />
|
|
1323
|
-
<searchComponent name="stats" class="solr.StatsComponent" />
|
|
1324
|
-
<searchComponent name="debug" class="solr.DebugComponent" />
|
|
1325
|
-
|
|
1326
|
-
Default configuration in a requestHandler would look like:
|
|
1327
|
-
|
|
1328
|
-
<arr name="components">
|
|
1329
|
-
<str>query</str>
|
|
1330
|
-
<str>facet</str>
|
|
1331
|
-
<str>mlt</str>
|
|
1332
|
-
<str>highlight</str>
|
|
1333
|
-
<str>stats</str>
|
|
1334
|
-
<str>debug</str>
|
|
1335
|
-
</arr>
|
|
1336
|
-
|
|
1337
|
-
If you register a searchComponent to one of the standard names,
|
|
1338
|
-
that will be used instead of the default.
|
|
1339
|
-
|
|
1340
|
-
To insert components before or after the 'standard' components, use:
|
|
1341
|
-
|
|
1342
|
-
<arr name="first-components">
|
|
1343
|
-
<str>myFirstComponentName</str>
|
|
1344
|
-
</arr>
|
|
1345
|
-
|
|
1346
|
-
<arr name="last-components">
|
|
1347
|
-
<str>myLastComponentName</str>
|
|
1348
|
-
</arr>
|
|
1349
|
-
|
|
1350
|
-
NOTE: The component registered with the name "debug" will
|
|
1351
|
-
always be executed after the "last-components"
|
|
1352
|
-
|
|
1353
|
-
-->
|
|
1354
252
|
|
|
1355
253
|
<!-- Spell Check
|
|
1356
254
|
|
|
@@ -1397,486 +295,5 @@
|
|
|
1397
295
|
<str name="accuracy">0.7</str>
|
|
1398
296
|
<str name="buildOnOptimize">true</str>
|
|
1399
297
|
</lst>
|
|
1400
|
-
|
|
1401
|
-
<!-- a spellchecker that uses a different distance measure -->
|
|
1402
|
-
<!--
|
|
1403
|
-
<lst name="spellchecker">
|
|
1404
|
-
<str name="name">jarowinkler</str>
|
|
1405
|
-
<str name="field">spell</str>
|
|
1406
|
-
<str name="distanceMeasure">
|
|
1407
|
-
org.apache.lucene.search.spell.JaroWinklerDistance
|
|
1408
|
-
</str>
|
|
1409
|
-
<str name="spellcheckIndexDir">spellcheckerJaro</str>
|
|
1410
|
-
</lst>
|
|
1411
|
-
-->
|
|
1412
|
-
|
|
1413
|
-
<!-- a spellchecker that use an alternate comparator
|
|
1414
|
-
|
|
1415
|
-
comparatorClass be one of:
|
|
1416
|
-
1. score (default)
|
|
1417
|
-
2. freq (Frequency first, then score)
|
|
1418
|
-
3. A fully qualified class name
|
|
1419
|
-
-->
|
|
1420
|
-
<!--
|
|
1421
|
-
<lst name="spellchecker">
|
|
1422
|
-
<str name="name">freq</str>
|
|
1423
|
-
<str name="field">lowerfilt</str>
|
|
1424
|
-
<str name="spellcheckIndexDir">spellcheckerFreq</str>
|
|
1425
|
-
<str name="comparatorClass">freq</str>
|
|
1426
|
-
<str name="buildOnCommit">true</str>
|
|
1427
|
-
-->
|
|
1428
|
-
|
|
1429
|
-
<!-- A spellchecker that reads the list of words from a file -->
|
|
1430
|
-
<!--
|
|
1431
|
-
<lst name="spellchecker">
|
|
1432
|
-
<str name="classname">solr.FileBasedSpellChecker</str>
|
|
1433
|
-
<str name="name">file</str>
|
|
1434
|
-
<str name="sourceLocation">spellings.txt</str>
|
|
1435
|
-
<str name="characterEncoding">UTF-8</str>
|
|
1436
|
-
<str name="spellcheckIndexDir">spellcheckerFile</str>
|
|
1437
|
-
</lst>
|
|
1438
|
-
-->
|
|
1439
|
-
</searchComponent>
|
|
1440
|
-
|
|
1441
|
-
<!-- A request handler for demonstrating the spellcheck component.
|
|
1442
|
-
|
|
1443
|
-
NOTE: This is purely as an example. The whole purpose of the
|
|
1444
|
-
SpellCheckComponent is to hook it into the request handler that
|
|
1445
|
-
handles your normal user queries so that a separate request is
|
|
1446
|
-
not needed to get suggestions.
|
|
1447
|
-
|
|
1448
|
-
IN OTHER WORDS, THERE IS REALLY GOOD CHANCE THE SETUP BELOW IS
|
|
1449
|
-
NOT WHAT YOU WANT FOR YOUR PRODUCTION SYSTEM!
|
|
1450
|
-
|
|
1451
|
-
See http://wiki.apache.org/solr/SpellCheckComponent for details
|
|
1452
|
-
on the request parameters.
|
|
1453
|
-
-->
|
|
1454
|
-
<requestHandler name="/spell" class="solr.SearchHandler" startup="lazy">
|
|
1455
|
-
<lst name="defaults">
|
|
1456
|
-
<str name="spellcheck.onlyMorePopular">false</str>
|
|
1457
|
-
<str name="spellcheck.extendedResults">false</str>
|
|
1458
|
-
<str name="spellcheck.count">1</str>
|
|
1459
|
-
</lst>
|
|
1460
|
-
<arr name="last-components">
|
|
1461
|
-
<str>spellcheck</str>
|
|
1462
|
-
</arr>
|
|
1463
|
-
</requestHandler>
|
|
1464
|
-
|
|
1465
|
-
<!-- Term Vector Component
|
|
1466
|
-
|
|
1467
|
-
http://wiki.apache.org/solr/TermVectorComponent
|
|
1468
|
-
-->
|
|
1469
|
-
<searchComponent name="tvComponent" class="solr.TermVectorComponent"/>
|
|
1470
|
-
|
|
1471
|
-
<!-- A request handler for demonstrating the term vector component
|
|
1472
|
-
|
|
1473
|
-
This is purely as an example.
|
|
1474
|
-
|
|
1475
|
-
In reality you will likely want to add the component to your
|
|
1476
|
-
already specified request handlers.
|
|
1477
|
-
-->
|
|
1478
|
-
<requestHandler name="tvrh" class="solr.SearchHandler" startup="lazy">
|
|
1479
|
-
<lst name="defaults">
|
|
1480
|
-
<bool name="tv">true</bool>
|
|
1481
|
-
</lst>
|
|
1482
|
-
<arr name="last-components">
|
|
1483
|
-
<str>tvComponent</str>
|
|
1484
|
-
</arr>
|
|
1485
|
-
</requestHandler>
|
|
1486
|
-
|
|
1487
|
-
<!-- Clustering Component
|
|
1488
|
-
|
|
1489
|
-
http://wiki.apache.org/solr/ClusteringComponent
|
|
1490
|
-
|
|
1491
|
-
This relies on third party jars which are notincluded in the
|
|
1492
|
-
release. To use this component (and the "/clustering" handler)
|
|
1493
|
-
Those jars will need to be downloaded, and you'll need to set
|
|
1494
|
-
the solr.cluster.enabled system property when running solr...
|
|
1495
|
-
|
|
1496
|
-
java -Dsolr.clustering.enabled=true -jar start.jar
|
|
1497
|
-
-->
|
|
1498
|
-
<searchComponent name="clustering"
|
|
1499
|
-
enable="${solr.clustering.enabled:false}"
|
|
1500
|
-
class="solr.clustering.ClusteringComponent" >
|
|
1501
|
-
<!-- Declare an engine -->
|
|
1502
|
-
<lst name="engine">
|
|
1503
|
-
<!-- The name, only one can be named "default" -->
|
|
1504
|
-
<str name="name">default</str>
|
|
1505
|
-
|
|
1506
|
-
<!-- Class name of Carrot2 clustering algorithm.
|
|
1507
|
-
|
|
1508
|
-
Currently available algorithms are:
|
|
1509
|
-
|
|
1510
|
-
* org.carrot2.clustering.lingo.LingoClusteringAlgorithm
|
|
1511
|
-
* org.carrot2.clustering.stc.STCClusteringAlgorithm
|
|
1512
|
-
* org.carrot2.clustering.kmeans.BisectingKMeansClusteringAlgorithm
|
|
1513
|
-
|
|
1514
|
-
See http://project.carrot2.org/algorithms.html for the
|
|
1515
|
-
algorithm's characteristics.
|
|
1516
|
-
-->
|
|
1517
|
-
<str name="carrot.algorithm">org.carrot2.clustering.lingo.LingoClusteringAlgorithm</str>
|
|
1518
|
-
|
|
1519
|
-
<!-- Overriding values for Carrot2 default algorithm attributes.
|
|
1520
|
-
|
|
1521
|
-
For a description of all available attributes, see:
|
|
1522
|
-
http://download.carrot2.org/stable/manual/#chapter.components.
|
|
1523
|
-
Use attribute key as name attribute of str elements
|
|
1524
|
-
below. These can be further overridden for individual
|
|
1525
|
-
requests by specifying attribute key as request parameter
|
|
1526
|
-
name and attribute value as parameter value.
|
|
1527
|
-
-->
|
|
1528
|
-
<str name="LingoClusteringAlgorithm.desiredClusterCountBase">20</str>
|
|
1529
|
-
|
|
1530
|
-
<!-- Location of Carrot2 lexical resources.
|
|
1531
|
-
|
|
1532
|
-
A directory from which to load Carrot2-specific stop words
|
|
1533
|
-
and stop labels. Absolute or relative to Solr config directory.
|
|
1534
|
-
If a specific resource (e.g. stopwords.en) is present in the
|
|
1535
|
-
specified dir, it will completely override the corresponding
|
|
1536
|
-
default one that ships with Carrot2.
|
|
1537
|
-
|
|
1538
|
-
For an overview of Carrot2 lexical resources, see:
|
|
1539
|
-
http://download.carrot2.org/head/manual/#chapter.lexical-resources
|
|
1540
|
-
-->
|
|
1541
|
-
<str name="carrot.lexicalResourcesDir">clustering/carrot2</str>
|
|
1542
|
-
|
|
1543
|
-
<!-- The language to assume for the documents.
|
|
1544
|
-
|
|
1545
|
-
For a list of allowed values, see:
|
|
1546
|
-
http://download.carrot2.org/stable/manual/#section.attribute.lingo.MultilingualClustering.defaultLanguage
|
|
1547
|
-
-->
|
|
1548
|
-
<str name="MultilingualClustering.defaultLanguage">ENGLISH</str>
|
|
1549
|
-
</lst>
|
|
1550
|
-
<lst name="engine">
|
|
1551
|
-
<str name="name">stc</str>
|
|
1552
|
-
<str name="carrot.algorithm">org.carrot2.clustering.stc.STCClusteringAlgorithm</str>
|
|
1553
|
-
</lst>
|
|
1554
|
-
</searchComponent>
|
|
1555
|
-
|
|
1556
|
-
<!-- A request handler for demonstrating the clustering component
|
|
1557
|
-
|
|
1558
|
-
This is purely as an example.
|
|
1559
|
-
|
|
1560
|
-
In reality you will likely want to add the component to your
|
|
1561
|
-
already specified request handlers.
|
|
1562
|
-
-->
|
|
1563
|
-
<requestHandler name="/clustering"
|
|
1564
|
-
startup="lazy"
|
|
1565
|
-
enable="${solr.clustering.enabled:false}"
|
|
1566
|
-
class="solr.SearchHandler">
|
|
1567
|
-
<lst name="defaults">
|
|
1568
|
-
<bool name="clustering">true</bool>
|
|
1569
|
-
<str name="clustering.engine">default</str>
|
|
1570
|
-
<bool name="clustering.results">true</bool>
|
|
1571
|
-
<!-- The title field -->
|
|
1572
|
-
<str name="carrot.title">name</str>
|
|
1573
|
-
<str name="carrot.url">id</str>
|
|
1574
|
-
<!-- The field to cluster on -->
|
|
1575
|
-
<str name="carrot.snippet">features</str>
|
|
1576
|
-
<!-- produce summaries -->
|
|
1577
|
-
<bool name="carrot.produceSummary">true</bool>
|
|
1578
|
-
<!-- the maximum number of labels per cluster -->
|
|
1579
|
-
<!--<int name="carrot.numDescriptions">5</int>-->
|
|
1580
|
-
<!-- produce sub clusters -->
|
|
1581
|
-
<bool name="carrot.outputSubClusters">false</bool>
|
|
1582
|
-
|
|
1583
|
-
<str name="defType">edismax</str>
|
|
1584
|
-
<str name="qf">
|
|
1585
|
-
text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
|
|
1586
|
-
</str>
|
|
1587
|
-
<str name="q.alt">*:*</str>
|
|
1588
|
-
<str name="rows">10</str>
|
|
1589
|
-
<str name="fl">*,score</str>
|
|
1590
|
-
</lst>
|
|
1591
|
-
<arr name="last-components">
|
|
1592
|
-
<str>clustering</str>
|
|
1593
|
-
</arr>
|
|
1594
|
-
</requestHandler>
|
|
1595
|
-
|
|
1596
|
-
<!-- Terms Component
|
|
1597
|
-
|
|
1598
|
-
http://wiki.apache.org/solr/TermsComponent
|
|
1599
|
-
|
|
1600
|
-
A component to return terms and document frequency of those
|
|
1601
|
-
terms
|
|
1602
|
-
-->
|
|
1603
|
-
<searchComponent name="terms" class="solr.TermsComponent"/>
|
|
1604
|
-
|
|
1605
|
-
<!-- A request handler for demonstrating the terms component -->
|
|
1606
|
-
<requestHandler name="/terms" class="solr.SearchHandler" startup="lazy">
|
|
1607
|
-
<lst name="defaults">
|
|
1608
|
-
<bool name="terms">true</bool>
|
|
1609
|
-
</lst>
|
|
1610
|
-
<arr name="components">
|
|
1611
|
-
<str>terms</str>
|
|
1612
|
-
</arr>
|
|
1613
|
-
</requestHandler>
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
<!-- Query Elevation Component
|
|
1617
|
-
|
|
1618
|
-
http://wiki.apache.org/solr/QueryElevationComponent
|
|
1619
|
-
|
|
1620
|
-
a search component that enables you to configure the top
|
|
1621
|
-
results for a given query regardless of the normal lucene
|
|
1622
|
-
scoring.
|
|
1623
|
-
-->
|
|
1624
|
-
<searchComponent name="elevator" class="solr.QueryElevationComponent" >
|
|
1625
|
-
<!-- pick a fieldType to analyze queries -->
|
|
1626
|
-
<str name="queryFieldType">string</str>
|
|
1627
|
-
<str name="config-file">elevate.xml</str>
|
|
1628
298
|
</searchComponent>
|
|
1629
|
-
|
|
1630
|
-
<!-- A request handler for demonstrating the elevator component -->
|
|
1631
|
-
<requestHandler name="/elevate" class="solr.SearchHandler" startup="lazy">
|
|
1632
|
-
<lst name="defaults">
|
|
1633
|
-
<str name="echoParams">explicit</str>
|
|
1634
|
-
</lst>
|
|
1635
|
-
<arr name="last-components">
|
|
1636
|
-
<str>elevator</str>
|
|
1637
|
-
</arr>
|
|
1638
|
-
</requestHandler>
|
|
1639
|
-
|
|
1640
|
-
<!-- Highlighting Component
|
|
1641
|
-
|
|
1642
|
-
http://wiki.apache.org/solr/HighlightingParameters
|
|
1643
|
-
-->
|
|
1644
|
-
<searchComponent class="solr.HighlightComponent" name="highlight">
|
|
1645
|
-
<highlighting>
|
|
1646
|
-
<!-- Configure the standard fragmenter -->
|
|
1647
|
-
<!-- This could most likely be commented out in the "default" case -->
|
|
1648
|
-
<fragmenter name="gap"
|
|
1649
|
-
default="true"
|
|
1650
|
-
class="solr.highlight.GapFragmenter">
|
|
1651
|
-
<lst name="defaults">
|
|
1652
|
-
<int name="hl.fragsize">100</int>
|
|
1653
|
-
</lst>
|
|
1654
|
-
</fragmenter>
|
|
1655
|
-
|
|
1656
|
-
<!-- A regular-expression-based fragmenter
|
|
1657
|
-
(for sentence extraction)
|
|
1658
|
-
-->
|
|
1659
|
-
<fragmenter name="regex"
|
|
1660
|
-
class="solr.highlight.RegexFragmenter">
|
|
1661
|
-
<lst name="defaults">
|
|
1662
|
-
<!-- slightly smaller fragsizes work better because of slop -->
|
|
1663
|
-
<int name="hl.fragsize">70</int>
|
|
1664
|
-
<!-- allow 50% slop on fragment sizes -->
|
|
1665
|
-
<float name="hl.regex.slop">0.5</float>
|
|
1666
|
-
<!-- a basic sentence pattern -->
|
|
1667
|
-
<str name="hl.regex.pattern">[-\w ,/\n\"']{20,200}</str>
|
|
1668
|
-
</lst>
|
|
1669
|
-
</fragmenter>
|
|
1670
|
-
|
|
1671
|
-
<!-- Configure the standard formatter -->
|
|
1672
|
-
<formatter name="html"
|
|
1673
|
-
default="true"
|
|
1674
|
-
class="solr.highlight.HtmlFormatter">
|
|
1675
|
-
<lst name="defaults">
|
|
1676
|
-
<str name="hl.simple.pre"><![CDATA[<em>]]></str>
|
|
1677
|
-
<str name="hl.simple.post"><![CDATA[</em>]]></str>
|
|
1678
|
-
</lst>
|
|
1679
|
-
</formatter>
|
|
1680
|
-
|
|
1681
|
-
<!-- Configure the standard encoder -->
|
|
1682
|
-
<encoder name="html"
|
|
1683
|
-
class="solr.highlight.HtmlEncoder" />
|
|
1684
|
-
|
|
1685
|
-
<!-- Configure the standard fragListBuilder -->
|
|
1686
|
-
<fragListBuilder name="simple"
|
|
1687
|
-
default="true"
|
|
1688
|
-
class="solr.highlight.SimpleFragListBuilder"/>
|
|
1689
|
-
|
|
1690
|
-
<!-- Configure the single fragListBuilder -->
|
|
1691
|
-
<fragListBuilder name="single"
|
|
1692
|
-
class="solr.highlight.SingleFragListBuilder"/>
|
|
1693
|
-
|
|
1694
|
-
<!-- default tag FragmentsBuilder -->
|
|
1695
|
-
<fragmentsBuilder name="default"
|
|
1696
|
-
default="true"
|
|
1697
|
-
class="solr.highlight.ScoreOrderFragmentsBuilder">
|
|
1698
|
-
<!--
|
|
1699
|
-
<lst name="defaults">
|
|
1700
|
-
<str name="hl.multiValuedSeparatorChar">/</str>
|
|
1701
|
-
</lst>
|
|
1702
|
-
-->
|
|
1703
|
-
</fragmentsBuilder>
|
|
1704
|
-
|
|
1705
|
-
<!-- multi-colored tag FragmentsBuilder -->
|
|
1706
|
-
<fragmentsBuilder name="colored"
|
|
1707
|
-
class="solr.highlight.ScoreOrderFragmentsBuilder">
|
|
1708
|
-
<lst name="defaults">
|
|
1709
|
-
<str name="hl.tag.pre"><![CDATA[
|
|
1710
|
-
<b style="background:yellow">,<b style="background:lawgreen">,
|
|
1711
|
-
<b style="background:aquamarine">,<b style="background:magenta">,
|
|
1712
|
-
<b style="background:palegreen">,<b style="background:coral">,
|
|
1713
|
-
<b style="background:wheat">,<b style="background:khaki">,
|
|
1714
|
-
<b style="background:lime">,<b style="background:deepskyblue">]]></str>
|
|
1715
|
-
<str name="hl.tag.post"><![CDATA[</b>]]></str>
|
|
1716
|
-
</lst>
|
|
1717
|
-
</fragmentsBuilder>
|
|
1718
|
-
|
|
1719
|
-
<boundaryScanner name="default"
|
|
1720
|
-
default="true"
|
|
1721
|
-
class="solr.highlight.SimpleBoundaryScanner">
|
|
1722
|
-
<lst name="defaults">
|
|
1723
|
-
<str name="hl.bs.maxScan">10</str>
|
|
1724
|
-
<str name="hl.bs.chars">.,!? 	 </str>
|
|
1725
|
-
</lst>
|
|
1726
|
-
</boundaryScanner>
|
|
1727
|
-
|
|
1728
|
-
<boundaryScanner name="breakIterator"
|
|
1729
|
-
class="solr.highlight.BreakIteratorBoundaryScanner">
|
|
1730
|
-
<lst name="defaults">
|
|
1731
|
-
<!-- type should be one of CHARACTER, WORD(default), LINE and SENTENCE -->
|
|
1732
|
-
<str name="hl.bs.type">WORD</str>
|
|
1733
|
-
<!-- language and country are used when constructing Locale object. -->
|
|
1734
|
-
<!-- And the Locale object will be used when getting instance of BreakIterator -->
|
|
1735
|
-
<str name="hl.bs.language">en</str>
|
|
1736
|
-
<str name="hl.bs.country">US</str>
|
|
1737
|
-
</lst>
|
|
1738
|
-
</boundaryScanner>
|
|
1739
|
-
</highlighting>
|
|
1740
|
-
</searchComponent>
|
|
1741
|
-
|
|
1742
|
-
<!-- Update Processors
|
|
1743
|
-
|
|
1744
|
-
Chains of Update Processor Factories for dealing with Update
|
|
1745
|
-
Requests can be declared, and then used by name in Update
|
|
1746
|
-
Request Processors
|
|
1747
|
-
|
|
1748
|
-
http://wiki.apache.org/solr/UpdateRequestProcessor
|
|
1749
|
-
|
|
1750
|
-
-->
|
|
1751
|
-
<!-- Deduplication
|
|
1752
|
-
|
|
1753
|
-
An example dedup update processor that creates the "id" field
|
|
1754
|
-
on the fly based on the hash code of some other fields. This
|
|
1755
|
-
example has overwriteDupes set to false since we are using the
|
|
1756
|
-
id field as the signatureField and Solr will maintain
|
|
1757
|
-
uniqueness based on that anyway.
|
|
1758
|
-
|
|
1759
|
-
-->
|
|
1760
|
-
<!--
|
|
1761
|
-
<updateRequestProcessorChain name="dedupe">
|
|
1762
|
-
<processor class="solr.processor.SignatureUpdateProcessorFactory">
|
|
1763
|
-
<bool name="enabled">true</bool>
|
|
1764
|
-
<str name="signatureField">id</str>
|
|
1765
|
-
<bool name="overwriteDupes">false</bool>
|
|
1766
|
-
<str name="fields">name,features,cat</str>
|
|
1767
|
-
<str name="signatureClass">solr.processor.Lookup3Signature</str>
|
|
1768
|
-
</processor>
|
|
1769
|
-
<processor class="solr.LogUpdateProcessorFactory" />
|
|
1770
|
-
<processor class="solr.RunUpdateProcessorFactory" />
|
|
1771
|
-
</updateRequestProcessorChain>
|
|
1772
|
-
-->
|
|
1773
|
-
|
|
1774
|
-
<!--
|
|
1775
|
-
This example update chain identifies the language of the incoming
|
|
1776
|
-
documents using the langid contrib. The detected language is
|
|
1777
|
-
written to field language_s. No field name mapping is done.
|
|
1778
|
-
The fields used for detection are text, title, subject and description,
|
|
1779
|
-
making this example suitable for detecting languages form full-text
|
|
1780
|
-
rich documents injected via ExtractingRequestHandler.
|
|
1781
|
-
See more about langId at http://wiki.apache.org/solr/LanguageDetection
|
|
1782
|
-
-->
|
|
1783
|
-
<!--
|
|
1784
|
-
<updateRequestProcessorChain name="langid">
|
|
1785
|
-
<processor class="org.apache.solr.update.processor.TikaLanguageIdentifierUpdateProcessorFactory">
|
|
1786
|
-
<str name="langid.fl">text,title,subject,description</str>
|
|
1787
|
-
<str name="langid.langField">language_s</str>
|
|
1788
|
-
<str name="langid.fallback">en</str>
|
|
1789
|
-
</processor>
|
|
1790
|
-
<processor class="solr.LogUpdateProcessorFactory" />
|
|
1791
|
-
<processor class="solr.RunUpdateProcessorFactory" />
|
|
1792
|
-
</updateRequestProcessorChain>
|
|
1793
|
-
-->
|
|
1794
|
-
|
|
1795
|
-
<!-- Response Writers
|
|
1796
|
-
|
|
1797
|
-
http://wiki.apache.org/solr/QueryResponseWriter
|
|
1798
|
-
|
|
1799
|
-
Request responses will be written using the writer specified by
|
|
1800
|
-
the 'wt' request parameter matching the name of a registered
|
|
1801
|
-
writer.
|
|
1802
|
-
|
|
1803
|
-
The "default" writer is the default and will be used if 'wt' is
|
|
1804
|
-
not specified in the request.
|
|
1805
|
-
-->
|
|
1806
|
-
<!-- The following response writers are implicitly configured unless
|
|
1807
|
-
overridden...
|
|
1808
|
-
-->
|
|
1809
|
-
<!--
|
|
1810
|
-
<queryResponseWriter name="xml"
|
|
1811
|
-
default="true"
|
|
1812
|
-
class="solr.XMLResponseWriter" />
|
|
1813
|
-
<queryResponseWriter name="json" class="solr.JSONResponseWriter"/>
|
|
1814
|
-
<queryResponseWriter name="python" class="solr.PythonResponseWriter"/>
|
|
1815
|
-
<queryResponseWriter name="ruby" class="solr.RubyResponseWriter"/>
|
|
1816
|
-
<queryResponseWriter name="php" class="solr.PHPResponseWriter"/>
|
|
1817
|
-
<queryResponseWriter name="phps" class="solr.PHPSerializedResponseWriter"/>
|
|
1818
|
-
<queryResponseWriter name="csv" class="solr.CSVResponseWriter"/>
|
|
1819
|
-
-->
|
|
1820
|
-
|
|
1821
|
-
<queryResponseWriter name="json" class="solr.JSONResponseWriter">
|
|
1822
|
-
<!-- For the purposes of the tutorial, JSON responses are written as
|
|
1823
|
-
plain text so that they are easy to read in *any* browser.
|
|
1824
|
-
If you expect a MIME type of "application/json" just remove this override.
|
|
1825
|
-
-->
|
|
1826
|
-
<str name="content-type">text/plain; charset=UTF-8</str>
|
|
1827
|
-
</queryResponseWriter>
|
|
1828
|
-
|
|
1829
|
-
<!--
|
|
1830
|
-
Custom response writers can be declared as needed...
|
|
1831
|
-
-->
|
|
1832
|
-
<!-- The solr.velocity.enabled flag is used by Solr's test cases so that this response writer is not
|
|
1833
|
-
loaded (causing an error if contrib/velocity has not been built fully) -->
|
|
1834
|
-
<queryResponseWriter name="velocity" class="solr.VelocityResponseWriter" enable="${solr.velocity.enabled:true}"/>
|
|
1835
|
-
|
|
1836
|
-
<!-- XSLT response writer transforms the XML output by any xslt file found
|
|
1837
|
-
in Solr's conf/xslt directory. Changes to xslt files are checked for
|
|
1838
|
-
every xsltCacheLifetimeSeconds.
|
|
1839
|
-
-->
|
|
1840
|
-
<queryResponseWriter name="xslt" class="solr.XSLTResponseWriter">
|
|
1841
|
-
<int name="xsltCacheLifetimeSeconds">5</int>
|
|
1842
|
-
</queryResponseWriter>
|
|
1843
|
-
|
|
1844
|
-
<!-- Query Parsers
|
|
1845
|
-
|
|
1846
|
-
http://wiki.apache.org/solr/SolrQuerySyntax
|
|
1847
|
-
|
|
1848
|
-
Multiple QParserPlugins can be registered by name, and then
|
|
1849
|
-
used in either the "defType" param for the QueryComponent (used
|
|
1850
|
-
by SearchHandler) or in LocalParams
|
|
1851
|
-
-->
|
|
1852
|
-
<!-- example of registering a query parser -->
|
|
1853
|
-
<!--
|
|
1854
|
-
<queryParser name="myparser" class="com.mycompany.MyQParserPlugin"/>
|
|
1855
|
-
-->
|
|
1856
|
-
|
|
1857
|
-
<!-- Function Parsers
|
|
1858
|
-
|
|
1859
|
-
http://wiki.apache.org/solr/FunctionQuery
|
|
1860
|
-
|
|
1861
|
-
Multiple ValueSourceParsers can be registered by name, and then
|
|
1862
|
-
used as function names when using the "func" QParser.
|
|
1863
|
-
-->
|
|
1864
|
-
<!-- example of registering a custom function parser -->
|
|
1865
|
-
<!--
|
|
1866
|
-
<valueSourceParser name="myfunc"
|
|
1867
|
-
class="com.mycompany.MyValueSourceParser" />
|
|
1868
|
-
-->
|
|
1869
|
-
|
|
1870
|
-
<!-- Legacy config for the admin interface -->
|
|
1871
|
-
<admin>
|
|
1872
|
-
<defaultQuery>hydra</defaultQuery>
|
|
1873
|
-
|
|
1874
|
-
<!-- configure a healthcheck file for servers behind a
|
|
1875
|
-
loadbalancer
|
|
1876
|
-
-->
|
|
1877
|
-
<!--
|
|
1878
|
-
<healthcheck type="file">server-enabled</healthcheck>
|
|
1879
|
-
-->
|
|
1880
|
-
</admin>
|
|
1881
|
-
|
|
1882
299
|
</config>
|