sunspot_mongomapper
A Sunspot wrapper for MongoMapper based on the excellent wrapper for Mongoid written by jugyo.
Special thanks to @peterlind for submitting some crucial fixes to Sunspot Mongoid that I was able to adapt for Sunspot MongoMapper.
Install
gem install sunspot_mongomapper
Examples
class Post
include MongoMapper::Document
key :title, String
include Sunspot::MongoMapper
searchable do
text :title
end
end
For Rails3
as gem:
add a gem to Gemfile as following,
gem 'sunspot_mongomapper'
as 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/sylvainsf/sunspot_mongomapper.git
Links
Copyright
Copyright (c) 2012 sylvainsf. See LICENSE for details.