Open a-raccoon opened 4 years ago
thanks, episodes would be the same, ex:
The Siege of the North Part 2 - https://www.imdb.com/title/tt10512638 - http://omdbapi.com/?apikey=randomapi&i=tt10512638
I'm really surprised the full-text index doesn't ignore apostrophes when searching, I'm currently looking at a few different solutions, the only one I've seen that might be successful is creating a different view/column with all the special characters stripped out of the titles: https://stackoverflow.com/questions/3587740/exclude-apostrophes-from-sql-server-full-text-search
seem like, my issue was a complete different issue (sorry for posting it here), I wasn't able to find episode via i
tag,
for example:
http://omdbapi.com/?apikey=randomapi&i=tt10512638
but imdb indeed have it https://www.imdb.com/title/tt10512638/ - this was from 2005
I'm really surprised the full-text index doesn't ignore apostrophes when searching, I'm currently looking at a few different solutions, the only one I've seen that might be successful is creating a different view/column with all the special characters stripped out of the titles: https://stackoverflow.com/questions/3587740/exclude-apostrophes-from-sql-server-full-text-search
Some sites will create "keyword tags" for each item entry, and then display search results in rank order based on how many 'keywords' are matched. A keyword is any of the space delimited words, words with and without punctuation (they'll
and theyll
), punctuation word fragments (they
and ll
), words from alternate/working titles, titles from other languages, year, genre, actors, directors, etc etc. I recommend deleting any keywords that are fewer than 3 or 4 letters, eg, no ll
keyword.
You can add weights to keywords, ie, if the keyword has a punctuation, it's worth a weight of 2 instead of 1, if it exactly matches a punctuated word the user typed. (they'll
= 2, while they
= 1, and ll
= 1.)
So anyway. Keywords. ?k=keyword+search+please+2020
Also, big plus, allow the user to be off by +1 or -1 year, since a 2016 movie is sometimes cited as being a 2015 movie or a 2017 movie, depending on who you ask. This is another big reason for 0 results.
how I can get all movies? I tried to get all movies uses omdb api but it's doesn't work
Here are two lists of movies that OMDb could not find. In the first list, OMDb returned 0 results for all Title queries and all Search queries, with and without a Year parameter passed.
One of the main causes of failure seems to be OMDb's inability to resolve for missing punctuation, such as apostrophes, hyphens, ampersands and periods. I recommend that OMDb not require these to be present, or offer an option for relaxed punctuation.
And here are a list of movies that failed a Title search, and only returned some results with a Search query. Most of the search results are pretty useless with no valid matches anyway.