Credo
This commit is contained in:
parent
19f32f7b09
commit
eac8ef7951
1 changed files with 2 additions and 1 deletions
|
|
@ -158,7 +158,8 @@ defmodule Pleroma.Hashtag do
|
||||||
where: fragment("LOWER(?) LIKE ANY(?)", ht.name, ^search_patterns),
|
where: fragment("LOWER(?) LIKE ANY(?)", ht.name, ^search_patterns),
|
||||||
select: %{
|
select: %{
|
||||||
name: ht.name,
|
name: ht.name,
|
||||||
# Ranking: exact matches get highest priority (0), then prefix matches (1), then contains (2)
|
# Ranking: exact matches get highest priority (0)
|
||||||
|
# then prefix matches (1), then contains (2)
|
||||||
match_rank:
|
match_rank:
|
||||||
fragment(
|
fragment(
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue