Forum rules
Under no circumstances is spamming or advertising of any kind allowed. Do not post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-orientated or any other material that may violate others security. Profanity or any kind of insolent behavior to other members (regardless of rank) will not be tolerated. Remember, what you don’t find offensive can be offensive to other members. Please treat each other with the kind of reverence you’d expect from other members.
Failure to comply with any of the above will result in users being banned without notice. If any further details are needed, contact: “The team” using the link at the bottom of the forum page. Thank you.
brunovg
Posts: 4
Joined: Mon Apr 22, 2024 6:29 pm

Features query search - movie not found on the results

Tue Aug 06, 2024 11:07 pm

I'm trying to understand why I don't see the movie Roma (2018) on the results of the following query call:

Code: Select all

https://api.opensubtitles.com/api/v1/features?query=Roma
This is a problem with the content name/description index of this specific movie?

If I use the imdb_id param, the movie is returned, so it's on the database:

Code: Select all

https://api.opensubtitles.com/api/v1/features?imdb_id=6155172
Thanks one more time.

os_dev
Posts: 210
Joined: Wed Oct 17, 2018 3:42 pm

Re: Features query search - movie not found on the results

Fri Aug 30, 2024 9:24 am

sorry for taking so long to reply.

so, we had a lot of work on the /subtitles endpoint, but not so much on the /features, it was mostly optimised to work for an autocomplete system, for your case there was just too many titles returning "roma" either in the title or translated titles, that included stuff like "romance" so your results were meaningless.

I added 2 parameters that should give more flexibility in the usage, and hopefully solve your case.

now you will have query_match and full_search

With the "query_match" you can define the matcher applied to the query:

"start" is the default behavior, it will query on the first letter entered to offer suggestions. for example searching for "roma" will return "romance"
"word" will return the match on the word, but not always matching the fulll title, for example searching "roma" will return "holiday in roma"
"exact" will exactly match the title, here searching for "roma" will only return the movie(s) named "roma"

With the "full_search" you can extend the search to the translations of the title, so "roma" will also return "rome"

I will add that if you have an imdb or tmdb id the results will always be more accurate, and if you have the year, or can be sure you have a movie or an episode, adding it as parameter should make the results more precise.

Return to “Developing”

Who is online

Users browsing this forum: No registered users and 1 guest