add popularidade ordering
All checks were successful
API and ETL Build / build_etl (push) Successful in 5s
API and ETL Build / build_api (push) Successful in 20s

This commit is contained in:
Jose Henrique 2025-06-09 20:52:22 -03:00
parent 5068d348af
commit 39faab6483

View File

@ -19,7 +19,7 @@ namespace OpenCand.Repository
FROM candidato c
WHERE c.apelido % @q
OR c.nome % @q
ORDER BY sim DESC, length(c.nome) ASC
ORDER BY c.popularidade DESC, sim DESC, length(c.nome) ASC
LIMIT 10;
", new { q = query })).AsList();
}