Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A Sunspot wrapper for Mongoid. **No longer maintained!**
Ruby
branch: master

Merge pull request #13 from antonr/master

uninitialized constant BSON::ObjectId
latest commit fb4cf0c701
@jugyo authored
Failed to load latest commit information.
examples changed method name to 'searchable' from 'sunspot_setup'
lib
test changed method name to 'searchable' from 'sunspot_setup'
.document Initial commit to sunspot_mongoid.
.gitignore Gemspec
LICENSE Initial commit to sunspot_mongoid.
README.md fix README
Rakefile gem.add_development_dependency "rr"
VERSION Bump minor version
init.rb Since sunspot_rails is required, don't need to add anything additiona…
sunspot_mongoid.gemspec Regenerate gemspec for version 0.4.1

README.md

sunspot_mongoid

A Sunspot wrapper for Mongoid.

Install

gem install sunspot_mongoid

Examples

class Post
  include Mongoid::Document
  field :title

  include Sunspot::Mongoid
  searchable do
    text :title
  end
end

For Rails3

as gem:

add a gem to Gemfile as following,

gem 'sunspot_mongoid'

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/jugyo/sunspot_mongoid.git

Links

Copyright

Copyright (c) 2010 jugyo. See LICENSE for details.

Something went wrong with that request. Please try again.