class Solr::Request::Commit

Public Class Methods

new(options={}) click to toggle source
# File lib/solr/request/commit.rb, line 17
def initialize(options={})
  @wait_searcher = options[:wait_searcher] || true
  @wait_flush_option = options[:wait_flush_option] || false
end

Public Instance Methods

to_s() click to toggle source
# File lib/solr/request/commit.rb, line 22
def to_s
  e = Solr::XML::Element.new('commit')
  e.attributes['waitSearcher'] = @wait_searcher ? 'true' : 'false'
  e.to_s
end