Class: Solr::Request::Commit4
- Inherits:
-
Update
- Object
- Update
- Solr::Request::Commit4
- Defined in:
- lib/fluent/plugin/out_solr.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Commit4
constructor
A new instance of Commit4.
- #to_s ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Commit4
Returns a new instance of Commit4.
74 75 76 77 |
# File 'lib/fluent/plugin/out_solr.rb', line 74 def initialize(={}) @wait_searcher = [:wait_searcher] || true @soft_commit = [:soft_commit] || false end |
Instance Method Details
#to_s ⇒ Object
80 81 82 83 84 85 86 |
# 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 |