Change hashtag search to only return results that have trended in the past (#11448)
* Change hashtag search to only return results that have trended in the past A way to eliminate typos and other one-off "junk" results * Fix excluding exact matches that don't have a score * Fix tests
This commit is contained in:
@ -136,8 +136,8 @@ RSpec.describe Tag, type: :model do
|
||||
end
|
||||
|
||||
it 'finds the exact matching tag as the first item' do
|
||||
similar_tag = Fabricate(:tag, name: "matchlater")
|
||||
tag = Fabricate(:tag, name: "match")
|
||||
similar_tag = Fabricate(:tag, name: "matchlater", score: 1)
|
||||
tag = Fabricate(:tag, name: "match", score: 1)
|
||||
|
||||
results = Tag.search_for("match")
|
||||
|
||||
|
Reference in New Issue
Block a user