mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-24 13:45:44 +08:00
fixed 项目搜索先es search 中文
This commit is contained in:
@@ -35,7 +35,7 @@ class Projects::ListQuery < ApplicationQuery
|
|||||||
def by_search(items)
|
def by_search(items)
|
||||||
ids = Projects::ElasticsearchService.call(params[:search])
|
ids = Projects::ElasticsearchService.call(params[:search])
|
||||||
if ids.present?
|
if ids.present?
|
||||||
items.visible.where(id: ids)
|
items.visible.where(id: ids).by_name_or_identifier(params[:search])
|
||||||
else
|
else
|
||||||
items.visible.by_name_or_identifier(params[:search])
|
items.visible.by_name_or_identifier(params[:search])
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user