[#477] User trigram index adjustment.

This commit is contained in:
Ivan Tashkinov 2019-01-18 10:57:42 +03:00
commit 79e44042bc
2 changed files with 14 additions and 1 deletions

View file

@ -744,7 +744,7 @@ defmodule Pleroma.User do
select_merge: %{
search_rank:
fragment(
"similarity(?, ? || ' ' || coalesce(?, ''))",
"similarity(?, trim(? || ' ' || coalesce(?, '')))",
^query,
u.nickname,
u.name