#26 ✓resolved

Feature Request - new_search to take ActiveRecord options? (Like :include)

Reported by omarvelous | November 16th, 2008 @ 06:19 PM

I recently updated to the gem from a git cloned version of Searchlogic, when it was Searchgasm. I was in that version able to do the following..

@all_people = Person.all :include => {:profile => [:main_photo]}
@search = @all_people.new_search(params[:search])
@people, @people_count = @search.all, @search.count

However now I get the following error: undefined method new_search' for #<Array:0x33c3798>

Ok.... But this (eager loading) is still not supported

@search = Person.new_search(params[:search], :include => {:profile => [:main_photo])
@people, @people_count = @search.all, @search.count

Any chance that this will be implemented?

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Provides common named scopes and object based searching.

People watching this ticket