[mb-devel] WebService usage

Vidar Wahlberg canidae at exent.net
Sun Sep 24 01:19:03 UTC 2006


On Wed, Aug 02, 2006 at 02:25:53PM -0700, Robert Kaye wrote:
> On Jul 26, 2006, at 7:34 PM, Vidar Wahlberg wrote:
>>And then at last I want to look up the track:
>>http://musicbrainz.org/ws/1/track/?type=xml&limit=5&title=Seven% 
>>20Doors%20Hotel&artistid=ccfe7a3c-1a45-4984- 
>>a8d0-644549cefe61&releaseid=ea6be413-fbd7-49f2-8546-e162d481e857
>>Again a bit unexpected values. Even though I've submitted both  
>>artist id
>>and release id, I get results from completly different artists and
>>releases.
> 
> I see tracks limited to only one artist. But I do see releases that  
> are not limited to the specified releaseid. I think this is the same  
> issue as above.

if you increase the limit from 5 to say 50, then you'll get different
artists as well.
for me this isn't a problem anymore, since i already know the id's i can
simply filter them out in my script. i don't know how this lucene works,
but maybe it is possible to increase the performance if lucene would
filter this out?
still want this feature/bug reported and assigned to you? :)


> Again, you are doing a Lucene search and it doesn't make sense to  
> stuff everything into Lucene. When you find a match you like, take  
> the track id and then request the track resource separately. So, that  
> means doing two queries, not three.

fair 'nuff, i figured out that looking up a release by submitting a
releaseid (which i can get from a track lookup) will give me all the
data i need, so i can fetch all the data i need with 2 queries.


further i have a question about lucene and the "score" you get from a
lookup:
i have a mp3 named "dj tiesto - honey.mp3", and i presume "dj tiesto" is
the artist and "honey" is the title of the song. so i try the following
lookup to see if i can find some more info about this song which lack
alot of metadata:
http://musicbrainz.org/ws/1/track/?type=xml&title=honey&artist=dj%20tiesto

the very first hit got a score of 100, and that track is called "Honey
Honey" and the artist is "DJ Lucky Johal".
that i don't get the result i'm looking for (which would be this:
http://musicbrainz.org/ws/1/track/342d9aae-3208-4e46-b63d-b610e96bc334?type=xml&inc=artist)
is quite okay, because the artist of that track isn't "dj tiesto", the
title isn't just "honey" and i've generally supplied very little
metadata.
what does it mean that the first hit got a score of 100?
or rather, what does "score" mean?


-- 
Regards,
Vidar Wahlberg



More information about the MusicBrainz-devel mailing list