fix(server): use substring matching for person name search (#26903)

This commit is contained in:
okxint
2026-04-01 19:01:54 +05:30
committed by GitHub
parent 2a619d3c10
commit d1e2e8ab4e
4 changed files with 25 additions and 17 deletions
+4 -7
View File
@@ -200,13 +200,10 @@ select
from
"person"
where
(
"person"."ownerId" = $1
and (
lower("person"."name") like $2
or lower("person"."name") like $3
)
)
"person"."ownerId" = $1
and f_unaccent ("person"."name") %>> f_unaccent ($2)
order by
f_unaccent ("person"."name") <->>> f_unaccent ($3)
limit
$4