speedruncomorg / api

REST API Documentation for speedrun.com
349 stars 35 forks source link

have that popular games get queried first when using commands to find out what game has a wr #102

Open killertofus opened 4 years ago

killertofus commented 4 years ago

an example would be minecraft java edition when querying it popups xiphias (Minecraft: Java Edition) instead of minecraft java edition here is a picture of a example lfJJ2Cj

ShikenNuggets commented 4 years ago

So from what I can gather this actually is not due to a search priority issue (although sub-games/unofficial games should probably have lower search priority), but due to an issue around searching for game names with special characters. For some reason searching for "Minecraft Java" doesn't actually bring up "Minecraft: Java Edition" at all, as you'll notice here: https://www.speedrun.com/api/v1/games?name=minecraft%20java (only Xiphias and the Category Extension appear).

The same issue also occurs in the search bar on the site itself, since they use the same logic. I've reported the search issue to the site developers, will report back here when we know more or when its fixed.

DevonHess commented 3 years ago

I'm also running into this same issue.

https://www.speedrun.com/api/v1/games?&name=Minecraft%3A%20%0AJava%20Edition

This search doesn't return "Minecraft: Java Edition" at all, but confusingly does return "Minecraft: Java Edition Category Extensions"

https://www.speedrun.com/api/v1/games?&name=Java

This search does bring up "Minecraft: Java Edition"

https://www.speedrun.com/api/v1/games?&name=Minecraft:%20Bedrock%20Edition

This search DOES correctly return "Minecraft: Bedrock Edition"

Weird.