Proper way to search?

#1 Posted by XenoLair (24 posts) - 11 months, 4 days ago

Hello all.

I have a question related to searching for games. Whenever I search for say "assassins creed", I get 0 results. I'm using the following request:

http://api.giantbomb.com/search/?api_key=key&resources=game&format=xml&query=assassins%20creed

This is probably due to the apostrophe in the name for the game (Assassin's Creed)...

I've noticed that if searching for assassins creed on the site, it shows up results using aliases (image below). So how can search by also looking at game aliases?

#2 Posted by mcsilvio (1 posts) - 10 months, 14 days ago

try changing "resources" to "resource_type"

#3 Posted by LordAndrew (13812 posts) - 10 months, 14 days ago

The API will never look at aliases. Have you tried encoding the apostrophe?

#4 Edited by Marcelloz (116 posts) - 10 months, 13 days ago
#5 Posted by XenoLair (24 posts) - 10 months, 7 days ago

Yeah the problem isnt when I add the apostrophe, its when I dont add it. I personally rarely use an apostrophe when searching for anything and I dont expect my users to use one either.

The search works fine with the apostrophe included but if I dont include it, it somehow doesnt find anything - although the website does! So thats what was bugging me.

Please Log In

Use your keyboard!

  • ESC