On Mar 1, 2007, at 2:18 PM, mix wrote:
> hi, i've to choose a search engine for a medium-big site with a lot of
> searches and inserts at the same moment, do you suggest me something?
> i'm thinking about ferret, but i read that it has some problems with
> this king of "work" :(

I was lurking on this thread until Dave mentioned solrb.  First of  
all, I *love* Ferret.  Dave is amazing, and the performance is  
fantastic.  I have been groping for a Lucene in Ruby for a long time,  
even starting to tinker with it at a low-level pure Ruby way myself.

When Solr came along I knew this hit the sweet spot I was looking  
for.  It's all the greatness of Java Lucene, which is continually and  
rapidly being improved by many folks.  Above and beyond just wrapping  
Lucene behind an HTTP interface, it adds a ton of great features on  
top: caching, replication, faceting, highlighting, and an incredibly  
active community.  My expertise is in Java Lucene, so it felt right  
to me.  We've started a project called solr-ruby (used to be named  
solrb, but we renamed it to be more readable and pronounceable) which  
provides a Ruby API to Solr.  For example (from <http:// 
wiki.apache.org/solr/solr-ruby>):

   # connect to the solr instance
   conn = Connection.new('http://localhost:8983/solr', :autocommit  
=> :on)

   # add a document to the index
   conn.add(:id => 123, :title_text => 'Lucene in Action')

   # update the document
   conn.update(:id => 123, :title_text => 'Solr in Action')

   # print out the first hit in a query for 'action'
   response = conn.query('action')
   print response.hits[0]

   # iterate through all the hits for 'action'
   conn.query('action') do |hit|
     puts hit.inspect
   end

   # delete document by id
   conn.delete(123)

On top of solr-ruby, we've also been building Solr Flare, a Rails- 
based front-end that presents a faceted and full-text search  
interface, including integration with SIMILE Exhibit and Timeline,  
and eventually also having Atom feeds, saved searches, etc.

While I certainly don't want to steal any thunder from Ferret,  
because I think it is a great project, I feel compelled on this  
thread to bring up what I consider a top-notch alternative to Ferret.

It would be very interesting to run some benchmarks comparing the two  
at a few levels:  indexing speed, plain full-text query speed, and  
also most important to my work, the speed of generating facet  
information along with a query.

        Erik

_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to