On Fri, 2008-01-04 at 11:26 -0500, Vince Wadhwani wrote:
> I've got a smallish site with not a ton of data at the moment.. but
> all that could change at some point so I'd like to plan with that in
> mind.  Currently I'm deployed on an nginx/mongrel stack that works
> quite well.  My site uses Ferret for search and it's ok.. the big
> problem is that some terms don't show up as expected.. especially if
> there are apostrophes, plurals, etc involved.
> 
> I've got two choices that I see... pony up the O'reilly mini-pdf and
> tweak ferret settings or scrap ferret and go with Sphinx (and hope it
> handles cases like this better).  I'm not sure how much time the
> latter would take me but, assuming that I'm going to spend somewhere
> around 40 hours anyway, which route would you all recommend?

Hi Vince,

They're different tools really.  I've found the flexibility of Ferret to
be really quite awesome. I can (in Ruby):

 * set boost values independently per field and per record
 * write custom text tokenizers, stemmers and stop lists (and use
different ones per field even)
 * highlight matches in results using the same engine that does the
searching
 * manage my own indexes, merging them at will, or just merging results
from them.
 * Index content generated on the fly, without having to store it in my
sql database (pull in all the associated tags for a post as you index it
for example).
 * Store original data in the index (though most people use it to index
an SQL database anyway).
 * other awesome stuff I can't remember right now.

Looking at the documentation for Sphinx (and it's usual usage, with
MySQL), many (if not all) of those features are missing.  But Sphinx is
reportedly quicker, supports distributed searching, and appears to be
undergoing more development that Ferret is at the moment so I think it
depends on your needs.

I'd recommend you ask on the Ferret mailing list about your search
result issues though - I'm surprised you're having problems with that.
I'm sure it can be solved.

John.
-- 
http://www.brightbox.co.uk - UK Ruby on Rails hosting


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Deploying Rails" group.
To post to this group, send email to rubyonrails-deployment@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-deployment?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to