Acts_as_ferret is a Rails plugin that brings the power of the Ferret search engine to Rails. Ferret is a Ruby port of the famous Lucene search engine.
Features
- High speed full text search across the contents of any Rails model class, without any hassles. The index will be kept up to date automagically while you work with your Rails model classes as usual.
- Each Model class calling
acts_as_ferretgets it’s own Ferret index on disk, but you can search multiple models at once using themulti_searchmethod. - Supports Rails’ single table inheritance mechanism (just declare
acts_as_ferretin the base class, and be able to search across all inheriting classes, see TypoWithFerret for an example) - Aaf is not limited to indexing the attributes of your model: You can tell it to index the result of any instance method of your model class.
- Further customization of the indexing process can be achieved by overriding the
to_docinstance method in your model class, which is supposed to return the Ferret document object to be stored in the index. - Use
my_model_instance#more_like_thisto retrieve objects having similar contents likemy_model_instance. Great for suggesting related pages to your readers, or related products to your customers.
Links
- Acts_as_ferret project page
- There’s also a page about how to use acts_as_ferret with the typo blogging engine.
- SVN Repository:
svn://projects.jkraemer.net/acts_as_ferret/ - The Ferret project page
Support acts_as_ferret
If you like acts_as_ferret and want to support it’s further development, you can do so in multiple ways:
- Aaf would not exist without Ferret, so support Ferret:
- buy the Ferret shortcut.
- donate - Dave invests a great deal of time in creating and maintaining that great library.
- Of course you can also support me:
- Hire me. I’ll be glad to help you integrating acts_as_ferret / Ferret in your project. Just drop me a line.
- Donate whatever amount you find suitable to my PayPal account:
- Do me (and everybody else) a favor and donate to the WWF or Greenpeace.
