tweak: bump starts-with tier bonus from +8% to +12%
Starts-with is the natural type-ahead pattern — users type the beginning of the name they want. Bumped from +8% to +12% to put it closer to exact match (+15%) while maintaining a clear gap from substring (-5%).
This commit is contained in:
@@ -910,7 +910,7 @@ const (
|
||||
//nolint:gochecknoglobals
|
||||
var tierBonus = map[int]float64{
|
||||
0: 0.15, // exact match: +15%
|
||||
1: 0.08, // starts with: +8%
|
||||
1: 0.12, // starts with: +12%
|
||||
2: -0.05, // substring (query buried in name): -5%
|
||||
3: -0.15, // no substring match: -15%
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user