Searching for Comparison Search

Hello all,
Please bear with me. I’m work on my third month with Ruby on Rails.

I’m looking to find or create a comparison search. It must take a small
paragraph and search another model column of the same name and return
only if the match is near 50% matching.

Any ideas?

I have found a matching gem called “amatch”. This has several methods
that I believe will help. They’ll return a percentage of the match.

I’m posting this to the Ruby discussion in hope someone may have worked
with this topic before.

Thank you for any help.

JohnM

John M. wrote:

Hello all,
Please bear with me. I’m work on my third month with Ruby on Rails.

I’m looking to find or create a comparison search. It must take a small
paragraph and search another model column of the same name and return
only if the match is near 50% matching.

Any ideas?

I have found a matching gem called “amatch”. This has several methods
that I believe will help. They’ll return a percentage of the match.

I’m posting this to the Ruby discussion in hope someone may have worked
with this topic before.

Thank you for any help.

JohnM

Text searches in databases usually get married with indexes, because
they spend so much time together. As far as Rails solutions go, you can
try ferret or sphinx, for instance… I think this should get you started
:wink:

Aldric,
Thanks for the reply.
I think you’re right.

John

Text searches in databases usually get married with indexes, because
they spend so much time together. As far as Rails solutions go, you can
try ferret or sphinx, for instance… I think this should get you started
:wink:

On Wed, Dec 16, 2009 at 8:38 AM, John M. [email protected]
wrote:

I have been informed that the production database will be Oracle.

You have my sympathies. :slight_smile:

Meanwhile, you might want to look into acts_as_solr.

FWIW,

I have been informed that the production database will be Oracle. That
eliminates Spinx.
I’ve heard and read that ferret is hard to work with.
Currently, I’ve been playing with Searchlogic but since I’m still new at
this, I’m look for experienced advice.

J