Module: SimpleSolrClient::Core::Admin
- Included in:
- SimpleSolrClient::Core
- Defined in:
- lib/simple_solr_client/core/admin.rb
Instance Method Summary collapse
-
#commit ⇒ Object
Send a commit command.
-
#optimize ⇒ Object
Send an optimize command.
-
#reload ⇒ Object
Reload the core (for when you’ve changed the schema, solrconfig, synonyms, etc.) Make sure to mark the schema as dirty!.
-
#unload ⇒ Object
Unload the current core and delete all its files.
Instance Method Details
#commit ⇒ Object
Send a commit command
5 6 7 8 |
# File 'lib/simple_solr_client/core/admin.rb', line 5 def commit update({'commit' => {}}) self end |
#optimize ⇒ Object
Send an optimize command
12 13 14 15 |
# File 'lib/simple_solr_client/core/admin.rb', line 12 def optimize update({"optimize" => {}}) self end |
#reload ⇒ Object
Reload the core (for when you’ve changed the schema, solrconfig, synonyms, etc.) Make sure to mark the schema as dirty!
20 21 22 23 |
# 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 ⇒ Object
Unload the current core and delete all its files
27 28 29 |
# 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 |