search_solr_tools 6.3.0 → 6.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +2 -3
- data/lib/search_solr_tools/harvesters/base.rb +3 -3
- data/lib/search_solr_tools/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 310dba4a749b285756284729fe320c2344ac345c3251225dc1a46cc4c0f38d79
|
4
|
+
data.tar.gz: 98a397d862c73f27b9554560c55f2132f6d3211018c4cbe76a98f501cac2d5d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d02152bd10e9bc3ea59d6a2a8448ed2ab63da49db35dc0b23dbf27236f85253987169eaefbe2a3da3e527f9d63d11bdab08d58b3ebb9673579daebbdb8de6097
|
7
|
+
data.tar.gz: 3cc3e2199432b47dd02a1e45238c8405821673c808cd83392ebda9837890f949b193f9267b3afbd760f8449490ef5e97a911ad4c97dd856081307ba7f73095b4
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## v6.4.0 (2023-08-14)
|
2
|
+
|
3
|
+
- Fixed a bug with the sanitization, which was trying to modify the
|
4
|
+
string directly (causing problems with frozen strings). Changed to
|
5
|
+
return a new, sanitized string.
|
6
|
+
|
1
7
|
## v6.3.0 (2023-07-24)
|
2
8
|
|
3
9
|
- Update Rubocop configuration to actually run against files, and make
|
data/README.md
CHANGED
@@ -210,6 +210,5 @@ license is included in the file COPYING.
|
|
210
210
|
|
211
211
|
Andy Grauch, Brendan Billingsley, Chris Chalstrom, Danielle Harper, Ian
|
212
212
|
Truslove, Jonathan Kovarik, Luis Lopez, Miao Liu, Michael Brandt, Stuart Reed,
|
213
|
-
Julia Collins, Scott Lewis
|
214
|
-
|
215
|
-
Ice Data Center. Software.
|
213
|
+
Julia Collins, Scott Lewis (2023): Arctic Data Explorer SOLR Search software tools.
|
214
|
+
The National Snow and Ice Data Center. Software. https://doi.org/10.7265/n5jq0xzm
|
@@ -90,9 +90,9 @@ module SearchSolrTools
|
|
90
90
|
|
91
91
|
def sanitize_data_centers_constraints(query_string)
|
92
92
|
# Remove lucene special characters, preserve the query parameter and compress whitespace
|
93
|
-
query_string.gsub
|
94
|
-
query_string.gsub
|
95
|
-
query_string.gsub
|
93
|
+
query_string = query_string.gsub(/[:&|!~\-\(\)\{\}\[\]\^\*\?\+]+/, ' ')
|
94
|
+
query_string = query_string.gsub('data_centers ', 'data_centers:')
|
95
|
+
query_string = query_string.gsub('source ', 'source:')
|
96
96
|
query_string.squeeze(' ').strip
|
97
97
|
end
|
98
98
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: search_solr_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.
|
4
|
+
version: 6.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Chalstrom
|
@@ -14,7 +14,7 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date: 2023-
|
17
|
+
date: 2023-08-14 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: ffi-geos
|