Sha256: e2ada7f104bdaf7017636c4c94e3a6235b750fab347fcca50c5df98937c484c0

Contents?: true

Size: 786 Bytes

Versions: 2

Compression:

Stored size: 786 Bytes

Contents

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

* [sunspot](http://github.com/outoftime/sunspot)
* [sunspot_rails](http://github.com/outoftime/sunspot/tree/master/sunspot_rails/)

Copyright
----

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sunspot_mongoid-0.4.1 README.md
sunspot_mongoid-0.4.0 README.md