Sha256: 7e2d5082ba374e11a8e65e465419d7da3eff2247bbf49f98a8e2a8ddbd3f498e

Contents?: true

Size: 391 Bytes

Versions: 1

Compression:

Stored size: 391 Bytes

Contents

require 'sunspot_rails' if defined?(Sunspot)
Dir[File.join(File.dirname(__FILE__), 'extensions', 'solr_adapter', '*.rb')].each {|file| require file }

module Georgia
  module Indexer
    class SolrAdapter

      # Delegate search_index to the model
      # Search method is taken by Sunspot
      def search model, params
        model.search_index model, params
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
georgia-0.7.5 lib/georgia/indexer/solr_adapter.rb