Search feature repaired
This commit is contained in:
parent
f940e96014
commit
f3a8b7c3a5
8 changed files with 60 additions and 29 deletions
|
|
@ -6,6 +6,13 @@ class PackagesController < ApplicationController
|
|||
@packages = @packages.text_search(params[:query])
|
||||
end
|
||||
|
||||
if params[:search]
|
||||
logger.debug "Searching for #{params[:search]}"
|
||||
#search_phrase = params[:search].split.join('&')
|
||||
#@packages = @packages.general_search([:name,:description], search_phrase, :language=>'english', :rank=>true)
|
||||
@packages = @packages.general_search(params[:search])
|
||||
end
|
||||
|
||||
# Limit the packages to those that have approved screenshots.
|
||||
# Also eager-load the screenshots.
|
||||
if params[:show]=='onlywith'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue