tweak search result ranking

This commit is contained in:
MM20
2025-10-17 15:48:58 +02:00
parent 496ca97dc8
commit 5a575738ac
3 changed files with 5 additions and 4 deletions

View File

@@ -433,8 +433,8 @@ class SearchVM : ViewModel(), KoinComponent {
b.score.score
}
val aTotal = aScore * 0.7f + aWeight.toFloat() * 0.3f
val bTotal = bScore * 0.7f + bWeight.toFloat() * 0.3f
val aTotal = aScore * 0.6f + aWeight.toFloat() * 0.4f
val bTotal = bScore * 0.6f + bWeight.toFloat() * 0.4f
bTotal.compareTo(aTotal)
}