class Fluent::Solr::Request::Commit4

Public Class Methods

new(options={}) click to toggle source
# File lib/fluent/plugin/out_solr.rb, line 74
def initialize(options={})
  @wait_searcher = options[:wait_searcher] || true
  @soft_commit = options[:soft_commit] || false
end

Public Instance Methods

to_s() click to toggle source
# File lib/fluent/plugin/out_solr.rb, line 80
def to_s
  e = Solr::XML::Element.new('commit')
  e.attributes['waitSearcher'] = @wait_searcher ? 'true' : 'false'
  e.attributes['softCommit'] = @soft_commit ? 'true' : 'false'
  
  e.to_s
end