search_solr_tools 3.3.1 → 3.3.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ede056ad3f242ee3181914e874335216920d6fb
|
4
|
+
data.tar.gz: 778b003b040565581be421b43cccfb49f4086952
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e9665f5671a2b1f195ec51902d396dd302b262dd848776259db3ba176e6eea53f716f4d1557ca6e8cc1d3954dc5034ae7d66664faa25db112b0a78c12f9733f
|
7
|
+
data.tar.gz: 3a632303193cec2b4784dce4cf0311ba69826b6d1b00c8cbe8da43748bce11434299cc378fdff507411b5003f943da37326b880d860118c51319d849c6f7a90a
|
data/CHANGELOG.md
CHANGED
@@ -90,7 +90,7 @@ module SearchSolrTools
|
|
90
90
|
|
91
91
|
# Some of the docs will cause Solr to crash - CPU goes to 195% with `top` and it
|
92
92
|
# doesn't seem to recover.
|
93
|
-
return success
|
93
|
+
return success if content_type == XML_CONTENT_TYPE && !doc_valid?(doc)
|
94
94
|
|
95
95
|
doc_serialized = get_serialized_doc(doc, content_type)
|
96
96
|
|
@@ -42,12 +42,14 @@ module SearchSolrTools
|
|
42
42
|
# To get around this I'd prefer to make assumptions about the token and let it break if
|
43
43
|
# they change the formatting. For now, all fields other than offset should be able to be
|
44
44
|
# assumed to remain constant.
|
45
|
+
# glewis 2016-01-15: It broke, offset has quotes around it, so I updated the regex to account for
|
46
|
+
# the possibility, including '"' or '"'
|
45
47
|
# If the input is empty, then we are done - return an empty string, which is checked for
|
46
48
|
# in the harvest loop.
|
47
49
|
def format_resumption_token(resumption_token)
|
48
50
|
return '' if resumption_token.empty?
|
49
51
|
|
50
|
-
resumption_token =~ /offset
|
52
|
+
resumption_token =~ /offset(?:"|")?:(\d+)/
|
51
53
|
offset = Regexp.last_match(1)
|
52
54
|
|
53
55
|
{
|
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: 3.3.
|
4
|
+
version: 3.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Chalstrom
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date:
|
15
|
+
date: 2016-01-14 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: iso8601
|
@@ -347,7 +347,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
347
347
|
version: '0'
|
348
348
|
requirements: []
|
349
349
|
rubyforge_project:
|
350
|
-
rubygems_version: 2.4.
|
350
|
+
rubygems_version: 2.4.5.1
|
351
351
|
signing_key:
|
352
352
|
specification_version: 4
|
353
353
|
summary: Tools to harvest and manage various scientific dataset feeds in a Solr instance.
|