<?xml version="1.0" encoding="UTF-8"?>
<article>
  <body>[acts_as_searchable](http://rubyforge.org/projects/ar-searchable)
is one of the most useful plugins which's enabling us to add a fulltext search feature to our models/resources easily.

Unfortunately, it is lacking an interface to the features of searching by similarity provided by
[HyperEstraier](http://hyperestraier.sourceforge.net/).

So I wrote some codes to add an interface to exploit it.
This is
[acts\_as\_searchable\_with\_similarity](http://agilewebdevelopment.com/plugins/acts_as_searchable_with_similarity).

**How to use?**

Here is an example.

**app/models/article.rb**

rails&gt;&gt;
class Article &lt; ActiveRecord::Base
  acts_as_searchable
end

Article.similarity_search(target_article,  :limit =&gt; 5)
&lt;&lt;--</body>
  <cached-tag-list>rails plugin search english</cached-tag-list>
  <comments-count type="integer">0</comments-count>
  <created-at type="datetime">2007-11-29T23:37:26+00:00</created-at>
  <daily-archive-id type="integer">245</daily-archive-id>
  <filter-type>blue_stole</filter-type>
  <id type="integer">232</id>
  <monthly-archive-id type="integer">6</monthly-archive-id>
  <pdf-digest nil="true"></pdf-digest>
  <permalink nil="true"></permalink>
  <published-at type="datetime">2007-11-29T23:37:00+00:00</published-at>
  <secret>9a33be64-44ee-4bc9-b411-2ea2f404dc1e</secret>
  <title>acts_as_searchable_with_similarity</title>
  <updated-at type="datetime">2008-10-22T20:08:39+00:00</updated-at>
  <user-id type="integer">1</user-id>
</article>
