sunspot_mongoid ==== A Sunspot wrapper for Mongoid. See also: [http://github.com/outoftime/sunspot/tree/master/sunspot_rails/](http://github.com/outoftime/sunspot/tree/master/sunspot_rails/) Example ---- require 'sunspot_mongoid' Mongoid.configure do |config| config.master = Mongo::Connection.new.db('sunspot-mongoid-test') end # model class Post include Mongoid::Document field :title include Sunspot::Mongoid searchable do text :title end end # indexing Post.create(:title => 'foo') Post.create(:title => 'foo bar') Post.create(:title => 'bar baz') # commit Sunspot.commit # search search = Post.search do keywords 'foo' end search.each_hit_with_result do |hit, post| p post end #=> # #=> # Use as Rails plugin ---- add gems to Gemfile as following, gem 'sunspot' gem 'sunspot_rails' and install sunspot_mongoid as rails plugin, rails plugin install git://github.com/jugyo/sunspot_mongoid.git Copyright ---- Copyright (c) 2010 jugyo. See LICENSE for details.