Module: Solr::HelperMethods

Included in:
Solr
Defined in:
lib/solr/helper_methods.rb

Instance Method Summary collapse

Instance Method Details

#active_nodes_for(collection:) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/solr/helper_methods.rb', line 3

def active_nodes_for(collection:)
  if cloud_enabled?
    cloud_active_nodes_for(collection: collection)
  elsif master_slave_enabled?
    master_slave_active_nodes_for(collection: collection)
  end
end