Searching model and documents in Rails
Recovered 2026-07-13 from the Wayback Machine capture of 2010-08-01 of my first (Rails-based) blog. Original publication: 2009-09-28.
I have to implement a search facility for a rails application. Search should be done inside one model and inside files.
I found some links on this: http://blog.zmok.net/articles/2006/09/04/full-text-search-in-ruby-on-rails-2-mysql http://blog.zmok.net/articles/2006/10/18/full-text-search-in-ruby-on-rails-3-ferret http://blog.zmok.net/?s=Full+text+search+in+Ruby+on+Rails
Ferret seems to be able to search for files and acts_as_ferret allow to search into models, but how a search across both facilies could be done? It seems impossible to search across two indexes.
Sphinx/Ultrasphinx does not seems to be able to handle pdf, doc document indexing.
Solr/acts_as_solr is Java based.
Xapian/acts_as_xapian seems interesting and there are some ruby bindings.
Hyper Estraier/acts_as_searchable seenms also interesting