Axuda de The Movie Database

Using the movie search API with the query string "Mr. & Mrs. Smith" limited to year 2005 I get results in the following order:

'original_title' => 'Mr. Christmas',
'original_title' => 'Mr. & Mrs. Smith',
'original_title' => 'Mr. Nice Guy',

And so on. This seems like a really incorrect search result ordering, is there any chance this can be fixed?

(Side note, performing the search with query_type => ngram does indeed give the correct movie as the first result but it follows it with a number of apparently random movie suggestions which makes me hesitant to rely on it for a large corpus of searches)

Also the when you search via the actual website for 'Mr. & Mrs. Smith' it sure doesn't return 'Mr. Christmas' !

3 respostas (na páxina 1 de 1)

Jump to last post

Hi rmzg,

Are you making sure to escape the ampersand?

http://api.themoviedb.org/3/search/movie?api_key=###&query=Mr.+%26+Mrs.+Smith

and

http://api.themoviedb.org/3/search/movie?api_key=###&query=Mr.+%26+Mrs.+Smith&search_type=ngram

Provide proper results.

Wow, thanks. I guess what's what I get for trusting third party libraries!

;)

If possible, you should contact the developer of the library and/or perhaps contribute a fix for it.

Cheers.

Non podes atopar unha película ou serie? Inicia sesión para creala.

Global

s amosar a barra de procura
p abrir menú do perfil
esc pechar e abrir xanela
? abrir xanela de atallos do teclado

En páxinas de medios

b atrás (ou á principal se aplica)
e ir a editar páxina

En páxinas de tempadas de televisión

(flecha dereita) ir á tempada seguinte
(flecha esquerda) ir á tempada anterior

En páxinas de episodios de televisión

(flecha dereita) ir ao episodio seguinte
(flecha esquerda) ir ao episodio anterior

En todas as páxinas de imaxe

a abrir a xanela de engadir imaxe

En todas as páxinas de edición

t abrir selector de traducións
ctrl+ s enviar formulario

Nas páxinas de debate

n crear un novo debate
w amosar o estado do seguimento
p mudar público/privado
c mudar abrir/pechar
a abrir actividade
r responder no debate
l ir á última resposta
ctrl+ enter eviar a túa mensaxe
(flecha dereita) páxina seguinte
(flecha esquerda) ir á páxina anterior

Configuración

Queres valorar ou engadir o elemento a unha listaxe?

Iniciar sesión