Artists showing in site search but not API search

search
musicbrainz
api
Tags: #<Tag:0x00007f23c562fa58> #<Tag:0x00007f23c562f878> #<Tag:0x00007f23c562f2b0>

#1

Relatively new to the API, so not sure if I’m missing something obvious.

Trying to populate a table of Artists with their MBIDs. It’s working OK, apart from the odd few that don’t seem to be matching.

Dug into it a bit more, and I’m seeing stuff like this:

Page
http://beta.musicbrainz.org/search?query=Scythian&type=artist&method=indexed – 5 results

API
http://beta.musicbrainz.org/ws/2/artist?query=name:Scythian – 0 results

Am I using the search API right? It worked fine for something like 180 of the 200 artists I’m importing, I just can’t see a reason why the rest are coming back blank.


#2

Also:

http://musicbrainz.org/search?query=Barshaketh&type=artist&limit=25&method=indexed – 1 result
http://musicbrainz.org/ws/2/artist?query=name:Barshaketh – 0 results

Posting separately because I don’t have a high enough community score to post more than 2 links at once :slight_smile:


#3

This name attribute does not exist:


#4

Ah good spot. My mistake, that was actually a typo :-/

Turns out the underlying reason was a spelling mistake. When I pasted “Barshaketh” into the MusicBrainz site it fuzzy searched and found the correct spelling (Barshasketh vs Barshaketh). The API doesn’t seem to pick that up.

Thanks for you help


#5

Now in Lucene, fuzzy search is like this: artist:Barshaketh~. :slight_smile: