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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 93f05df8dfe2ec4cc27b0aeac78404c0e6057649
4
- data.tar.gz: 7b885d7eba120bf651346629a5cc36ff49d8f97f
3
+ metadata.gz: 16c9549ca3901309319c5ab4094728c041d7487f
4
+ data.tar.gz: 3788454690db173e028b00a905b225828578ec9f
5
5
  SHA512:
6
- metadata.gz: 10d1f654b04103b0bd3db50f036d88976845cea7c96cb361469e250d32715aec08aab33e5fef4cf43df8e044c0f90b3b121eccd92f09bf2f5b8822821e5526db
7
- data.tar.gz: 9e6d5d0ce1811532e4754cdbc2aa7191e76e68a1a1a0e066e0d322dd95a7fefd82eadc454ac7db1f11c896bfa754630101a227c7eb5ed19eacda8856718d27c7
6
+ metadata.gz: 472cb47b4cfd9b49e6b5479749dbd25e85c8dc4cb0a9822c2723be09b477fdd5269d981dbe9b85e7c867e466b4a8b533c5e18cb4209a12853b34e908a49a19f5
7
+ data.tar.gz: 90dcf65cbbc1fa2a57bad75ade34f32d20f77c35a3fbf69348c0df5517583d7eb79fd22bbea0c9ef7aac0cfb7760f3f68b16470303ec632492114a92af50d224
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module DiscoveryIndexer
2
- VERSION = '0.9.9'
2
+ VERSION = '0.9.10'
3
3
  end
@@ -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.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-01 00:00:00.000000000 Z
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.5
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.