Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a viable replacement for Searchlogic?

It appears that Searchlogic doesn't work with Rails 3. (Among other things, Ryan Bates mentioned in in one of his RailsCasts, and the last question in the Google Group is from 2010.)

So I'm looking for a replacement. I like the functionality where you craft the field names of a search form and have that get turned into a Search object and then you could get the results with @search.all or @search.paginate.

At first, Meta Where and Meta Search looked promising. But then I found this notification that "MetaWhere will not be updated to support 3.1". (I'm using Rails 3.2.2.)

The developer is proposing a library called "Ransack" as the replacement for MetaWhere.

OK, maybe. But before I dive into "Ransack," I thought I'd put the question out there: does anyone know of another library available with similar functionality to SearchLogic as I described above? (View form populates a Search object.)

like image 487
Ethan Avatar asked Nov 25 '25 03:11

Ethan


1 Answers

If you are using Rails 3.0 you should check out MetaSearch

If you are using Rails 3.1+ you should check out Ransack

Both are written by Ernie Miller.

like image 187
bcardarella Avatar answered Nov 26 '25 18:11

bcardarella