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),
|
||||
select: %{
|
||||
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:
|
||||
fragment(
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue