Class: Solr::Request::DefaultNodeSelectionStrategy
- Inherits:
-
NodeSelectionStrategy
- Object
- NodeSelectionStrategy
- Solr::Request::DefaultNodeSelectionStrategy
- Defined in:
- lib/solr/request/default_node_selection_strategy.rb
Instance Attribute Summary
Attributes inherited from NodeSelectionStrategy
Instance Method Summary collapse
Methods inherited from NodeSelectionStrategy
Constructor Details
This class inherits a constructor from Solr::Request::NodeSelectionStrategy
Instance Method Details
#call ⇒ Object
4 5 6 7 |
# File 'lib/solr/request/default_node_selection_strategy.rb', line 4 def call urls = Solr.active_nodes_for(collection: collection_name) map_urls_to_collections(urls).shuffle end |