give hight weight for name matching
if you search for 'Chris Martin' coldplay will be higher ranked than the singer 'Chris Martin', and that shouldn't be so
This commit is contained in:
@@ -13,6 +13,12 @@ class TestMusicbrainzArtist < Test::Unit::TestCase
|
||||
assert_operator(0, :<, matches.length)
|
||||
assert_equal("Kasabian", matches.first[:name])
|
||||
end
|
||||
|
||||
should "find name first than alias" do
|
||||
matches = MusicBrainz::Artist.search('Chris Martin')
|
||||
assert_operator(0, :<, matches.length)
|
||||
assert_equal("Chris Martin", matches.first[:name])
|
||||
end
|
||||
|
||||
should "get correct result by name" do
|
||||
@artist = MusicBrainz::Artist.find_by_name('Kasabian')
|
||||
|
||||
Reference in New Issue
Block a user