geoblacklight 1.0.1 → 1.0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5cbe25203c73d542b897ad3d556f55848632394c
4
- data.tar.gz: 72c74184a3184e3307c32dd6abfe405f7790b3a4
3
+ metadata.gz: 1b5f2c417b7e8c11d65f0e3819b17bf6ac266fb3
4
+ data.tar.gz: 555901edd70f1d935fb07a136054a55e6fd4eedf
5
5
  SHA512:
6
- metadata.gz: a7edd50a9275357113347cf2965d590641254cbb36280dddc8bba6aee9ec41b609f0bc1bf68a26815dfafa9351eadf4cbe9a6f169c12d249757be25682a77053
7
- data.tar.gz: 1b9b2064a3503c9a970fed6dd7f9c63ef1d82cc235da3e9a1bb115ab00202f7b8bd50fb2e0c195c491e1e3a7945591016d742feb9ca9731a53b62db422672e5f
6
+ metadata.gz: 2ac6496f588232c50468f0176a1bccb49b01b9aa40b3aaa7bb0c2bdddf254cca5362a79431fccf77e70512f53e00e2e981698c618a2d9482f9d0f60689a1f9b3
7
+ data.tar.gz: 26d04d043092d03618625a3cfec1f79597123f0d0a2659820d1f7ab219c04a5b6c415e93286c1c055bdc1b2b47a882759cab2a0302533cd0593f7c8a22d712a2
@@ -20,7 +20,7 @@
20
20
 
21
21
  var GeoBlacklight = L.Class.extend({
22
22
  statics: {
23
- __version__: '1.0.1',
23
+ __version__: '1.0.2',
24
24
 
25
25
  debounce: function(fn, delay) {
26
26
  var timeout = null;
@@ -14,10 +14,6 @@
14
14
  }
15
15
  }
16
16
 
17
- .home-facet-link {
18
-
19
- }
20
-
21
17
  .category-block {
22
18
  @extend .col-md-6;
23
19
  @extend .text-center;
@@ -1,3 +1,3 @@
1
1
  module Geoblacklight
2
- VERSION = '1.0.1'.freeze
2
+ VERSION = '1.0.2'.freeze
3
3
  end
@@ -7,17 +7,8 @@ namespace :geoblacklight do
7
7
  desc 'Configures Solr for local jetty instance'
8
8
  task :configure_solr do
9
9
  root = Gem::Specification.find_by_name('geoblacklight').gem_dir rescue '.'
10
- [
11
- {
12
- src: "schema/solr/conf/schema.xml",
13
- file: 'schema.xml'
14
- },
15
- {
16
- src: "schema/solr/conf/solrconfig.xml",
17
- file: 'solrconfig.xml'
18
- }
19
- ].each do |item|
20
- FileUtils.cp File.join(root, item[:src]), "jetty/solr/blacklight-core/conf/#{item[:file]}", verbose: true
21
- end
10
+ FileUtils.cp Dir.glob(File.join(root, 'schema', 'solr', 'conf', '*.*')),
11
+ 'jetty/solr/blacklight-core/conf/',
12
+ verbose: true
22
13
  end
23
14
  end
@@ -172,7 +172,7 @@
172
172
  "items": {
173
173
  "type": "string"
174
174
  },
175
- "description": "Holding dataset for the layer, such as the name of a collection. *Optional*",
175
+ "description": "Holding entity for the layer, such as the title of a collection. *Optional*",
176
176
  "example": "Village Maps of India"
177
177
  },
178
178
  "georss_point_s": {
@@ -19,7 +19,7 @@ A GIS data layer. See [this example](https://github.com/OpenGeoMetadata/edu.stan
19
19
  | **dc_subject_sm** | *array* | Subjects for the layer, preferrably in a controlled vocabulary. *Optional* | `"Census, Human settlements"` |
20
20
  | **dc_title_s** | *string* | Title for the layer. | `"My Title"` |
21
21
  | **dc_type_s** | *string* | Resource type of the layer, using DCMI Type Vocabulary, usually a `Dataset`. *Optional*<br/> **one of:**`"Dataset"` or `"Image"` or `"PhysicalObject"` | `"Dataset"` |
22
- | **dct_isPartOf_sm** | *array* | Holding dataset for the layer, such as the name of a collection. *Optional* | `"Village Maps of India"` |
22
+ | **dct_isPartOf_sm** | *array* | Holding entity for the layer, such as the title of a collection. *Optional* | `"Village Maps of India"` |
23
23
  | **dct_issued_dt** | *date-time* | Issued date for the layer, using XML Schema dateTime format (YYYY-MM-DDThh:mm:ssZ). *Optional* | `"2015-01-01T12:00:00Z"` |
24
24
  | **dct_provenance_s** | *string* | Institution who holds the layer. | `"Stanford"` |
25
25
  | **dct_references_s** | *string* | External resources that are available for the layer. The value is a JSON hash where each key is a URI for the protocol or format, and the value is the URL to the external resource. See `dct_references_s` [detailed documentation](http://geoblacklight.org/tutorial/2015/02/09/geoblacklight-overview.html) | `"{ ... }"` |
@@ -35,5 +35,3 @@ A GIS data layer. See [this example](https://github.com/OpenGeoMetadata/edu.stan
35
35
  | **solr_geom** | *string* | Bounding box of the layer as a ENVELOPE WKT (from the CQL standard) using coordinates in (West, East, North, South) order. Note that this field is indexed as a Solr spatial (RPT) field.<br/> **pattern:** `ENVELOPE(.*,.*,.*,.*)` | `"ENVELOPE(76.76, 84.76, 19.91, 12.62)"` |
36
36
  | **solr_year_i** | *integer* | *DEPRECATED* (only used by the Blacklight range plugin, not core GeoBlacklight, and generally you want a multi-valued field here): *Derived from* `dct_temporal_sm`. Year for which layer is valid and only a single value. Note that this field is indexed as a Solr numeric field. | `"1989"` |
37
37
  | **uuid** | *string* | *DEPRECATED* (use `dc_identifier_s`): Unique identifier for layer that is globally unique. | `"http://purl.stanford.edu/vr593vj7147"` |
38
-
39
-
@@ -1,5 +1,5 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <schema name="geoblacklight-schema" version="1.5">
2
+ <schema name="geoblacklight-schema" version="1.6">
3
3
  <uniqueKey>layer_slug_s</uniqueKey>
4
4
  <fields>
5
5
  <field name="_version_" type="long" stored="true" indexed="true"/>
@@ -39,6 +39,10 @@
39
39
  termVectors="true" termPositions="true" termOffsets="true"/>
40
40
  <dynamicField name="*_sort" type="text_sort" stored="false" indexed="true" multiValued="false"/>
41
41
 
42
+ <dynamicField name="*spell" type="textSpell" indexed="true" stored="false" multiValued="true" />
43
+
44
+ <dynamicField name="*suggest" type="textSuggest" indexed="true" stored="false" multiValued="true" />
45
+
42
46
  <!-- Spatial field types:
43
47
 
44
48
  Solr3:
@@ -58,9 +62,8 @@
58
62
 
59
63
  -->
60
64
  <dynamicField name="*_pt" type="location" stored="true" indexed="true"/>
61
- <dynamicField name="*_bbox" type="location_rpt" stored="true" indexed="true"/>
65
+ <dynamicField name="*_bbox" type="location_rpt" stored="true" indexed="true"/><!-- deprecated -->
62
66
  <dynamicField name="*_geom" type="location_rpt" stored="true" indexed="true"/>
63
- <!-- <dynamicField name="*_jts" type="location_jts" stored="true" indexed="true"/> -->
64
67
  </fields>
65
68
 
66
69
  <types>
@@ -82,7 +85,7 @@
82
85
 
83
86
  <!-- A text field with defaults appropriate for English: it
84
87
  tokenizes with StandardTokenizer, removes English stop words
85
- (lang/stopwords_en.txt), down cases, protects words from protwords.txt, and
88
+ (stopwords_en.txt), down cases, protects words from protwords.txt, and
86
89
  finally applies Porter's stemming. The query time analyzer
87
90
  also applies synonyms from synonyms.txt. -->
88
91
  <fieldType name="text_en" class="solr.TextField" positionIncrementGap="100">
@@ -115,6 +118,27 @@
115
118
  </analyzer>
116
119
  </fieldType>
117
120
 
121
+ <!-- for spell checking -->
122
+ <fieldType name="textSpell" class="solr.TextField" positionIncrementGap="100" >
123
+ <analyzer>
124
+ <tokenizer class="solr.StandardTokenizerFactory"/>
125
+ <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords_en.txt"/>
126
+ <filter class="solr.StandardFilterFactory"/>
127
+ <filter class="solr.LowerCaseFilterFactory"/>
128
+ <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
129
+ </analyzer>
130
+ </fieldType>
131
+
132
+ <!-- for suggestions -->
133
+ <fieldType class="solr.TextField" name="textSuggest" positionIncrementGap="100">
134
+ <analyzer>
135
+ <tokenizer class="solr.KeywordTokenizerFactory"/>
136
+ <filter class="solr.StandardFilterFactory"/>
137
+ <filter class="solr.LowerCaseFilterFactory"/>
138
+ <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
139
+ </analyzer>
140
+ </fieldType>
141
+
118
142
  <!-- Spatial field types -->
119
143
  <fieldType name="location" class="solr.LatLonType" subFieldSuffix="_d"/>
120
144
 
@@ -123,14 +147,6 @@
123
147
  maxDistErr="0.000009"
124
148
  units="degrees"
125
149
  />
126
-
127
- <!-- JTS-enabled spatial predicates; requires JTS installation -->
128
- <!-- <fieldType name="location_jts" class="solr.SpatialRecursivePrefixTreeFieldType"
129
- spatialContextFactory="com.spatial4j.core.context.jts.JtsSpatialContextFactory"
130
- distErrPct="0.025"
131
- maxDistErr="0.000009"
132
- units="degrees"
133
- /> -->
134
150
  </types>
135
151
 
136
152
  <!-- for scoring formula -->
@@ -158,4 +174,19 @@
158
174
  <copyField source="dc_publisher_s" dest="dc_publisher_sort"/>
159
175
  <copyField source="dc_title_s" dest="dc_title_sort"/>
160
176
 
177
+ <!-- for spell checking -->
178
+ <copyField source="dc_title_s" dest="spell"/>
179
+ <copyField source="dc_creator_sm" dest="spell"/>
180
+ <copyField source="dc_publisher_s" dest="spell"/>
181
+ <copyField source="dct_provenance_s" dest="spell"/>
182
+ <copyField source="dc_subject_sm" dest="spell"/>
183
+ <copyField source="dct_spatial_sm" dest="spell"/>
184
+
185
+ <!-- for suggestions -->
186
+ <copyField source="dc_title_s" dest="suggest"/>
187
+ <copyField source="dc_creator_sm" dest="suggest"/>
188
+ <copyField source="dc_publisher_s" dest="suggest"/>
189
+ <copyField source="dct_provenance_s" dest="suggest"/>
190
+ <copyField source="dc_subject_sm" dest="suggest"/>
191
+ <copyField source="dct_spatial_sm" dest="suggest"/>
161
192
  </schema>
@@ -15,9 +15,9 @@
15
15
  See the License for the specific language governing permissions and
16
16
  limitations under the License.
17
17
  -->
18
- <!--
18
+ <!--
19
19
  For more details about configurations options that may appear in
20
- this file, see http://wiki.apache.org/solr/SolrConfigXml.
20
+ this file, see http://wiki.apache.org/solr/SolrConfigXml.
21
21
  -->
22
22
  <config>
23
23
  <luceneMatchVersion>4.7</luceneMatchVersion>
@@ -40,16 +40,16 @@
40
40
  </autoCommit>
41
41
  </updateHandler>
42
42
 
43
- <!-- realtime get handler, guaranteed to return the latest stored fields
44
- of any document, without the need to commit or open a new searcher. The current
43
+ <!-- realtime get handler, guaranteed to return the latest stored fields
44
+ of any document, without the need to commit or open a new searcher. The current
45
45
  implementation relies on the updateLog feature being enabled. -->
46
46
  <requestHandler name="/get" class="solr.RealTimeGetHandler">
47
47
  <lst name="defaults">
48
48
  <str name="omitHeader">true</str>
49
49
  </lst>
50
- </requestHandler>
51
-
52
- <requestHandler name="/replication" class="solr.ReplicationHandler" startup="lazy" />
50
+ </requestHandler>
51
+
52
+ <requestHandler name="/replication" class="solr.ReplicationHandler" startup="lazy" />
53
53
 
54
54
  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
55
55
  Query section - these settings control query time things like caches
@@ -147,7 +147,12 @@
147
147
  <str name="facet.field">dc_subject_sm</str>
148
148
  <str name="facet.field">layer_geom_type_s</str>
149
149
  <str name="facet.field">solr_year_i</str>
150
+
151
+ <str name="spellcheck">true</str>
150
152
  </lst>
153
+ <arr name="last-components">
154
+ <str>spellcheck</str>
155
+ </arr>
151
156
  </requestHandler>
152
157
 
153
158
  <requestHandler name="/update" class="solr.UpdateRequestHandler"/>
@@ -161,18 +166,65 @@
161
166
  <lst name="defaults">
162
167
  <str name="echoParams">all</str>
163
168
  </lst>
164
- <!-- An optional feature of the PingRequestHandler is to configure the
165
- handler with a "healthcheckFile" which can be used to enable/disable
169
+ <!-- An optional feature of the PingRequestHandler is to configure the
170
+ handler with a "healthcheckFile" which can be used to enable/disable
166
171
  the PingRequestHandler.
167
- relative paths are resolved against the data dir
172
+ relative paths are resolved against the data dir
168
173
  -->
169
174
  <str name="healthcheckFile">server-enabled.txt</str>
170
175
  </requestHandler>
171
-
172
- <requestHandler name="/analysis/field"
176
+
177
+ <requestHandler name="/analysis/field"
173
178
  startup="lazy"
174
179
  class="solr.FieldAnalysisRequestHandler" />
175
-
180
+
181
+ <searchComponent name="spellcheck" class="solr.SpellCheckComponent">
182
+ <!-- a spellchecker built from a field of the main index -->
183
+ <lst name="spellchecker">
184
+ <str name="name">default</str>
185
+ <str name="field">spell</str>
186
+ <str name="classname">solr.DirectSolrSpellChecker</str>
187
+ <!-- the spellcheck distance measure used, the default is the internal levenshtein -->
188
+ <str name="distanceMeasure">internal</str>
189
+ <!-- minimum accuracy needed to be considered a valid spellcheck suggestion -->
190
+ <float name="accuracy">0.5</float>
191
+ <!-- the maximum #edits we consider when enumerating terms: can be 1 or 2 -->
192
+ <int name="maxEdits">2</int>
193
+ <!-- the minimum shared prefix when enumerating terms -->
194
+ <int name="minPrefix">1</int>
195
+ <!-- maximum number of inspections per result. -->
196
+ <int name="maxInspections">5</int>
197
+ <!-- minimum length of a query term to be considered for correction -->
198
+ <int name="minQueryLength">4</int>
199
+ <!-- maximum threshold of documents a query term can appear to be considered for correction -->
200
+ <float name="maxQueryFrequency">0.01</float>
201
+ <!-- uncomment this to require suggestions to occur in 1% of the documents
202
+ <float name="thresholdTokenFrequency">.01</float>
203
+ -->
204
+ </lst>
205
+ </searchComponent>
206
+
207
+ <searchComponent name="suggest" class="solr.SuggestComponent">
208
+ <lst name="suggester">
209
+ <str name="name">mySuggester</str>
210
+ <str name="lookupImpl">FuzzyLookupFactory</str>
211
+ <str name="suggestAnalyzerFieldType">textSuggest</str>
212
+ <str name="buildOnCommit">true</str>
213
+ <str name="field">suggest</str>
214
+ </lst>
215
+ </searchComponent>
216
+
217
+ <requestHandler name="/suggest" class="solr.SearchHandler" startup="lazy">
218
+ <lst name="defaults">
219
+ <str name="suggest">true</str>
220
+ <str name="suggest.count">5</str>
221
+ <str name="suggest.dictionary">mySuggester</str>
222
+ </lst>
223
+ <arr name="components">
224
+ <str>suggest</str>
225
+ </arr>
226
+ </requestHandler>
227
+
176
228
  <!-- Legacy config for the admin interface -->
177
229
  <admin>
178
230
  <defaultQuery>*:*</defaultQuery>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geoblacklight
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Graves
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-07-30 00:00:00.000000000 Z
14
+ date: 2016-08-02 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: blacklight
@@ -385,7 +385,6 @@ files:
385
385
  - lib/tasks/geoblacklight.rake
386
386
  - schema/geoblacklight-schema.json
387
387
  - schema/geoblacklight-schema.md
388
- - schema/solr/conf/lang/stopwords_en.txt
389
388
  - schema/solr/conf/protwords.txt
390
389
  - schema/solr/conf/schema.xml
391
390
  - schema/solr/conf/solrconfig.xml
@@ -1,34 +0,0 @@
1
- # Standard english stop words taken from Lucene's StopAnalyzer
2
- a
3
- an
4
- and
5
- are
6
- as
7
- at
8
- be
9
- but
10
- by
11
- for
12
- if
13
- in
14
- into
15
- is
16
- it
17
- no
18
- not
19
- of
20
- on
21
- or
22
- such
23
- that
24
- the
25
- their
26
- then
27
- there
28
- these
29
- they
30
- this
31
- to
32
- was
33
- will
34
- with