hydra-core 6.0.0.pre1 → 6.0.0.pre2

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.
@@ -1,57 +1,13 @@
1
1
  <?xml version="1.0" encoding="UTF-8" ?>
2
- <!--
3
- Licensed to the Apache Software Foundation (ASF) under one or more
4
- contributor license agreements. See the NOTICE file distributed with
5
- this work for additional information regarding copyright ownership.
6
- The ASF licenses this file to You under the Apache License, Version 2.0
7
- (the "License"); you may not use this file except in compliance with
8
- the License. You may obtain a copy of the License at
9
-
10
- http://www.apache.org/licenses/LICENSE-2.0
11
-
12
- Unless required by applicable law or agreed to in writing, software
13
- distributed under the License is distributed on an "AS IS" BASIS,
14
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- See the License for the specific language governing permissions and
16
- limitations under the License.
17
- -->
18
-
19
- <!--
20
- For more details about configurations options that may appear in
21
- this file, see http://wiki.apache.org/solr/SolrConfigXml.
22
- -->
23
2
  <config>
24
- <!-- In all configuration below, a prefix of "solr." for class names
25
- is an alias that causes solr to search appropriate packages,
26
- including org.apache.solr.(search|update|request|core|analysis)
27
-
28
- You may also specify a fully qualified Java classname if you
29
- have your own custom plugins.
30
- -->
31
-
32
- <!-- Set this to 'false' if you want solr to continue working after
33
- it has encountered an severe configuration error. In a
34
- production environment, you may want solr to keep working even
35
- if one handler is mis-configured.
36
-
37
- You may also set this to false using by setting the system
38
- property:
39
-
40
- -Dsolr.abortOnConfigurationError=false
41
- -->
3
+ <!-- NOTE: various comments and unused configuration possibilities have been purged
4
+ from this file. Please refer to http://wiki.apache.org/solr/SolrConfigXml,
5
+ as well as the default solrconfig file included with Solr -->
6
+
42
7
  <abortOnConfigurationError>${solr.abortOnConfigurationError:true}</abortOnConfigurationError>
43
8
 
44
- <!-- Controls what version of Lucene various components of Solr
45
- adhere to. Generally, you want to use the latest version to
46
- get all bug fixes and improvements. It is highly recommended
47
- that you fully re-index after changing this setting as it can
48
- affect both how text is indexed and queried.
49
- -->
50
9
  <luceneMatchVersion>LUCENE_40</luceneMatchVersion>
51
10
 
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
11
  <directoryFactory name="DirectoryFactory" class="${solr.directoryFactory:solr.StandardDirectoryFactory}"/>
56
12
 
57
13
  <!-- solr lib dirs -->
@@ -60,40 +16,18 @@
60
16
 
61
17
  <dataDir>${solr.data.dir:}</dataDir>
62
18
 
63
- <requestHandler name="/replication" class="solr.ReplicationHandler" startup="lazy" />
64
-
65
- <requestDispatcher handleSelect="true" >
66
- <requestParsers enableRemoteStreaming="true" multipartUploadLimitInKB="2048" />
67
- </requestDispatcher>
68
-
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>
81
-
82
- <!-- config for the admin interface -->
83
- <admin>
84
- <defaultQuery>search</defaultQuery>
85
- </admin>
86
-
87
-
88
19
  <requestHandler name="search" class="solr.SearchHandler" default="true">
89
20
  <!-- default values for query parameters can be specified, these
90
21
  will be overridden by parameters in the request
91
22
  -->
92
23
  <lst name="defaults">
93
- <str name="defType">dismax</str>
24
+ <str name="defType">edismax</str>
94
25
  <str name="echoParams">explicit</str>
95
26
  <str name="q.alt">*:*</str>
96
27
  <str name="mm">2&lt;-1 5&lt;-2 6&lt;90%</str>
28
+ <int name="qs">1</int>
29
+ <int name="ps">2</int>
30
+ <float name="tie">0.01</float>
97
31
  <!-- this qf and pf are used by default, if not otherwise specified by
98
32
  client. The default blacklight_config will use these for the
99
33
  "keywords" search. See the author_qf/author_pf, title_qf, etc
@@ -103,93 +37,37 @@
103
37
  -->
104
38
  <str name="qf">
105
39
  id
106
- title_t^25000
107
- text
108
- active_fedora_model_s
109
- object_type_facet
40
+ all_text_timv
41
+ active_fedora_model_ssi
42
+ object_type_si
110
43
  </str>
111
44
  <str name="pf">
112
- id
113
- title_t^250000
114
- text^10
115
- active_fedora_model_s
116
- object_type_facet
45
+ all_text_timv^10
117
46
  </str>
118
47
 
119
48
  <str name="author_qf">
120
- author_unstem_search^200
121
- author_addl_unstem_search^50
122
- author_t^20
123
- author_addl_t
124
49
  </str>
125
50
  <str name="author_pf">
126
- author_unstem_search^2000
127
- author_addl_unstem_search^500
128
- author_t^200
129
- author_addl_t^10
130
51
  </str>
131
52
  <str name="title_qf">
132
- title_unstem_search^50000
133
- subtitle_unstem_search^25000
134
- title_addl_unstem_search^10000
135
- title_t^5000
136
- subtitle_t^2500
137
- title_addl_t^100
138
- title_added_entry_unstem_search^50
139
- title_added_entry_t^10
140
- title_series_unstem_search^5
141
- title_series_t
142
53
  </str>
143
54
  <str name="title_pf">
144
- title_unstem_search^500000
145
- subtitle_unstem_search^250000
146
- title_addl_unstem_search^100000
147
- title_t^50000
148
- subtitle_t^25000
149
- title_addl_t^1000
150
- title_added_entry_unstem_search^500
151
- title_added_entry_t^100
152
- title_series_t^50
153
- title_series_unstem_search^10
154
55
  </str>
155
56
  <str name="subject_qf">
156
- subject_topic_unstem_search^200
157
- subject_unstem_search^125
158
- subject_topic_facet^100
159
- subject_t^50
160
- subject_addl_unstem_search^10
161
- subject_addl_t
162
57
  </str>
163
58
  <str name="subject_pf">
164
- subject_topic_unstem_search^2000
165
- subject_unstem_search^1250
166
- subject_t^1000
167
- subject_topic_facet^500
168
- subject_addl_unstem_search^100
169
- subject_addl_t^10
170
59
  </str>
171
60
 
172
- <int name="ps">3</int>
173
- <float name="tie">0.01</float>
174
-
175
- <!-- NOT using marc_display because it is large and will slow things down for search results -->
176
61
  <str name="fl">
177
62
  *,
178
- score,
63
+ score
179
64
  </str>
180
65
 
181
66
  <str name="facet">true</str>
182
67
  <str name="facet.mincount">1</str>
183
68
  <str name="facet.limit">10</str>
184
- <str name="facet.field">format</str>
185
- <str name="facet.field">lc_1letter_facet</str>
186
- <str name="facet.field">lc_alpha_facet</str>
187
- <str name="facet.field">lc_b4cutter_facet</str>
188
- <str name="facet.field">language_facet</str>
189
- <str name="facet.field">pub_date</str>
190
- <str name="facet.field">subject_era_facet</str>
191
- <str name="facet.field">subject_geo_facet</str>
192
- <str name="facet.field">subject_topic_facet</str>
69
+ <str name="facet.field">active_fedora_model_ssi</str>
70
+ <str name="facet.field">object_type_si</str>
193
71
 
194
72
  <str name="spellcheck">true</str>
195
73
  <str name="spellcheck.dictionary">default</str>
@@ -202,16 +80,6 @@
202
80
  <arr name="last-components">
203
81
  <str>spellcheck</str>
204
82
  </arr>
205
-
206
- </requestHandler>
207
-
208
-
209
- <!-- Hydra Additions Start -->
210
-
211
- <requestHandler name="standard" class="solr.SearchHandler">
212
- <lst name="defaults">
213
- <str name="echoParams">explicit</str>
214
- </lst>
215
83
  </requestHandler>
216
84
 
217
85
  <requestHandler name="permissions" class="solr.SearchHandler" >
@@ -221,22 +89,28 @@
221
89
  <str name="rows">1</str>
222
90
  <str name="q">{!raw f=id v=$id}</str> <!-- use id=666 instead of q=id:666 -->
223
91
  <str name="fl">
224
- id,access_t,
225
- discover_access_group_t,discover_access_person_t,
226
- read_access_group_t,read_access_person_t,
227
- edit_access_group_t,edit_access_person_t,
228
- depositor_t,
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
92
+ id,
93
+ access_tsim,
94
+ discover_access_group_tsim,discover_access_person_tsim,
95
+ read_access_group_tsim,read_access_person_tsim,
96
+ edit_access_group_tsim,edit_access_person_tsim,
97
+ depositor_ti,
98
+ embargo_release_date_dtsi
99
+ inheritable_access_tsim,
100
+ inheritable_discover_access_group_tsim,inheritable_discover_access_person_tsim,
101
+ inheritable_read_access_group_tsim,inheritable_read_access_person_tsim,
102
+ inheritable_edit_access_group_tsim,inheritable_edit_access_person_tsim,
103
+ inheritable_embargo_release_date_dtsi
235
104
  </str>
236
105
  </lst>
237
106
  </requestHandler>
238
-
239
- <!-- Hydra Additions End -->
107
+
108
+ <requestHandler name="standard" class="solr.SearchHandler">
109
+ <lst name="defaults">
110
+ <str name="echoParams">explicit</str>
111
+ <str name="defType">lucene</str>
112
+ </lst>
113
+ </requestHandler>
240
114
 
241
115
  <!-- for requests to get a single document; use id=666 instead of q=id:666 -->
242
116
  <requestHandler name="document" class="solr.SearchHandler" >
@@ -249,24 +123,10 @@
249
123
  </requestHandler>
250
124
 
251
125
 
252
-
253
- <!-- Spell Check
254
-
255
- The spell check component can return a list of alternative spelling
256
- suggestions.
257
-
258
- http://wiki.apache.org/solr/SpellCheckComponent
259
- -->
260
126
  <searchComponent name="spellcheck" class="solr.SpellCheckComponent">
261
-
262
127
  <str name="queryAnalyzerFieldType">textSpell</str>
263
-
264
- <!-- Multiple "Spell Checkers" can be declared and used by this
265
- component
266
- -->
267
-
268
- <!-- a spellchecker built from a field of the main index, and
269
- written to disk
128
+ <!-- Multiple "Spell Checkers" can be declared and used by this component
129
+ (e.g. for title_spell field)
270
130
  -->
271
131
  <lst name="spellchecker">
272
132
  <str name="name">default</str>
@@ -274,26 +134,30 @@
274
134
  <str name="spellcheckIndexDir">./spell</str>
275
135
  <str name="buildOnOptimize">true</str>
276
136
  </lst>
277
- <lst name="spellchecker">
278
- <str name="name">author</str>
279
- <str name="field">author_spell</str>
280
- <str name="spellcheckIndexDir">./spell_author</str>
281
- <str name="accuracy">0.7</str>
282
- <str name="buildOnOptimize">true</str>
283
- </lst>
284
- <lst name="spellchecker">
285
- <str name="name">subject</str>
286
- <str name="field">subject_spell</str>
287
- <str name="spellcheckIndexDir">./spell_subject</str>
288
- <str name="accuracy">0.7</str>
289
- <str name="buildOnOptimize">true</str>
137
+ </searchComponent>
138
+
139
+ <requestHandler name="/replication" class="solr.ReplicationHandler" startup="lazy" />
140
+
141
+ <requestDispatcher handleSelect="true" >
142
+ <requestParsers enableRemoteStreaming="true" multipartUploadLimitInKB="2048" />
143
+ </requestDispatcher>
144
+
145
+ <requestHandler name="/analysis/field" startup="lazy" class="solr.FieldAnalysisRequestHandler" />
146
+ <requestHandler name="/update" class="solr.UpdateRequestHandler" />
147
+ <requestHandler name="/admin/" class="org.apache.solr.handler.admin.AdminHandlers" />
148
+
149
+ <requestHandler name="/admin/ping" class="solr.PingRequestHandler">
150
+ <lst name="invariants">
151
+ <str name="q">solrpingquery</str>
290
152
  </lst>
291
- <lst name="spellchecker">
292
- <str name="name">title</str>
293
- <str name="field">title_spell</str>
294
- <str name="spellcheckIndexDir">./spell_title</str>
295
- <str name="accuracy">0.7</str>
296
- <str name="buildOnOptimize">true</str>
153
+ <lst name="defaults">
154
+ <str name="echoParams">all</str>
297
155
  </lst>
298
- </searchComponent>
156
+ </requestHandler>
157
+
158
+ <!-- config for the admin interface -->
159
+ <admin>
160
+ <defaultQuery>search</defaultQuery>
161
+ </admin>
162
+
299
163
  </config>
@@ -1,4 +1,4 @@
1
1
  module HydraHead
2
- VERSION = "6.0.0.pre1"
2
+ VERSION = "6.0.0.pre2"
3
3
  end
4
4
 
@@ -54,7 +54,7 @@ describe CatalogController do
54
54
 
55
55
  describe "access controls" do
56
56
  before(:all) do
57
- fq = "read_access_group_t:public OR edit_access_group_t:public OR discover_access_group_t:public"
57
+ fq = "read_access_group_tsim:public OR edit_access_group_tsim:public OR discover_access_group_tsim:public"
58
58
  solr_opts = {:fq=>fq}
59
59
  response = Blacklight.solr.get('select', :params=> solr_opts)
60
60
  @public_only_results = Blacklight::SolrResponse.new(response, solr_opts)
@@ -12,7 +12,6 @@ describe Hydra::Controller::UploadBehavior do
12
12
  file_name = "Posted Filename.foo"
13
13
  helper.stub(:params).and_return( :Filedata=>[mock_file], :Filename=>file_name, "container_id"=>"hydrangea:2973" )
14
14
  mock_fa = mock("file asset")
15
- # mock_file.should_receive(:original_filename).and_return(file_name)
16
15
  helper.stub(:datastream_id).and_return('bar')
17
16
  mock_fa.should_receive(:add_file).with(mock_file, 'bar', file_name)
18
17
  helper.add_posted_blob_to_asset(mock_fa,mock_file, file_name) # this is the deprecated 2 argument method
@@ -23,7 +22,6 @@ describe Hydra::Controller::UploadBehavior do
23
22
  file_name = "Posted Filename.foo"
24
23
  helper.stub(:params).and_return( :Filedata=>[mock_file], :Filename=>file_name, "container_id"=>"hydrangea:2973" )
25
24
  mock_fa = mock("file asset")
26
- # mock_file.should_receive(:original_filename).and_return(file_name)
27
25
  mock_fa.should_receive(:add_file).with(mock_file, 'content', file_name)
28
26
  helper.add_posted_blob_to_asset(mock_fa,mock_file, file_name)
29
27
  end
@@ -31,7 +29,6 @@ describe Hydra::Controller::UploadBehavior do
31
29
  mock_file = mock("File")
32
30
  file_name = "Posted Filename.foo"
33
31
  helper.stub(:params).and_return( :Filedata=>[mock_file], :container_id=>"hydrangea:2973" )
34
- # mock_file.should_receive(:original_filename).and_return(file_name)
35
32
  mock_fa = mock("file asset")
36
33
  mock_fa.should_receive(:add_file).with(mock_file, 'content', file_name)
37
34
  helper.add_posted_blob_to_asset(mock_fa,mock_file, file_name)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hydra-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0.pre1
4
+ version: 6.0.0.pre2
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -67,7 +67,7 @@ dependencies:
67
67
  requirements:
68
68
  - - ! '>='
69
69
  - !ruby/object:Gem::Version
70
- version: '5.3'
70
+ version: 6.0.0.pre2
71
71
  type: :runtime
72
72
  prerelease: false
73
73
  version_requirements: !ruby/object:Gem::Requirement
@@ -75,7 +75,7 @@ dependencies:
75
75
  requirements:
76
76
  - - ! '>='
77
77
  - !ruby/object:Gem::Version
78
- version: '5.3'
78
+ version: 6.0.0.pre2
79
79
  - !ruby/object:Gem::Dependency
80
80
  name: RedCloth
81
81
  requirement: !ruby/object:Gem::Requirement
@@ -179,7 +179,7 @@ dependencies:
179
179
  requirements:
180
180
  - - '='
181
181
  - !ruby/object:Gem::Version
182
- version: 6.0.0.pre1
182
+ version: 6.0.0.pre2
183
183
  type: :runtime
184
184
  prerelease: false
185
185
  version_requirements: !ruby/object:Gem::Requirement
@@ -187,7 +187,7 @@ dependencies:
187
187
  requirements:
188
188
  - - '='
189
189
  - !ruby/object:Gem::Version
190
- version: 6.0.0.pre1
190
+ version: 6.0.0.pre2
191
191
  - !ruby/object:Gem::Dependency
192
192
  name: sqlite3
193
193
  requirement: !ruby/object:Gem::Requirement