mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
11 lines
264 B
Ruby
11 lines
264 B
Ruby
require_dependency 'search'
|
|
|
|
class SearchController < ApplicationController
|
|
|
|
def query
|
|
search_result = Search.query(params[:term], current_user, params[:type_filter], SiteSetting.min_search_term_length)
|
|
render_json_dump(search_result.as_json)
|
|
end
|
|
|
|
end
|