Best search facility

Hi All,

this may over-lap with my recent ferret post, but I wondered if anyone
knew of the best way to add a search engine for rails on your site?

I’ve tried ferret, which seems a bit ‘‘hit n miss’’

Someone has also reccomeded paperclip.

In addition to this, where would I look to find the ability to add a
google contacts search facility? So - anyone can enter their account
and find people on my site who are also on gmail? Face book have this,
but dunno how it’s implemented, or where to start looking…

Any help appreciated as always

Solr is a better alternative in my experience. I’ve used
acts_as_solr.

On Jan 24, 2010, at 2:33 PM, RubyonRails_newbie wrote:

Hi All,

this may over-lap with my recent ferret post, but I wondered if anyone
knew of the best way to add a search engine for rails on your site?

I’ve tried ferret, which seems a bit ‘‘hit n miss’’

They all seem a bit “hit n miss”. That’s probably because they respond
best with large databases and you are probably working with a test
database. The three candidates I’ve used are:

  • Sphinx
  • Solr
  • Ferret

From my perspective, the best choice is the one that provides the most
pleasing results for you. Sphinx does very quick indexing, but not in
real time (i.e., as the row is inserted).

Someone has also reccomeded paperclip.

Paperclip is for adding attachments to existing models “as if” they were
just another column in the database. Storage of the attachment can be in
your filesystem, or Amazon S3, or pretty much anywhere else in the
cloud. You provide the implementation for the “anywhere else” part.

In addition to this, where would I look to find the ability to add a
google contacts search facility? So - anyone can enter their account
and find people on my site who are also on gmail? Face book have this,
but dunno how it’s implemented, or where to start looking…

Start here: http://code.google.com/apis/contacts/. Then look here:
http://github.com/mislav/contacts.

Good luck!

On 24 Jan 2010, at 23:49, steve ross wrote:

  • Sphinx
  • Solr
  • Ferret

We use Solr for all but one of our applications, using a custom
developed plugin (based on thinking sphinx), working like a charm on
our databases that need realtime indexing without delta indexes.
Ferret corrupted very often, Sphinx has the realtime problem.

Another option might be to look into MongoDB as a database, has some
pretty nifty indexing features too. Requires a bit of a different
mindset than normal relational databases though and might not be
suited for every project.

Best regards

Peter De Berdt

Cheers all,

I will dig into this now.

Appreciate ther feedback…

Here’s a tutorial I created for embedding google’s search engine for
in-site searching only.

http://www.ruby-forum.com/topic/201324

Hi, about the search, take a look at acts_as_solr_reloaded:

http://github.com/dcrec1/acts_as_solr_reloaded

Here it’s explained and there is a demo video:

http://www.diegocarrion.com/2010/01/18/thinkingsphinx-exits-enters-actsassolrreloaded/

About the contacts, take a look at this plugin:

http://github.com/dcrec1/contacts_rails

Hope that helps :slight_smile:

On Jan 24, 8:33 pm, RubyonRails_newbie [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs