FEATURE: increase search expansion to 50 results

refactor search code to deal with proper objects
use proper serializers, test the controllers
This commit is contained in:
Sam
2014-09-02 19:15:08 +10:00
parent b04a52676e
commit 4f09d552ed
13 changed files with 261 additions and 205 deletions

View File

@@ -36,7 +36,8 @@ class SearchController < ApplicationController
end
search = Search.new(params[:term], search_args.symbolize_keys)
render_json_dump(search.execute.as_json)
result = search.execute
render_serialized(result, GroupedSearchResultSerializer, :result => result)
end
end