discovery-indexer 0.9.9 → 0.9.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/version.rb +1 -1
- data/lib/writer/solr_client.rb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16c9549ca3901309319c5ab4094728c041d7487f
|
4
|
+
data.tar.gz: 3788454690db173e028b00a905b225828578ec9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 472cb47b4cfd9b49e6b5479749dbd25e85c8dc4cb0a9822c2723be09b477fdd5269d981dbe9b85e7c867e466b4a8b533c5e18cb4209a12853b34e908a49a19f5
|
7
|
+
data.tar.gz: 90dcf65cbbc1fa2a57bad75ade34f32d20f77c35a3fbf69348c0df5517583d7eb79fd22bbea0c9ef7aac0cfb7760f3f68b16470303ec632492114a92af50d224
|
data/lib/version.rb
CHANGED
data/lib/writer/solr_client.rb
CHANGED
@@ -43,15 +43,15 @@ module DiscoveryIndexer
|
|
43
43
|
|
44
44
|
if is_delete
|
45
45
|
DiscoveryIndexer::Logging.logger.info "Deleting #{id} on attempt #{attempt}"
|
46
|
-
solr_connector.delete_by_id(id)
|
46
|
+
solr_connector.delete_by_id(id, :add_attributes => {:commitWithin => 10000})
|
47
47
|
elsif allow_update?(solr_connector) && doc_exists?(id, solr_connector)
|
48
48
|
DiscoveryIndexer::Logging.logger.info "Updating #{id} on attempt #{attempt}"
|
49
49
|
update_solr_doc(id, solr_doc, solr_connector)
|
50
50
|
else
|
51
51
|
DiscoveryIndexer::Logging.logger.info "Indexing #{id} on attempt #{attempt}"
|
52
|
-
solr_connector.add(solr_doc)
|
52
|
+
solr_connector.add(solr_doc, :add_attributes => {:commitWithin => 10000})
|
53
53
|
end
|
54
|
-
solr_connector.commit
|
54
|
+
#solr_connector.commit
|
55
55
|
DiscoveryIndexer::Logging.logger.info "Completing #{id} successfully on attempt #{attempt}"
|
56
56
|
end
|
57
57
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: discovery-indexer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ahmed AlSum
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-10-
|
12
|
+
date: 2015-10-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
@@ -178,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
178
178
|
version: '0'
|
179
179
|
requirements: []
|
180
180
|
rubyforge_project:
|
181
|
-
rubygems_version: 2.4.
|
181
|
+
rubygems_version: 2.4.8
|
182
182
|
signing_key:
|
183
183
|
specification_version: 4
|
184
184
|
summary: Shared library for the basic discovery indexing operation for Stanford DLSS.
|