hydra-editor 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +51 -0
- data/Rakefile +57 -0
- data/app/assets/javascripts/hydra-editor/editMetadata.js +4 -0
- data/app/assets/javascripts/hydra-editor/hydra-editor.js +2 -0
- data/app/assets/javascripts/hydra-editor/multiForm.js +58 -0
- data/app/assets/stylesheets/hydra-editor/application.css +13 -0
- data/app/assets/stylesheets/hydra-editor/hydra-editor.css +6 -0
- data/app/controllers/concerns/records_controller_behavior.rb +75 -0
- data/app/controllers/records_controller.rb +3 -0
- data/app/helpers/concerns/records_helper_behavior.rb +59 -0
- data/app/helpers/records_helper.rb +3 -0
- data/app/views/records/_edit_field.html.erb +15 -0
- data/app/views/records/_form.html.erb +16 -0
- data/app/views/records/choose_type.html.erb +8 -0
- data/app/views/records/edit.html.erb +3 -0
- data/app/views/records/edit_fields/_default.html.erb +10 -0
- data/app/views/records/edit_fields/_suffix.html.erb +6 -0
- data/app/views/records/new.html.erb +2 -0
- data/config/routes.rb +4 -0
- data/lib/hydra-editor.rb +12 -0
- data/lib/hydra_editor/engine.rb +8 -0
- data/lib/hydra_editor/version.rb +3 -0
- data/lib/tasks/hydra-editor_tasks.rake +4 -0
- data/spec/controllers/records_controller_spec.rb +101 -0
- data/spec/dummy/Gemfile +16 -0
- data/spec/dummy/Gemfile.lock +246 -0
- data/spec/dummy/README.rdoc +261 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/images/blacklight/bg.png +0 -0
- data/spec/dummy/app/assets/images/blacklight/border.png +0 -0
- data/spec/dummy/app/assets/images/blacklight/bul_sq_gry.gif +0 -0
- data/spec/dummy/app/assets/images/blacklight/checkmark.gif +0 -0
- data/spec/dummy/app/assets/images/blacklight/logo.png +0 -0
- data/spec/dummy/app/assets/images/blacklight/magnifying_glass.gif +0 -0
- data/spec/dummy/app/assets/images/blacklight/remove.gif +0 -0
- data/spec/dummy/app/assets/images/blacklight/separator.gif +0 -0
- data/spec/dummy/app/assets/images/blacklight/start_over.gif +0 -0
- data/spec/dummy/app/assets/images/rails.png +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +18 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/assets/stylesheets/blacklight.css.scss +4 -0
- data/spec/dummy/app/controllers/application_controller.rb +10 -0
- data/spec/dummy/app/controllers/catalog_controller.rb +170 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/models/solr_document.rb +33 -0
- data/spec/dummy/app/models/user.rb +22 -0
- data/spec/dummy/app/views/devise/confirmations/new.html.erb +12 -0
- data/spec/dummy/app/views/devise/mailer/confirmation_instructions.html.erb +5 -0
- data/spec/dummy/app/views/devise/mailer/reset_password_instructions.html.erb +8 -0
- data/spec/dummy/app/views/devise/mailer/unlock_instructions.html.erb +7 -0
- data/spec/dummy/app/views/devise/passwords/edit.html.erb +16 -0
- data/spec/dummy/app/views/devise/passwords/new.html.erb +12 -0
- data/spec/dummy/app/views/devise/registrations/edit.html.erb +29 -0
- data/spec/dummy/app/views/devise/registrations/new.html.erb +18 -0
- data/spec/dummy/app/views/devise/sessions/new.html.erb +17 -0
- data/spec/dummy/app/views/devise/shared/_links.erb +25 -0
- data/spec/dummy/app/views/devise/unlocks/new.html.erb +12 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/SolrMarc/config-test.properties +37 -0
- data/spec/dummy/config/SolrMarc/config.properties +37 -0
- data/spec/dummy/config/SolrMarc/index.properties +97 -0
- data/spec/dummy/config/SolrMarc/index_scripts/dewey.bsh +47 -0
- data/spec/dummy/config/SolrMarc/index_scripts/format.bsh +126 -0
- data/spec/dummy/config/SolrMarc/translation_maps/README_MAPS +1 -0
- data/spec/dummy/config/SolrMarc/translation_maps/callnumber_map.properties +407 -0
- data/spec/dummy/config/SolrMarc/translation_maps/composition_era_map.properties +56 -0
- data/spec/dummy/config/SolrMarc/translation_maps/country_map.properties +379 -0
- data/spec/dummy/config/SolrMarc/translation_maps/format_map.properties +50 -0
- data/spec/dummy/config/SolrMarc/translation_maps/instrument_map.properties +101 -0
- data/spec/dummy/config/SolrMarc/translation_maps/language_map.properties +490 -0
- data/spec/dummy/config/application.rb +66 -0
- data/spec/dummy/config/boot.rb +6 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +67 -0
- data/spec/dummy/config/environments/test.rb +37 -0
- data/spec/dummy/config/fedora.yml +14 -0
- data/spec/dummy/config/initializers/action_dispatch_http_upload_monkey_patch.rb +12 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/devise.rb +240 -0
- data/spec/dummy/config/initializers/hydra_config.rb +28 -0
- data/spec/dummy/config/initializers/inflections.rb +15 -0
- data/spec/dummy/config/initializers/mime_types.rb +12 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/jetty.yml +5 -0
- data/spec/dummy/config/locales/devise.en.yml +59 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/role_map_cucumber.yml +10 -0
- data/spec/dummy/config/role_map_development.yml +12 -0
- data/spec/dummy/config/role_map_production.yml +2 -0
- data/spec/dummy/config/role_map_test.yml +15 -0
- data/spec/dummy/config/routes.rb +66 -0
- data/spec/dummy/config/solr.yml +10 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20130415215624_devise_create_users.rb +46 -0
- data/spec/dummy/db/migrate/20130415215633_create_searches.rb +16 -0
- data/spec/dummy/db/migrate/20130415215634_create_bookmarks.rb +18 -0
- data/spec/dummy/db/migrate/20130415215635_remove_editable_fields_from_bookmarks.rb +12 -0
- data/spec/dummy/db/migrate/20130415215636_add_user_types_to_bookmarks_searches.rb +16 -0
- data/spec/dummy/db/schema.rb +53 -0
- data/spec/dummy/db/seeds.rb +7 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/doc/README_FOR_APP +2 -0
- data/spec/dummy/fedora_conf/conf/development/fedora.fcfg +953 -0
- data/spec/dummy/fedora_conf/conf/test/fedora.fcfg +953 -0
- data/spec/dummy/lib/generators/test_app_generator.rb +26 -0
- data/spec/dummy/log/development.log +78 -0
- data/spec/dummy/log/test.log +2372 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +25 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/public/index.html +241 -0
- data/spec/dummy/public/robots.txt +5 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/dummy/solr_conf/conf/schema.xml +433 -0
- data/spec/dummy/solr_conf/conf/solrconfig.xml +158 -0
- data/spec/dummy/solr_conf/solr.xml +35 -0
- data/spec/dummy/test/performance/browsing_test.rb +12 -0
- data/spec/dummy/test/test_helper.rb +13 -0
- data/spec/factories/users.rb +13 -0
- data/spec/helpers/records_helper_spec.rb +20 -0
- data/spec/models/bookmark_spec.rb +7 -0
- data/spec/spec_helper.rb +23 -0
- data/spec/support/Gemfile +12 -0
- data/spec/support/audio.rb +18 -0
- data/spec/support/dummy_generator.rb +26 -0
- data/spec/support/lib/generators/test_app_generator.rb +26 -0
- metadata +410 -0
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
</div>
|
24
|
+
</body>
|
25
|
+
</html>
|
File without changes
|
@@ -0,0 +1,241 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Ruby on Rails: Welcome aboard</title>
|
5
|
+
<style type="text/css" media="screen">
|
6
|
+
body {
|
7
|
+
margin: 0;
|
8
|
+
margin-bottom: 25px;
|
9
|
+
padding: 0;
|
10
|
+
background-color: #f0f0f0;
|
11
|
+
font-family: "Lucida Grande", "Bitstream Vera Sans", "Verdana";
|
12
|
+
font-size: 13px;
|
13
|
+
color: #333;
|
14
|
+
}
|
15
|
+
|
16
|
+
h1 {
|
17
|
+
font-size: 28px;
|
18
|
+
color: #000;
|
19
|
+
}
|
20
|
+
|
21
|
+
a {color: #03c}
|
22
|
+
a:hover {
|
23
|
+
background-color: #03c;
|
24
|
+
color: white;
|
25
|
+
text-decoration: none;
|
26
|
+
}
|
27
|
+
|
28
|
+
|
29
|
+
#page {
|
30
|
+
background-color: #f0f0f0;
|
31
|
+
width: 750px;
|
32
|
+
margin: 0;
|
33
|
+
margin-left: auto;
|
34
|
+
margin-right: auto;
|
35
|
+
}
|
36
|
+
|
37
|
+
#content {
|
38
|
+
float: left;
|
39
|
+
background-color: white;
|
40
|
+
border: 3px solid #aaa;
|
41
|
+
border-top: none;
|
42
|
+
padding: 25px;
|
43
|
+
width: 500px;
|
44
|
+
}
|
45
|
+
|
46
|
+
#sidebar {
|
47
|
+
float: right;
|
48
|
+
width: 175px;
|
49
|
+
}
|
50
|
+
|
51
|
+
#footer {
|
52
|
+
clear: both;
|
53
|
+
}
|
54
|
+
|
55
|
+
#header, #about, #getting-started {
|
56
|
+
padding-left: 75px;
|
57
|
+
padding-right: 30px;
|
58
|
+
}
|
59
|
+
|
60
|
+
|
61
|
+
#header {
|
62
|
+
background-image: url("assets/rails.png");
|
63
|
+
background-repeat: no-repeat;
|
64
|
+
background-position: top left;
|
65
|
+
height: 64px;
|
66
|
+
}
|
67
|
+
#header h1, #header h2 {margin: 0}
|
68
|
+
#header h2 {
|
69
|
+
color: #888;
|
70
|
+
font-weight: normal;
|
71
|
+
font-size: 16px;
|
72
|
+
}
|
73
|
+
|
74
|
+
|
75
|
+
#about h3 {
|
76
|
+
margin: 0;
|
77
|
+
margin-bottom: 10px;
|
78
|
+
font-size: 14px;
|
79
|
+
}
|
80
|
+
|
81
|
+
#about-content {
|
82
|
+
background-color: #ffd;
|
83
|
+
border: 1px solid #fc0;
|
84
|
+
margin-left: -55px;
|
85
|
+
margin-right: -10px;
|
86
|
+
}
|
87
|
+
#about-content table {
|
88
|
+
margin-top: 10px;
|
89
|
+
margin-bottom: 10px;
|
90
|
+
font-size: 11px;
|
91
|
+
border-collapse: collapse;
|
92
|
+
}
|
93
|
+
#about-content td {
|
94
|
+
padding: 10px;
|
95
|
+
padding-top: 3px;
|
96
|
+
padding-bottom: 3px;
|
97
|
+
}
|
98
|
+
#about-content td.name {color: #555}
|
99
|
+
#about-content td.value {color: #000}
|
100
|
+
|
101
|
+
#about-content ul {
|
102
|
+
padding: 0;
|
103
|
+
list-style-type: none;
|
104
|
+
}
|
105
|
+
|
106
|
+
#about-content.failure {
|
107
|
+
background-color: #fcc;
|
108
|
+
border: 1px solid #f00;
|
109
|
+
}
|
110
|
+
#about-content.failure p {
|
111
|
+
margin: 0;
|
112
|
+
padding: 10px;
|
113
|
+
}
|
114
|
+
|
115
|
+
|
116
|
+
#getting-started {
|
117
|
+
border-top: 1px solid #ccc;
|
118
|
+
margin-top: 25px;
|
119
|
+
padding-top: 15px;
|
120
|
+
}
|
121
|
+
#getting-started h1 {
|
122
|
+
margin: 0;
|
123
|
+
font-size: 20px;
|
124
|
+
}
|
125
|
+
#getting-started h2 {
|
126
|
+
margin: 0;
|
127
|
+
font-size: 14px;
|
128
|
+
font-weight: normal;
|
129
|
+
color: #333;
|
130
|
+
margin-bottom: 25px;
|
131
|
+
}
|
132
|
+
#getting-started ol {
|
133
|
+
margin-left: 0;
|
134
|
+
padding-left: 0;
|
135
|
+
}
|
136
|
+
#getting-started li {
|
137
|
+
font-size: 18px;
|
138
|
+
color: #888;
|
139
|
+
margin-bottom: 25px;
|
140
|
+
}
|
141
|
+
#getting-started li h2 {
|
142
|
+
margin: 0;
|
143
|
+
font-weight: normal;
|
144
|
+
font-size: 18px;
|
145
|
+
color: #333;
|
146
|
+
}
|
147
|
+
#getting-started li p {
|
148
|
+
color: #555;
|
149
|
+
font-size: 13px;
|
150
|
+
}
|
151
|
+
|
152
|
+
|
153
|
+
#sidebar ul {
|
154
|
+
margin-left: 0;
|
155
|
+
padding-left: 0;
|
156
|
+
}
|
157
|
+
#sidebar ul h3 {
|
158
|
+
margin-top: 25px;
|
159
|
+
font-size: 16px;
|
160
|
+
padding-bottom: 10px;
|
161
|
+
border-bottom: 1px solid #ccc;
|
162
|
+
}
|
163
|
+
#sidebar li {
|
164
|
+
list-style-type: none;
|
165
|
+
}
|
166
|
+
#sidebar ul.links li {
|
167
|
+
margin-bottom: 5px;
|
168
|
+
}
|
169
|
+
|
170
|
+
.filename {
|
171
|
+
font-style: italic;
|
172
|
+
}
|
173
|
+
</style>
|
174
|
+
<script type="text/javascript">
|
175
|
+
function about() {
|
176
|
+
info = document.getElementById('about-content');
|
177
|
+
if (window.XMLHttpRequest)
|
178
|
+
{ xhr = new XMLHttpRequest(); }
|
179
|
+
else
|
180
|
+
{ xhr = new ActiveXObject("Microsoft.XMLHTTP"); }
|
181
|
+
xhr.open("GET","rails/info/properties",false);
|
182
|
+
xhr.send("");
|
183
|
+
info.innerHTML = xhr.responseText;
|
184
|
+
info.style.display = 'block'
|
185
|
+
}
|
186
|
+
</script>
|
187
|
+
</head>
|
188
|
+
<body>
|
189
|
+
<div id="page">
|
190
|
+
<div id="sidebar">
|
191
|
+
<ul id="sidebar-items">
|
192
|
+
<li>
|
193
|
+
<h3>Browse the documentation</h3>
|
194
|
+
<ul class="links">
|
195
|
+
<li><a href="http://guides.rubyonrails.org/">Rails Guides</a></li>
|
196
|
+
<li><a href="http://api.rubyonrails.org/">Rails API</a></li>
|
197
|
+
<li><a href="http://www.ruby-doc.org/core/">Ruby core</a></li>
|
198
|
+
<li><a href="http://www.ruby-doc.org/stdlib/">Ruby standard library</a></li>
|
199
|
+
</ul>
|
200
|
+
</li>
|
201
|
+
</ul>
|
202
|
+
</div>
|
203
|
+
|
204
|
+
<div id="content">
|
205
|
+
<div id="header">
|
206
|
+
<h1>Welcome aboard</h1>
|
207
|
+
<h2>You’re riding Ruby on Rails!</h2>
|
208
|
+
</div>
|
209
|
+
|
210
|
+
<div id="about">
|
211
|
+
<h3><a href="rails/info/properties" onclick="about(); return false">About your application’s environment</a></h3>
|
212
|
+
<div id="about-content" style="display: none"></div>
|
213
|
+
</div>
|
214
|
+
|
215
|
+
<div id="getting-started">
|
216
|
+
<h1>Getting started</h1>
|
217
|
+
<h2>Here’s how to get rolling:</h2>
|
218
|
+
|
219
|
+
<ol>
|
220
|
+
<li>
|
221
|
+
<h2>Use <code>rails generate</code> to create your models and controllers</h2>
|
222
|
+
<p>To see all available options, run it without parameters.</p>
|
223
|
+
</li>
|
224
|
+
|
225
|
+
<li>
|
226
|
+
<h2>Set up a default route and remove <span class="filename">public/index.html</span></h2>
|
227
|
+
<p>Routes are set up in <span class="filename">config/routes.rb</span>.</p>
|
228
|
+
</li>
|
229
|
+
|
230
|
+
<li>
|
231
|
+
<h2>Create your database</h2>
|
232
|
+
<p>Run <code>rake db:create</code> to create your database. If you're not using SQLite (the default), edit <span class="filename">config/database.yml</span> with your username and password.</p>
|
233
|
+
</li>
|
234
|
+
</ol>
|
235
|
+
</div>
|
236
|
+
</div>
|
237
|
+
|
238
|
+
<div id="footer"> </div>
|
239
|
+
</div>
|
240
|
+
</body>
|
241
|
+
</html>
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
@@ -0,0 +1,433 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<schema name="Hydra" version="1.5">
|
3
|
+
<!-- NOTE: various comments and unused configuration possibilities have been purged
|
4
|
+
from this file. Please refer to http://wiki.apache.org/solr/SchemaXml,
|
5
|
+
as well as the default schema file included with Solr -->
|
6
|
+
|
7
|
+
<uniqueKey>id</uniqueKey>
|
8
|
+
|
9
|
+
<fields>
|
10
|
+
<field name="id" type="string" stored="true" indexed="true" multiValued="false" required="true"/>
|
11
|
+
<field name="timestamp" type="date" indexed="true" stored="true" default="NOW" multiValued="false"/>
|
12
|
+
|
13
|
+
<field name="lat" type="tdouble" stored="true" indexed="true" multiValued="false"/>
|
14
|
+
<field name="lng" type="tdouble" stored="true" indexed="true" multiValued="false"/>
|
15
|
+
|
16
|
+
<!--these fields are hard coded in places in hydra-head -->
|
17
|
+
<field name="active_fedora_model_s" type="string" stored="true" indexed="true"/>
|
18
|
+
<field name="object_profile_display" type="string" stored="true" indexed="true"/>
|
19
|
+
<field name="has_model_s" type="string" stored="true" indexed="true"/>
|
20
|
+
<field name="is_governed_by_s" type="string" stored="true" indexed="true"/>
|
21
|
+
|
22
|
+
<!--
|
23
|
+
These are hard coded in places in hydra-head, but we hope to fix that.
|
24
|
+
|
25
|
+
<field name="inheritable_discover_access_person_t" type="string" stored="true" indexed="true" multiValued="true"/>
|
26
|
+
<field name="inheritable_read_access_person_t" type="string" stored="true" indexed="true" multiValued="true"/>
|
27
|
+
<field name="inheritable_edit_access_person_t" type="string" stored="true" indexed="true" multiValued="true"/>
|
28
|
+
<field name="inheritable_discover_access_group_t" type="string" stored="true" indexed="true" multiValued="true"/>
|
29
|
+
<field name="inheritable_read_access_group_t" type="string" stored="true" indexed="true" multiValued="true"/>
|
30
|
+
<field name="inheritable_edit_access_group_t" type="string" stored="true" indexed="true" multiValued="true"/>
|
31
|
+
<field name="read_access_person_t" type="string" stored="true" indexed="true" multiValued="true"/>
|
32
|
+
<field name="discover_access_person_t" type="string" stored="true" indexed="true" multiValued="true"/>
|
33
|
+
<field name="edit_access_person_t" type="string" stored="true" indexed="true" multiValued="true"/>
|
34
|
+
<field name="read_access_group_t" type="string" stored="true" indexed="true" multiValued="true"/>
|
35
|
+
<field name="edit_access_group_t" type="string" stored="true" indexed="true" multiValued="true"/>
|
36
|
+
<field name="discover_access_group_t" type="string" stored="true" indexed="true" multiValued="true"/>
|
37
|
+
-->
|
38
|
+
|
39
|
+
|
40
|
+
<!-- NOTE: not all possible Solr field types are represented in the dynamic fields -->
|
41
|
+
|
42
|
+
<!-- text (_t...) -->
|
43
|
+
<dynamicField name="*_ti" type="text" stored="false" indexed="true" multiValued="false"/>
|
44
|
+
<dynamicField name="*_tim" type="text" stored="false" indexed="true" multiValued="true"/>
|
45
|
+
<dynamicField name="*_ts" type="text" stored="true" indexed="false" multiValued="false"/>
|
46
|
+
<dynamicField name="*_tsm" type="text" stored="true" indexed="false" multiValued="true"/>
|
47
|
+
<dynamicField name="*_tsi" type="text" stored="true" indexed="true" multiValued="false"/>
|
48
|
+
<dynamicField name="*_tsim" type="text" stored="true" indexed="true" multiValued="true"/>
|
49
|
+
<dynamicField name="*_tiv" type="text" stored="false" indexed="true" multiValued="false" termVectors="true" termPositions="true" termOffsets="true"/>
|
50
|
+
<dynamicField name="*_timv" type="text" stored="false" indexed="true" multiValued="true" termVectors="true" termPositions="true" termOffsets="true"/>
|
51
|
+
<dynamicField name="*_tsiv" type="text" stored="true" indexed="true" multiValued="false" termVectors="true" termPositions="true" termOffsets="true"/>
|
52
|
+
<dynamicField name="*_tsimv" type="text" stored="true" indexed="true" multiValued="true" termVectors="true" termPositions="true" termOffsets="true"/>
|
53
|
+
|
54
|
+
<!-- English text (_te...) -->
|
55
|
+
<dynamicField name="*_tei" type="text_en" stored="false" indexed="true" multiValued="false"/>
|
56
|
+
<dynamicField name="*_teim" type="text_en" stored="false" indexed="true" multiValued="true"/>
|
57
|
+
<dynamicField name="*_tes" type="text_en" stored="true" indexed="false" multiValued="false"/>
|
58
|
+
<dynamicField name="*_tesm" type="text_en" stored="true" indexed="false" multiValued="true"/>
|
59
|
+
<dynamicField name="*_tesi" type="text_en" stored="true" indexed="true" multiValued="false"/>
|
60
|
+
<dynamicField name="*_tesim" type="text_en" stored="true" indexed="true" multiValued="true"/>
|
61
|
+
<dynamicField name="*_teiv" type="text_en" stored="false" indexed="true" multiValued="false" termVectors="true" termPositions="true" termOffsets="true"/>
|
62
|
+
<dynamicField name="*_teimv" type="text_en" stored="false" indexed="true" multiValued="true" termVectors="true" termPositions="true" termOffsets="true"/>
|
63
|
+
<dynamicField name="*_tesiv" type="text_en" stored="true" indexed="true" multiValued="false" termVectors="true" termPositions="true" termOffsets="true"/>
|
64
|
+
<dynamicField name="*_tesimv" type="text_en" stored="true" indexed="true" multiValued="true" termVectors="true" termPositions="true" termOffsets="true"/>
|
65
|
+
|
66
|
+
<!-- string (_s...) -->
|
67
|
+
<dynamicField name="*_si" type="string" stored="false" indexed="true" multiValued="false"/>
|
68
|
+
<dynamicField name="*_sim" type="string" stored="false" indexed="true" multiValued="true"/>
|
69
|
+
<dynamicField name="*_ss" type="string" stored="true" indexed="false" multiValued="false"/>
|
70
|
+
<dynamicField name="*_ssm" type="string" stored="true" indexed="false" multiValued="true"/>
|
71
|
+
<dynamicField name="*_ssi" type="string" stored="true" indexed="true" multiValued="false"/>
|
72
|
+
<dynamicField name="*_ssim" type="string" stored="true" indexed="true" multiValued="true"/>
|
73
|
+
<dynamicField name="*_ssort" type="alphaSort" stored="false" indexed="true" multiValued="false"/>
|
74
|
+
|
75
|
+
<!-- integer (_i...) -->
|
76
|
+
<dynamicField name="*_ii" type="int" stored="false" indexed="true" multiValued="false"/>
|
77
|
+
<dynamicField name="*_iim" type="int" stored="false" indexed="true" multiValued="true"/>
|
78
|
+
<dynamicField name="*_is" type="int" stored="true" indexed="false" multiValued="false"/>
|
79
|
+
<dynamicField name="*_ism" type="int" stored="true" indexed="false" multiValued="true"/>
|
80
|
+
<dynamicField name="*_isi" type="int" stored="true" indexed="true" multiValued="false"/>
|
81
|
+
<dynamicField name="*_isim" type="int" stored="true" indexed="true" multiValued="true"/>
|
82
|
+
|
83
|
+
<!-- trie integer (_it...) (for faster range queries) -->
|
84
|
+
<dynamicField name="*_iti" type="tint" stored="false" indexed="true" multiValued="false"/>
|
85
|
+
<dynamicField name="*_itim" type="tint" stored="false" indexed="true" multiValued="true"/>
|
86
|
+
<dynamicField name="*_its" type="tint" stored="true" indexed="false" multiValued="false"/>
|
87
|
+
<dynamicField name="*_itsm" type="tint" stored="true" indexed="false" multiValued="true"/>
|
88
|
+
<dynamicField name="*_itsi" type="tint" stored="true" indexed="true" multiValued="false"/>
|
89
|
+
<dynamicField name="*_itsim" type="tint" stored="true" indexed="true" multiValued="true"/>
|
90
|
+
|
91
|
+
<!-- date (_dt...) -->
|
92
|
+
<!-- The format for this date field is of the form 1995-12-31T23:59:59Z
|
93
|
+
Optional fractional seconds are allowed: 1995-12-31T23:59:59.999Z -->
|
94
|
+
<dynamicField name="*_dti" type="date" stored="false" indexed="true" multiValued="false"/>
|
95
|
+
<dynamicField name="*_dtim" type="date" stored="false" indexed="true" multiValued="true"/>
|
96
|
+
<dynamicField name="*_dts" type="date" stored="true" indexed="false" multiValued="false"/>
|
97
|
+
<dynamicField name="*_dtsm" type="date" stored="true" indexed="false" multiValued="true"/>
|
98
|
+
<dynamicField name="*_dtsi" type="date" stored="true" indexed="true" multiValued="false"/>
|
99
|
+
<dynamicField name="*_dtsim" type="date" stored="true" indexed="true" multiValued="true"/>
|
100
|
+
|
101
|
+
<!-- trie date (_dtt...) (for faster range queries) -->
|
102
|
+
<dynamicField name="*_dtti" type="tdate" stored="false" indexed="true" multiValued="false"/>
|
103
|
+
<dynamicField name="*_dttim" type="tdate" stored="false" indexed="true" multiValued="true"/>
|
104
|
+
<dynamicField name="*_dtts" type="tdate" stored="true" indexed="false" multiValued="false"/>
|
105
|
+
<dynamicField name="*_dttsm" type="tdate" stored="true" indexed="false" multiValued="true"/>
|
106
|
+
<dynamicField name="*_dttsi" type="tdate" stored="true" indexed="true" multiValued="false"/>
|
107
|
+
<dynamicField name="*_dttsim" type="tdate" stored="true" indexed="true" multiValued="true"/>
|
108
|
+
|
109
|
+
<!-- long (_l...) -->
|
110
|
+
<dynamicField name="*_li" type="long" stored="false" indexed="true" multiValued="false"/>
|
111
|
+
<dynamicField name="*_lim" type="long" stored="false" indexed="true" multiValued="true"/>
|
112
|
+
<dynamicField name="*_ls" type="long" stored="true" indexed="false" multiValued="false"/>
|
113
|
+
<dynamicField name="*_lsm" type="long" stored="true" indexed="false" multiValued="true"/>
|
114
|
+
<dynamicField name="*_lsi" type="long" stored="true" indexed="true" multiValued="false"/>
|
115
|
+
<dynamicField name="*_lsim" type="long" stored="true" indexed="true" multiValued="true"/>
|
116
|
+
|
117
|
+
<!-- trie long (_lt...) (for faster range queries) -->
|
118
|
+
<dynamicField name="*_lti" type="tlong" stored="false" indexed="true" multiValued="false"/>
|
119
|
+
<dynamicField name="*_ltim" type="tlong" stored="false" indexed="true" multiValued="true"/>
|
120
|
+
<dynamicField name="*_lts" type="tlong" stored="true" indexed="false" multiValued="false"/>
|
121
|
+
<dynamicField name="*_ltsm" type="tlong" stored="true" indexed="false" multiValued="true"/>
|
122
|
+
<dynamicField name="*_ltsi" type="tlong" stored="true" indexed="true" multiValued="false"/>
|
123
|
+
<dynamicField name="*_ltsim" type="tlong" stored="true" indexed="true" multiValued="true"/>
|
124
|
+
|
125
|
+
<!-- double (_db...) -->
|
126
|
+
<dynamicField name="*_dbi" type="double" stored="false" indexed="true" multiValued="false"/>
|
127
|
+
<dynamicField name="*_dbim" type="double" stored="false" indexed="true" multiValued="true"/>
|
128
|
+
<dynamicField name="*_dbs" type="double" stored="true" indexed="false" multiValued="false"/>
|
129
|
+
<dynamicField name="*_dbsm" type="double" stored="true" indexed="false" multiValued="true"/>
|
130
|
+
<dynamicField name="*_dbsi" type="double" stored="true" indexed="true" multiValued="false"/>
|
131
|
+
<dynamicField name="*_dbsim" type="double" stored="true" indexed="true" multiValued="true"/>
|
132
|
+
|
133
|
+
<!-- trie double (_dbt...) (for faster range queries) -->
|
134
|
+
<dynamicField name="*_dbti" type="tdouble" stored="false" indexed="true" multiValued="false"/>
|
135
|
+
<dynamicField name="*_dbtim" type="tdouble" stored="false" indexed="true" multiValued="true"/>
|
136
|
+
<dynamicField name="*_dbts" type="tdouble" stored="true" indexed="false" multiValued="false"/>
|
137
|
+
<dynamicField name="*_dbtsm" type="tdouble" stored="true" indexed="false" multiValued="true"/>
|
138
|
+
<dynamicField name="*_dbtsi" type="tdouble" stored="true" indexed="true" multiValued="false"/>
|
139
|
+
<dynamicField name="*_dbtsim" type="tdouble" stored="true" indexed="true" multiValued="true"/>
|
140
|
+
|
141
|
+
<!-- float (_f...) -->
|
142
|
+
<dynamicField name="*_fi" type="float" stored="false" indexed="true" multiValued="false"/>
|
143
|
+
<dynamicField name="*_fim" type="float" stored="false" indexed="true" multiValued="true"/>
|
144
|
+
<dynamicField name="*_fs" type="float" stored="true" indexed="false" multiValued="false"/>
|
145
|
+
<dynamicField name="*_fsm" type="float" stored="true" indexed="false" multiValued="true"/>
|
146
|
+
<dynamicField name="*_fsi" type="float" stored="true" indexed="true" multiValued="false"/>
|
147
|
+
<dynamicField name="*_fsim" type="float" stored="true" indexed="true" multiValued="true"/>
|
148
|
+
|
149
|
+
<!-- trie float (_ft...) (for faster range queries) -->
|
150
|
+
<dynamicField name="*_fti" type="tfloat" stored="false" indexed="true" multiValued="false"/>
|
151
|
+
<dynamicField name="*_ftim" type="tfloat" stored="false" indexed="true" multiValued="true"/>
|
152
|
+
<dynamicField name="*_fts" type="tfloat" stored="true" indexed="false" multiValued="false"/>
|
153
|
+
<dynamicField name="*_ftsm" type="tfloat" stored="true" indexed="false" multiValued="true"/>
|
154
|
+
<dynamicField name="*_ftsi" type="tfloat" stored="true" indexed="true" multiValued="false"/>
|
155
|
+
<dynamicField name="*_ftsim" type="tfloat" stored="true" indexed="true" multiValued="true"/>
|
156
|
+
|
157
|
+
<!-- boolean (_b...) -->
|
158
|
+
<dynamicField name="*_bi" type="boolean" stored="false" indexed="true" multiValued="false"/>
|
159
|
+
<dynamicField name="*_bs" type="boolean" stored="true" indexed="false" multiValued="false"/>
|
160
|
+
<dynamicField name="*_bsi" type="boolean" stored="true" indexed="true" multiValued="false"/>
|
161
|
+
|
162
|
+
<!-- Type used to index the lat and lon components for the "location" FieldType -->
|
163
|
+
<dynamicField name="*_coordinate" type="tdouble" indexed="true" stored="false" />
|
164
|
+
|
165
|
+
<!-- location (_ll...) -->
|
166
|
+
<dynamicField name="*_lli" type="location" stored="false" indexed="true" multiValued="false"/>
|
167
|
+
<dynamicField name="*_llim" type="location" stored="false" indexed="true" multiValued="true"/>
|
168
|
+
<dynamicField name="*_lls" type="location" stored="true" indexed="false" multiValued="false"/>
|
169
|
+
<dynamicField name="*_llsm" type="location" stored="true" indexed="false" multiValued="true"/>
|
170
|
+
<dynamicField name="*_llsi" type="location" stored="true" indexed="true" multiValued="false"/>
|
171
|
+
<dynamicField name="*_llsim" type="location" stored="true" indexed="true" multiValued="true"/>
|
172
|
+
|
173
|
+
<!-- you must define copyField source and dest fields explicity or schemaBrowser doesn't work -->
|
174
|
+
<field name="all_text_timv" type="text" stored="false" indexed="true" multiValued="true" termVectors="true" termPositions="true" termOffsets="true"/>
|
175
|
+
|
176
|
+
<!-- deprecated fields from pre-Solr 4.0 pre-hydra 5.0 -->
|
177
|
+
<!--
|
178
|
+
<field name="marc_display" type="string" indexed="false" stored="true" multiValued="false"/>
|
179
|
+
<field name="title_display" type="string" indexed="false" stored="true" multiValued="false"/>
|
180
|
+
<field name="title_vern_display" type="string" indexed="false" stored="true" multiValued="false"/>
|
181
|
+
<field name="subtitle_display" type="string" indexed="false" stored="true" multiValued="false"/>
|
182
|
+
<field name="subtitle_vern_display" type="string" indexed="false" stored="true" multiValued="false"/>
|
183
|
+
<field name="author_display" type="string" indexed="false" stored="true" multiValued="false"/>
|
184
|
+
<field name="author_vern_display" type="string" indexed="false" stored="true" multiValued="false"/>
|
185
|
+
-->
|
186
|
+
<!-- these fields are also used for display, so they must be stored -->
|
187
|
+
<!--
|
188
|
+
<field name="isbn_t" type="text" indexed="true" stored="true" multiValued="true"/>
|
189
|
+
<field name="language_facet" type="string" indexed="true" stored="true" multiValued="true" />
|
190
|
+
<field name="subject_topic_facet" type="string" indexed="true" stored="true" multiValued="true" />
|
191
|
+
<field name="subject_era_facet" type="string" indexed="true" stored="true" multiValued="true" />
|
192
|
+
<field name="subject_geo_facet" type="string" indexed="true" stored="true" multiValued="true" />
|
193
|
+
-->
|
194
|
+
<!-- pub_date is used for facet and display so it must be indexed and stored -->
|
195
|
+
<!--
|
196
|
+
<field name="pub_date" type="string" indexed="true" stored="true" multiValued="true"/>
|
197
|
+
-->
|
198
|
+
<!-- pub_date sort uses new trie-based int fields, which are recommended for any int and are displayable, sortable, and range-quer
|
199
|
+
we use 'tint' for faster range-queries. -->
|
200
|
+
<!--
|
201
|
+
<field name="pub_date_sort" type="tint" indexed="true" stored="true" multiValued="false"/>
|
202
|
+
-->
|
203
|
+
<!-- format is used for facet, display, and choosing which partial to use for the show view, so it must be stored and indexed -->
|
204
|
+
<!--
|
205
|
+
<field name="format" type="string" indexed="true" stored="true"/>
|
206
|
+
|
207
|
+
<dynamicField name="*_i" type="int" indexed="true" stored="true"/>
|
208
|
+
<dynamicField name="*_s" type="string" indexed="true" stored="true" multiValued="true"/>
|
209
|
+
<dynamicField name="*_l" type="long" indexed="true" stored="true"/>
|
210
|
+
<dynamicField name="*_t" type="text" indexed="true" stored="true" multiValued="true"/>
|
211
|
+
<dynamicField name="*_txt" type="text_general" indexed="true" stored="true" multiValued="true"/>
|
212
|
+
<dynamicField name="*_b" type="boolean" indexed="true" stored="true"/>
|
213
|
+
<dynamicField name="*_f" type="float" indexed="true" stored="true"/>
|
214
|
+
<dynamicField name="*_d" type="double" indexed="true" stored="true"/>
|
215
|
+
|
216
|
+
<dynamicField name="ignored_*" type="ignored" multiValued="true"/>
|
217
|
+
<dynamicField name="attr_*" type="text_general" indexed="true" stored="true" multiValued="true"/>
|
218
|
+
|
219
|
+
<dynamicField name="random_*" type="random" />
|
220
|
+
|
221
|
+
<dynamicField name="*_display" type="string" indexed="false" stored="true" multiValued="true" />
|
222
|
+
<dynamicField name="*_facet" type="string" indexed="true" stored="true" multiValued="true" />
|
223
|
+
<dynamicField name="*_sort" type="string" indexed="true" stored="false" multiValued="false" />
|
224
|
+
<dynamicField name="*_unstem_search" type="text_general" indexed="true" stored="false" multiValued="true" />
|
225
|
+
<dynamicField name="*spell" type="textSpell" indexed="true" stored="false" multiValued="true" />
|
226
|
+
-->
|
227
|
+
<!-- uncomment the following to ignore any fields that don't already match an existing
|
228
|
+
field name or dynamic field, rather than reporting them as an error.
|
229
|
+
alternately, change the type="ignored" to some other type e.g. "text" if you want
|
230
|
+
unknown fields indexed and/or stored by default -->
|
231
|
+
<!--dynamicField name="*" type="ignored" multiValued="true" /-->
|
232
|
+
|
233
|
+
<!-- END hydra deprecated items -->
|
234
|
+
|
235
|
+
</fields>
|
236
|
+
|
237
|
+
<!-- START hydra deprecated items -->
|
238
|
+
<!--
|
239
|
+
<defaultSearchField>text</defaultSearchField>
|
240
|
+
-->
|
241
|
+
<!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
|
242
|
+
<!--
|
243
|
+
<solrQueryParser defaultOperator="AND"/>
|
244
|
+
|
245
|
+
<copyField source="title_t" dest="title_unstem_search"/>
|
246
|
+
<copyField source="subtitle_t" dest="subtitle_unstem_search"/>
|
247
|
+
<copyField source="title_addl_t" dest="title_addl_unstem_search"/>
|
248
|
+
<copyField source="title_added_entry_t" dest="title_added_entry_unstem_search"/>
|
249
|
+
<copyField source="title_series_t" dest="title_series_unstem_search"/>
|
250
|
+
<copyField source="author_t" dest="author_unstem_search"/>
|
251
|
+
<copyField source="author_addl_t" dest="author_addl_unstem_search"/>
|
252
|
+
<copyField source="subject_t" dest="subject_unstem_search"/>
|
253
|
+
<copyField source="subject_addl_t" dest="subject_addl_unstem_search"/>
|
254
|
+
<copyField source="subject_topic_facet" dest="subject_topic_unstem_search"/>
|
255
|
+
-->
|
256
|
+
<!-- sort fields -->
|
257
|
+
<!--
|
258
|
+
<copyField source="pub_date" dest="pub_date_sort"/>
|
259
|
+
-->
|
260
|
+
|
261
|
+
<!-- spellcheck fields -->
|
262
|
+
<!-- default spell check; should match fields for default request handler -->
|
263
|
+
<!-- it won't work with a copy of a copy field -->
|
264
|
+
<!--
|
265
|
+
<copyField source="*_t" dest="spell"/>
|
266
|
+
<copyField source="*_facet" dest="spell"/>
|
267
|
+
-->
|
268
|
+
<!-- title spell check; should match fields for title request handler -->
|
269
|
+
<!--
|
270
|
+
<copyField source="title_t" dest="title_spell"/>
|
271
|
+
<copyField source="subtitle_t" dest="title_spell"/>
|
272
|
+
<copyField source="addl_titles_t" dest="title_spell"/>
|
273
|
+
<copyField source="title_added_entry_t" dest="title_spell"/>
|
274
|
+
<copyField source="title_series_t" dest="title_spell"/>
|
275
|
+
-->
|
276
|
+
<!-- author spell check; should match fields for author request handler -->
|
277
|
+
<!--
|
278
|
+
<copyField source="author_t" dest="author_spell"/>
|
279
|
+
<copyField source="author_addl_t" dest="author_spell"/>
|
280
|
+
-->
|
281
|
+
<!-- subject spell check; should match fields for subject request handler -->
|
282
|
+
<!--
|
283
|
+
<copyField source="subject_topic_facet" dest="subject_spell"/>
|
284
|
+
<copyField source="subject_t" dest="subject_spell"/>
|
285
|
+
<copyField source="subject_addl_t" dest="subject_spell"/>
|
286
|
+
-->
|
287
|
+
|
288
|
+
<!-- OpenSearch query field should match request handler search fields -->
|
289
|
+
<!--
|
290
|
+
<copyField source="title_t" dest="opensearch_display"/>
|
291
|
+
<copyField source="subtitle_t" dest="opensearch_display"/>
|
292
|
+
<copyField source="addl_titles_t" dest="opensearch_display"/>
|
293
|
+
<copyField source="title_added_entry_t" dest="opensearch_display"/>
|
294
|
+
<copyField source="title_series_t" dest="opensearch_display"/>
|
295
|
+
<copyField source="author_t" dest="opensearch_display"/>
|
296
|
+
<copyField source="author_addl_t" dest="opensearch_display"/>
|
297
|
+
<copyField source="subject_topic_facet" dest="opensearch_display"/>
|
298
|
+
<copyField source="subject_t" dest="opensearch_display"/>
|
299
|
+
<copyField source="subject_addl_t" dest="opensearch_display"/>
|
300
|
+
-->
|
301
|
+
|
302
|
+
<!-- Above, multiple source fields are copied to the [text] field.
|
303
|
+
Another way to map multiple source fields to the same
|
304
|
+
destination field is to use the dynamic field syntax.
|
305
|
+
copyField also supports a maxChars to copy setting. -->
|
306
|
+
|
307
|
+
<!-- <copyField source="*_t" dest="text" maxChars="3000"/> -->
|
308
|
+
<!--
|
309
|
+
<copyField source="*_s" dest="text"/>
|
310
|
+
<copyField source="*_t" dest="text"/>
|
311
|
+
<copyField source="*_facet" dest="text"/>
|
312
|
+
-->
|
313
|
+
<!-- copy name to alphaNameSort, a field designed for sorting by name -->
|
314
|
+
<!-- <copyField source="name" dest="alphaNameSort"/> -->
|
315
|
+
|
316
|
+
<!-- END hydra deprecated items -->
|
317
|
+
|
318
|
+
<!-- copy fields; note that you must define copyField source and dest fields explicity or schemaBrowser doesn't work -->
|
319
|
+
<!--
|
320
|
+
<copyField source="some_field" dest="all_text_timv" />
|
321
|
+
-->
|
322
|
+
|
323
|
+
<types>
|
324
|
+
<fieldType name="string" class="solr.StrField" sortMissingLast="true" />
|
325
|
+
<fieldType name="boolean" class="solr.BoolField" sortMissingLast="true"/>
|
326
|
+
<fieldType name="rand" class="solr.RandomSortField" omitNorms="true"/>
|
327
|
+
|
328
|
+
<!-- Default numeric field types. -->
|
329
|
+
<fieldType name="int" class="solr.TrieIntField" precisionStep="0" positionIncrementGap="0"/>
|
330
|
+
<fieldType name="float" class="solr.TrieFloatField" precisionStep="0" positionIncrementGap="0"/>
|
331
|
+
<fieldType name="long" class="solr.TrieLongField" precisionStep="0" positionIncrementGap="0"/>
|
332
|
+
<fieldType name="double" class="solr.TrieDoubleField" precisionStep="0" positionIncrementGap="0"/>
|
333
|
+
|
334
|
+
<!-- trie numeric field types for faster range queries -->
|
335
|
+
<fieldType name="tint" class="solr.TrieIntField" precisionStep="8" positionIncrementGap="0"/>
|
336
|
+
<fieldType name="tfloat" class="solr.TrieFloatField" precisionStep="8" positionIncrementGap="0"/>
|
337
|
+
<fieldType name="tlong" class="solr.TrieLongField" precisionStep="8" positionIncrementGap="0"/>
|
338
|
+
<fieldType name="tdouble" class="solr.TrieDoubleField" precisionStep="8" positionIncrementGap="0"/>
|
339
|
+
|
340
|
+
<!-- The format for this date field is of the form 1995-12-31T23:59:59Z
|
341
|
+
Optional fractional seconds are allowed: 1995-12-31T23:59:59.999Z
|
342
|
+
-->
|
343
|
+
<fieldType name="date" class="solr.TrieDateField" precisionStep="0" positionIncrementGap="0"/>
|
344
|
+
<!-- A Trie based date field for faster date range queries and date faceting. -->
|
345
|
+
<fieldType name="tdate" class="solr.TrieDateField" precisionStep="6" positionIncrementGap="0"/>
|
346
|
+
|
347
|
+
|
348
|
+
<!-- This point type indexes the coordinates as separate fields (subFields)
|
349
|
+
If subFieldType is defined, it references a type, and a dynamic field
|
350
|
+
definition is created matching *___<typename>. Alternately, if
|
351
|
+
subFieldSuffix is defined, that is used to create the subFields.
|
352
|
+
Example: if subFieldType="double", then the coordinates would be
|
353
|
+
indexed in fields myloc_0___double,myloc_1___double.
|
354
|
+
Example: if subFieldSuffix="_d" then the coordinates would be indexed
|
355
|
+
in fields myloc_0_d,myloc_1_d
|
356
|
+
The subFields are an implementation detail of the fieldType, and end
|
357
|
+
users normally should not need to know about them.
|
358
|
+
-->
|
359
|
+
<fieldType name="point" class="solr.PointType" dimension="2" subFieldSuffix="_d"/>
|
360
|
+
|
361
|
+
<!-- A specialized field for geospatial search. If indexed, this fieldType must not be multivalued. -->
|
362
|
+
<fieldType name="location" class="solr.LatLonType" subFieldSuffix="_coordinate"/>
|
363
|
+
|
364
|
+
<!-- An alternative geospatial field type new to Solr 4. It supports multiValued and polygon shapes.
|
365
|
+
For more information about this and other Spatial fields new to Solr 4, see:
|
366
|
+
http://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4
|
367
|
+
-->
|
368
|
+
<fieldType name="location_rpt" class="solr.SpatialRecursivePrefixTreeFieldType"
|
369
|
+
geo="true" distErrPct="0.025" maxDistErr="0.000009" units="degrees" />
|
370
|
+
|
371
|
+
<fieldType name="text" class="solr.TextField" omitNorms="false">
|
372
|
+
<analyzer>
|
373
|
+
<tokenizer class="solr.ICUTokenizerFactory"/>
|
374
|
+
<filter class="solr.ICUFoldingFilterFactory"/> <!-- NFKC, case folding, diacritics removed -->
|
375
|
+
<filter class="solr.TrimFilterFactory"/>
|
376
|
+
</analyzer>
|
377
|
+
</fieldType>
|
378
|
+
|
379
|
+
<!-- A text field that only splits on whitespace for exact matching of words -->
|
380
|
+
<fieldType name="text_ws" class="solr.TextField" positionIncrementGap="100">
|
381
|
+
<analyzer>
|
382
|
+
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
|
383
|
+
<filter class="solr.TrimFilterFactory"/>
|
384
|
+
</analyzer>
|
385
|
+
</fieldType>
|
386
|
+
|
387
|
+
<!-- single token analyzed text, for sorting. Punctuation is significant. -->
|
388
|
+
<fieldtype name="alphaSort" class="solr.TextField" sortMissingLast="true" omitNorms="true">
|
389
|
+
<analyzer>
|
390
|
+
<tokenizer class="solr.KeywordTokenizerFactory" />
|
391
|
+
<filter class="solr.ICUFoldingFilterFactory"/>
|
392
|
+
<filter class="solr.TrimFilterFactory" />
|
393
|
+
</analyzer>
|
394
|
+
</fieldtype>
|
395
|
+
|
396
|
+
<!-- A text field with defaults appropriate for English -->
|
397
|
+
<fieldType name="text_en" class="solr.TextField" positionIncrementGap="100">
|
398
|
+
<analyzer>
|
399
|
+
<tokenizer class="solr.ICUTokenizerFactory"/>
|
400
|
+
<filter class="solr.ICUFoldingFilterFactory"/> <!-- NFKC, case folding, diacritics removed -->
|
401
|
+
<filter class="solr.EnglishPossessiveFilterFactory"/>
|
402
|
+
<!-- EnglishMinimalStemFilterFactory is less aggressive than PorterStemFilterFactory: -->
|
403
|
+
<filter class="solr.EnglishMinimalStemFilterFactory"/>
|
404
|
+
<!--
|
405
|
+
<filter class="solr.PorterStemFilterFactory"/>
|
406
|
+
-->
|
407
|
+
<filter class="solr.TrimFilterFactory"/>
|
408
|
+
</analyzer>
|
409
|
+
</fieldType>
|
410
|
+
|
411
|
+
<!-- queries for paths match documents at that path, or in descendent paths -->
|
412
|
+
<fieldType name="descendent_path" class="solr.TextField">
|
413
|
+
<analyzer type="index">
|
414
|
+
<tokenizer class="solr.PathHierarchyTokenizerFactory" delimiter="/" />
|
415
|
+
</analyzer>
|
416
|
+
<analyzer type="query">
|
417
|
+
<tokenizer class="solr.KeywordTokenizerFactory" />
|
418
|
+
</analyzer>
|
419
|
+
</fieldType>
|
420
|
+
|
421
|
+
<!-- queries for paths match documents at that path, or in ancestor paths -->
|
422
|
+
<fieldType name="ancestor_path" class="solr.TextField">
|
423
|
+
<analyzer type="index">
|
424
|
+
<tokenizer class="solr.KeywordTokenizerFactory" />
|
425
|
+
</analyzer>
|
426
|
+
<analyzer type="query">
|
427
|
+
<tokenizer class="solr.PathHierarchyTokenizerFactory" delimiter="/" />
|
428
|
+
</analyzer>
|
429
|
+
</fieldType>
|
430
|
+
|
431
|
+
</types>
|
432
|
+
|
433
|
+
</schema>
|