Sha256: 957f8a8b448b56f1bb25dee0e86eca5c7409df016d34aab9a674e7ba905cae04

Contents?: true

Size: 357 Bytes

Versions: 2

Compression:

Stored size: 357 Bytes

Contents

module Georgia
  module Indexer
    module SolrAdapter
      extend Adapter

      require 'sunspot_rails' if defined?(Sunspot)

      class << self

        # 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
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
georgia-0.7.8 lib/georgia/indexer/solr_adapter.rb
georgia-0.7.7 lib/georgia/indexer/solr_adapter.rb