omdbapi / OMDb-API

The Open Movie Database Bug Tracking
419 stars 21 forks source link

Wildcard searching not always working #108

Open jewkesy opened 5 years ago

jewkesy commented 5 years ago

I'm performing a wildcard search for movie titles and just happened to pick 'Bumblebee' to try out some new logic.

Specifying s=*bum*works. http://www.omdbapi.com/?type=movie&r=json&y=2018&s=*bum*&apikey=[APIKEY]&page=1

Specifying s=*bee* or s=*umbl* , or any other partial text match does not return the movie.
http://www.omdbapi.com/?type=movie&r=json&y=2018&s=*bee*&apikey=[APIKEY]&page=1

arnojong commented 5 years ago

Wildcard functionality doesn't work at the start of the string. That's why s=ble* only returns movies like Bleach, The Bleeding Edge, and s=bee* only returns Been So Long and After-work beer.

Added support for asterisks in front of the search queries would be nice to have!