Sha256: 99279c82fbbf1b31e6b38b5f2824152422c24d1e7c9841aaccd969e15db06e07
Contents?: true
Size: 1.11 KB
Versions: 1
Compression:
Stored size: 1.11 KB
Contents
# Activesearch This gem allows any class to be indexed by the chosen fulltext search engine. ## Installation Add this line to your application's Gemfile: gem 'activesearch' And then execute: $ bundle Or install it yourself as: $ gem install activesearch ## Supported engines ###Mongoid This is not a fulltext search engine, but it's a good solution for those users that don't have access to anything else. It works by storing keywords taken from the specified fields and storing them in an Array field, which would be indexed. fts() method will return a Mongod::Criteria, so you can chain it with further scopes. ## Usage class SomeModel # [...] field definitions if needed include ActiveSearch::Engine # "Engine" being your chosen engine ie. "Mongoid" search_on :title, :body end SomeModel.fts("some words") # "fts" for full text search ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activesearch-0.0.1 | README.md |