fluent-plugin-output-solr 0.4.2 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/fluent-plugin-output-solr.gemspec +1 -1
- data/lib/fluent/plugin/out_solr.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfe7878fa277adfcf88260844c0644e920689f95
|
4
|
+
data.tar.gz: 7d0861f10e57aa097232360b8ba2e2f742472972
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb64decb6d5289c6849c4fb1fbdd0997e4d5af9c6ccac53993ae34f7596773f40272ed841eaec7779e80778075ebdca938ce371918cb4860e7dd09b72874f5ba
|
7
|
+
data.tar.gz: 942db00d5ee2a095c63ac99fd7849b038347fa274535655c51b023b09ec0018293dedd83a6f3f679c2c195c7346669e94282ebb636954547ef4b748cdcf7926d
|
@@ -137,10 +137,10 @@ module Fluent
|
|
137
137
|
def update(documents)
|
138
138
|
if @mode == MODE_STANDALONE then
|
139
139
|
@solr.add documents, :params => {:commit => true}
|
140
|
-
log.
|
140
|
+
log.debug "Added %d document(s) to Solr" % documents.count
|
141
141
|
elsif @mode == MODE_SOLRCLOUD then
|
142
142
|
@solr.add documents, collection: @collection, :params => {:commit => true}
|
143
|
-
log.
|
143
|
+
log.debug "Update: Added %d document(s) to Solr" % documents.count
|
144
144
|
end
|
145
145
|
rescue Exception => e
|
146
146
|
log.warn "Update: An error occurred while indexing: #{e.message}"
|
@@ -156,7 +156,7 @@ module Fluent
|
|
156
156
|
end
|
157
157
|
|
158
158
|
unique_key = response['uniqueKey']
|
159
|
-
log.
|
159
|
+
log.debug "Unique key: #{unique_key}"
|
160
160
|
|
161
161
|
return unique_key
|
162
162
|
|
@@ -177,7 +177,7 @@ module Fluent
|
|
177
177
|
response['fields'].each do |field|
|
178
178
|
fields.push(field['name'])
|
179
179
|
end
|
180
|
-
log.
|
180
|
+
log.debug "Fields: #{fields}"
|
181
181
|
|
182
182
|
return fields
|
183
183
|
|