mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user