Skip to content

Instantly share code, notes, and snippets.

@chadwpry
Created September 26, 2008 03:55
Show Gist options
  • Save chadwpry/13030 to your computer and use it in GitHub Desktop.
Save chadwpry/13030 to your computer and use it in GitHub Desktop.
@criteria = params[:criteria]
if @criteria.size > 1
@result = Page.multi_solr_search @criteria, :models => [Brand, Leader, Career, Release]
if @result.nil?
@result = "Sorry no results for your search."
end
else
@result = "Please refine your search using more specific keywords."
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment