fixed 项目搜索先es search 中文

This commit is contained in:
“xxq250” 2022-11-01 17:31:33 +08:00
parent 63ea4808c9
commit 79dae01a69
1 changed files with 1 additions and 1 deletions

View File

@ -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