Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails 3 full-text search options (gems, plugins, etc)

I was wondering if there were any suggestions for how to best roll with full text searching in your Rails 3 apps? Thinking Sphinx and acts_as_ferret aren't updated for Rails 3 yet, and even basic activerecord search helpers like Searchlogic also aren't there yet.

Any thoughts? Are you using any forked versions of the above gems that have been updated to Rails 3?

like image 336
shiftshane Avatar asked May 09 '10 21:05

shiftshane


4 Answers

Check out Sunspot for Solr

http://github.com/outoftime/sunspot

like image 142
Christos Avatar answered Oct 21 '22 18:10

Christos


Thinking Sphinx (ver. 2.x) should work with Rails 3 (http://freelancing-god.github.com/ts/en/rails3.html) and there is a Rails 3 branch in the official repository.

I'm just starting to use thinking sphinx in a Rails 3 project, and so far it seems to work fine for basic searching, although I'm having some challenges with acts_as_taggable_on.

like image 23
Gnomet Avatar answered Oct 21 '22 20:10

Gnomet


update complete change

I would go for Elasticsearch via Tire

  • super fast
  • scalable
  • configurable
  • super powerful

This is a good resource to start learning: http://exploringelasticsearch.com/book/searching-data/the-query-dsl-and-the-search-api.html

like image 8
Fabiano Soriani Avatar answered Oct 21 '22 20:10

Fabiano Soriani


Searchlogic was updated to work with Rails3, you can find the new version here: http://github.com/railsdog/searchlogic

Cheers

like image 1
sNiCKY Avatar answered Oct 21 '22 20:10

sNiCKY