discovery-indexer 0.9.3 → 0.9.4
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 +5 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 782083854e48dc2d4eb84129fa0be8220b744d61
|
4
|
+
data.tar.gz: 2254225e0ae86615d18df5740897befbfa21bee3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: adbf9e6bf24966429b5d123188e380ce62b3f2f8a59862828e7fb809e959161bb0f0f8e13a86a8068afad85cc799c969675556c7e2528590f0854b75cc404773
|
7
|
+
data.tar.gz: 7dec7f7b0bdfd595a977304cd3a3db30a4dfa52d049a12709b40da7b163857d9bb50ff391dc60010a3f22396fdfa4bf6ab88cc53b179d0918a90fe0cc2b0d4a2
|
data/lib/version.rb
CHANGED
data/lib/writer/solr_client.rb
CHANGED
@@ -41,16 +41,18 @@ module DiscoveryIndexer
|
|
41
41
|
DiscoveryIndexer::Logging.logger.debug "Attempt #{attempt} for #{id}"
|
42
42
|
|
43
43
|
if is_delete
|
44
|
+
DiscoveryIndexer::Logging.logger.info "Deleting #{id} on attempt #{attempt}"
|
44
45
|
solr_connector.delete_by_id(id)
|
45
|
-
DiscoveryIndexer::Logging.logger.info "Successfully deleted #{id} on attempt #{attempt}"
|
46
46
|
elsif allow_update?(solr_connector) && doc_exists?(id,solr_connector)
|
47
|
+
DiscoveryIndexer::Logging.logger.info "Updating #{id} on attempt #{attempt}"
|
47
48
|
update_solr_doc(id,solr_doc,solr_connector)
|
48
|
-
DiscoveryIndexer::Logging.logger.info "Successfully updated #{id} on attempt #{attempt}"
|
49
49
|
else
|
50
|
+
DiscoveryIndexer::Logging.logger.info "Indexing #{id} on attempt #{attempt}"
|
50
51
|
solr_connector.add(solr_doc)
|
51
|
-
DiscoveryIndexer::Logging.logger.info "Successfully indexed #{id} on attempt #{attempt}"
|
52
52
|
end
|
53
53
|
solr_connector.commit
|
54
|
+
DiscoveryIndexer::Logging.logger.info "Completing #{id} successfully on attempt #{attempt}"
|
55
|
+
|
54
56
|
end
|
55
57
|
end
|
56
58
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ahmed AlSum
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|