search for: filter_for_search

Displaying 1 result from an estimated 1 matches for "filter_for_search".

2010 Dec 02
0
Thinking Sphinx sorting problem
...] @sort = params[:sort_by].to_i @filter = params[:filter_by].to_i application_ids = Application.search_for_ids(@searched, :select => "id, applicant_id", :group_by => ''applicant_id'', :group_function => :attr, :with => Application.filter_for_search(@filter, @season), :sort_mode => :extended, :order => Application::Search::SortBy::SPHINX[@sort], # this gives me sql string to sort by :per_page => 1000) @applicant_ids = Applicant.search_for_ids("@application_ids ''#{application_ids * ''|'&...