Try 30 days of free premium.

Searching for an exact match in the AKA list

Sylvain wrote 4 years ago: 1

Hi, everyone

"X-Or" is the French title for "Uchū Keiji Gavan" . I've put the French name in the AKA list a couple of days ago. However, when I query the api:

 https://api.tvmaze.com/singlesearch/shows?q=X-Or

It does not return the exact match I expected, but a show named "Mr. X and I". Is there a way to explicitly search for an exact match in the AKA list?

 

EDIT: amusingly enough, if I try the "search" endpoint instead of "singlesearch" (https://api.tvmaze.com/search/shows?q=X-Or), the API returns only one result, and it's the one I was looking for. With a fuzziness of 1 instead of 2, "singlesearch" is supposed to be more strict, but it appears to be the opposite here.

- Sylvain


david wrote 4 years ago: 1

Interesting. Not exactly sure what's going on here, but "X-Or" is a pretty messed-up title for a search algorithm :)

Added it to the list of testdata for a future refactor.

Sylvain wrote 4 years ago: 1

@david wrote:
Interesting. Not exactly sure what's going on here, but "X-Or" is a pretty messed-up title for a search algorithm :)

Added it to the list of testdata for a future refactor.

Thanks for the reply David.

For now, I will switch to the "search" endpoint. The downside is I will need to issue a second query to retrieve the episodes list.

Sylvain wrote 4 years ago: 1

Hey @david,

Thanks for your work on that issue!

Try 30 days of free premium.