Commit 6604bea9 authored by normandy's avatar normandy
Browse files

actually rvert those changes

parent 8d11bae0
......@@ -404,19 +404,15 @@ def search(query, resolve) do
from(
u in User,
select_merge: %{
search_distance:
fragment(
search_distance: fragment(
"? <-> (? || ?)",
^query,
u.nickname,
u.name
)
}
)}
)
q =
from(
s in subquery(inner),
q = from(s in subquery(inner),
order_by: s.search_distance,
limit: 20
)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment