Thursday, April 6, 2006

Plug into HyperEstraier with acts_as_searchable

Posted by marcel

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

Article.fulltext_search(‘biscuits AND gravy’)
</pre>