forked from Gitlink/forgeplus
fixed 项目搜索先es search 中文
This commit is contained in:
parent
63ea4808c9
commit
79dae01a69
|
@ -35,7 +35,7 @@ class Projects::ListQuery < ApplicationQuery
|
|||
def by_search(items)
|
||||
ids = Projects::ElasticsearchService.call(params[:search])
|
||||
if ids.present?
|
||||
items.visible.where(id: ids)
|
||||
items.visible.where(id: ids).by_name_or_identifier(params[:search])
|
||||
else
|
||||
items.visible.by_name_or_identifier(params[:search])
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue