module SimpleSolrClient::Core::Admin
Public Instance Methods
commit()
click to toggle source
Send a commit command @return self
# File lib/simple_solr_client/core/admin.rb, line 5 def commit update({'commit' => {}}) self end
optimize()
click to toggle source
Send an optimize command @return self
# File lib/simple_solr_client/core/admin.rb, line 12 def optimize update({"optimize" => {}}) self end
reload()
click to toggle source
Reload the core (for when you've changed the schema, solrconfig, synonyms, etc.) Make sure to mark the schema as dirty! @return self
# File lib/simple_solr_client/core/admin.rb, line 20 def reload get('admin/cores', {:force_top_level_url => true, :core => core, :action => 'RELOAD'}) self end
unload()
click to toggle source
Unload the current core and delete all its files @return The Solr response
# File lib/simple_solr_client/core/admin.rb, line 27 def unload get('admin/cores', {:force_top_level_url => true, :core => core, :action => 'UNLOAD', :deleteInstanceDir => true}) end