search precis too

This commit is contained in:
Ted Unangst 2023-07-29 21:56:45 -04:00
parent a7adc79f20
commit bd80e1b4a8
1 changed files with 2 additions and 1 deletions

View File

@ -342,7 +342,8 @@ func gethonksbysearch(userid int64, q string, wanted int64) []*Honk {
continue continue
} }
t = "%" + t + "%" t = "%" + t + "%"
queries = append(queries, "noise"+negate+"like ?") queries = append(queries, negate+"(noise like ? or precis like ?)")
params = append(params, t)
params = append(params, t) params = append(params, t)
} }