Class: Solr::Commit::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/solr/commit/request.rb

Constant Summary collapse

PATH =
'/update'.freeze

Instance Method Summary collapse

Instance Method Details

#run(open_searcher: true, optimize: false, runner_options: nil) ⇒ Object



6
7
8
9
10
# File 'lib/solr/commit/request.rb', line 6

def run(open_searcher: true, optimize: false, runner_options: nil)
  http_request = build_http_request(open_searcher, optimize)
  options = default_runner_options.merge(runner_options || {})
  Solr::Request::Runner.call(request: http_request, **options)
end