Last.Fm API Error in Search

 
  • Last.Fm API Error in Search

    Hello all,
    If I use the Scrobbler API to find music I have some error in the search.
    For Example for track.search, if I use:

    http://ws.audioscrobbler.com/2.0/?method=track.search&track=Albach&api_key=b25b959554ed76058ac220b7b2e0a026
    the scrobbler return 9 results


    but if I use:

    http://ws.audioscrobbler.com/2.0/?method=track.search&track=Albachiar&api_key=b25b959554ed76058ac220b7b2e0a026
    the scrobbler return 0 result

    and if i complete the song name:

    http://ws.audioscrobbler.com/2.0/?method=track.search&track=Albachiara&api_key=b25b959554ed76058ac220b7b2e0a026
    the scrobbler return 54 result

    Why?

    • tburny sa...
    • Forum Moderator
    • 8 maj 2012, 11:25
    This is a known bug. I hope last.fm will fix it soon :)

    Combo.fm: Combine your favourite radio stations! | My Blog | scala-lastfmapi | Cache2k - A high performance Java in-memory cache
    P.S.: Do not click here
    throw new PokemonException(); //Gotta catch 'em all
    My forum post reflects my personal opinion :)
    • pduin sa...
    • Medarbetare
    • 8 maj 2012, 13:02
    We have a bit better partial matching algorithm recently that is why you can search for "Albach" and find "Albachiara" (This wasn't possible last month).
    We index part of the whole name up to a certain number of characters that's why "albachiar" doesn't match (too long).
    We only do this for the most popular tracks, that's why you see 9 vs. 54 results.

    All these limitations are mostly there to keep things fast and results relevant.
    If search times won't be affected we might relax these constraints in the future.
    As for now I hope this explains your search results. :)

    • tburny sa...
    • Forum Moderator
    • 8 maj 2012, 13:44
    Is it wired to Apache Solr?

    Combo.fm: Combine your favourite radio stations! | My Blog | scala-lastfmapi | Cache2k - A high performance Java in-memory cache
    P.S.: Do not click here
    throw new PokemonException(); //Gotta catch 'em all
    My forum post reflects my personal opinion :)
    • pduin sa...
    • Medarbetare
    • 8 maj 2012, 14:35
    yes, at least to the way we configure it. It is not a limitation of Solr if that is what you mean.

Anonyma användare kan inte skriva inlägg. Vänligen logga in eller skapa ett konto för att göra inlägg i forumen.