Plug into HyperEstraier with acts_as_searchable

Patrick Lenz has announced his acts_as_searchable plugin which integrates ActiveRecord models with HyperEstraier, an open source fulltext search engine.

It’s available as a gem so you can just do sudo gem install acts_as_searchable.

You can then take a look at the API docs, which provide a few examples.

Full text searching just got as simple as:


class Article < ActiveRecord::Base
acts_as_searchable
end

Article.fulltext_search(‘biscuits AND gravy’)

blog comments powered by Disqus