#1 Posted by jastarling (2 posts) -

When I perform a search for the NES version of "The Legend of Zelda" using this:
 
http://api.giantbomb.com/search/?api_key=<KEY>&query=The Legend of Zelda&field_list=name,id,api_detail_url&format=xml
 
I don't get any results. If I change the criteria to "Legend of Zelda", I get 19 results. 
 
I get similar results when searching for "The Legend of Kage". I can change it to "Legend of Kage" and I get two results, with the sequel being the first result.
 
What gives? How I can search to get the exact game that I am looking for?
 

 

#2 Posted by andy (427 posts) -

This is a bug.  I'll get a fix up shortly.

Staff
#3 Posted by DarthGibblet (3 posts) -

Has there been any update on this bug? I'm running into the same problem. I'm also seeing similar behavior with other filler words (specifically, "with"). Any advice? Thanks in advance.

#4 Posted by ConanThe3rd (2 posts) -

Seconding here, I'm trying to find Final Fantasy games for a project I'm doing and somehow I'm geting Desert Strike: Return to the Gulf (and 100 other games that are not final fantasy 1) as a responce.
 
I'm even using the Franchies critiera to filter out the non FF games to no joy whatsoever
 
Here's my URL:  
http://api.giantbomb.com/games/?api_key=[key]&franchies=Final Fantasy&name=Final Fantasy 1&format=xml

#5 Posted by LordAndrew (14424 posts) -
@ConanThe3rd: The previously mentioned issue involves stopwords like "the" and "with". Yours sound completely unrelated and should be given its own topic.
#6 Posted by andy (427 posts) -
@ConanThe3rd: If you want to search, then use the Search resource:   http://api.giantbomb.com/documentation/#search
Staff
#7 Posted by andy (427 posts) -
@DarthGibblet: Hrm, I just searched for "the legend of zelda" using the API and got back a number of Zelda games.  Can you provide a specific example of what you're seeing and what you're expecting?
Staff
#8 Posted by LordAndrew (14424 posts) -
@andy said:
" @DarthGibblet: Hrm, I just searched for "the legend of zelda" using the API and got back a number of Zelda games.  Can you provide a specific example of what you're seeing and what you're expecting? "
Try "The Legend of Zelda", with an initial cap on "The". It behaves completely differently depending on the capitalization, and neither behaviors are the desired behavior.
#9 Edited by DarthGibblet (3 posts) -

@andy: Yeah, I'm getting the same behavior as @LordAndrew (at least for upper-cased padding words. Lower case ones seem to work fine). Here's the full URLs I'm using to recreate this issue (I was actually testing with the Zelda games :F): 
 
"Legend of Zelda" (expected results): 
http://api.giantbomb.com/search/?api_key=[key]&query=Legend%20of%20Zelda&resources=game&field_list=name,original_release_date,image,api_detail_url,id&offset=0&format=xml
 
"the Legend of Zelda" (expected results): 
 http://api.giantbomb.com/search/?api_key=[key]=the%20Legend%20of%20Zelda&resources=game&field_list=name,original_release_date,image,api_detail_url,id&offset=0&format=xml
 
"The Legend of Zelda (no results): 
http://api.giantbomb.com/search/?api_key=[key]&query=The%20Legend%20of%20Zelda&resources=game&field_list=name,original_release_date,image,api_detail_url,id&offset=0&format=xml
 
I've gotten similar results with "The World Ends with You" regarding both "The" and "With" (again, only if they're capitalized). I'm fine stripping out the filler words on my own and just searching for the title without them, but is there a full list somewhere of words that will be effected like this? 
 
*edit - fixed a typo

#10 Posted by LordAndrew (14424 posts) -
@DarthGibblet: There isn't a full list, but I've been thinking of making one. Of course, if it actually gets fixed then I don't need to worry about that. :)
#11 Posted by andy (427 posts) -
@DarthGibblet: Wow, lame.  Not sure why I didn't catch this before.  Anyway, it's fixed now.
Staff
#12 Posted by DarthGibblet (3 posts) -

Awesome, it seems to be working now. Thanks for the help!

#13 Posted by Daracon (26 posts) -

 There is a problem to search games with special characters like "Brütal Legend". Even the site search does not find the game, only if you search for "br".

#14 Posted by Ignor (2372 posts) -
@Daracon said:
"  There is a problem to search games with special characters like "Brütal Legend". Even the site search does not find the game, only if you search for "br". "
Just use the regular "U". That should work.
#15 Posted by Daracon (26 posts) -
@Ignor said: 
Just use the regular "U". That should work. "
 That works, thanks!