Reputation: 323
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?
Upvotes: 32
Views: 11975
Reputation: 8572
update complete change
I would go for Elasticsearch via Tire
This is a good resource to start learning: http://exploringelasticsearch.com/book/searching-data/the-query-dsl-and-the-search-api.html
Upvotes: 8
Reputation: 7344
For a solution without external dependencies, you can try https://github.com/dougal/acts_as_indexed
Upvotes: 1
Reputation: 447
I have branched and modified acts_as_ferret to pretty much work with rails 3 (ruby 1.8 and 1.9): https://github.com/brightchimp/acts_as_ferret
3 tests still fail so I suggest running them to see it they will affect your app (more like this, sorting, and pagination (as a result of sorting fail).
I have an outstanding pull request to merge the changes back into the original. In the meantime you can use my branch by specifying the git repo in your gem file:
gem 'acts_as_ferret', :git => 'git://github.com/brightchimp/acts_as_ferret.git'
The acts_as_ferret gem seemed to fall out of favour a while ago but I still use it. I'm not sure why, but it's worth considering whether it's the best option for any new apps.
Upvotes: 0
Reputation: 448
http://github.com/kannanr/acts_as_solr_reloaded
I've modified the code a bit to work with Rails 3... .
Let me know if it works/not...
Upvotes: 1
Reputation: 966
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.
Upvotes: 9
Reputation: 1843
Searchlogic was updated to work with Rails3, you can find the new version here: http://github.com/railsdog/searchlogic
Cheers
Upvotes: 1