require 'logger' require 'active_support/cache' require 'multi_solr/version' require 'multi_solr/solr_filter_simple' require 'multi_solr/solr_filter_collection' require 'multi_solr/solr_filter_date' require 'multi_solr/solr_filter_date_range' require 'multi_solr/solr_filter_free_query' require 'multi_solr/filter_value_composite' require 'multi_solr/search_request' require 'multi_solr/search_result' require 'multi_solr/base_searcher' require 'multi_solr/single_core_handler' require 'multi_solr/timeline_core_handler' module MultiSolr @@logger = nil @@cache = nil def logger return Rails.logger if defined? Rails if @@logger.nil? @@logger = Logger.new($stdout) end @@logger end def cache return Rails.cache if defined? Rails if @@cache.nil? @@cache = ActiveSupport::Cache::MemoryStore.new end @@cache end module_function :logger, :cache end