mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
fixed 项目搜索先es search 中文
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user