lib/solr/request/node_selection_strategy.rb
module Solr
module Request
class NodeSelectionStrategy
attr_reader :collection_name
def self.call(collection_name)
new(collection_name).call
end
def initialize(collection_name)
@collection_name = collection_name
end
def call
raise "Not implemented"
end
private
def map_urls_to_collections(urls)
urls&.map { |u| File.join(u, collection_name.to_s) }
end
end
end
end