Module: Solr::Cloud::HelperMethods

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

Instance Method Summary collapse

Instance Method Details

#cloud_active_nodes_for(collection:) ⇒ Object



6
7
8
# File 'lib/solr/cloud/helper_methods.rb', line 6

def cloud_active_nodes_for(collection:)
  collections_state_manager.active_nodes_for(collection: collection)
end

#cloud_enabled?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/solr/cloud/helper_methods.rb', line 18

def cloud_enabled?
  cloud_configuration.cloud_enabled?
end

#enable_solr_cloud!Object



22
23
24
# File 'lib/solr/cloud/helper_methods.rb', line 22

def enable_solr_cloud!
  cloud_configuration.enable_solr_cloud!(configuration.cores.keys)
end

#leader_replica_node_for(collection:, shard:) ⇒ Object



10
11
12
# File 'lib/solr/cloud/helper_methods.rb', line 10

def leader_replica_node_for(collection:, shard:)
  collections_state_manager.leader_replica_node_for(collection: collection, shard: shard)
end

#shards_for(collection:) ⇒ Object



14
15
16
# File 'lib/solr/cloud/helper_methods.rb', line 14

def shards_for(collection:)
  collections_state_manager.shards_for(collection: collection)
end