Assistance de TMDB

Hey, I am wondering since especially when using Multi Search for actors it tends to usually give right person as first results, but in some cases i.e. searching for Morgan Freeman it gives him as third result. With Morgan Freeman case it gives two tv-shows first, which id's are "newer" (number is bigger than Morgan's Id, don't know if related) and then comparing e.g. popularity of these three results Morgan Freeman (as person) is highest, or is there any logic behind these at all. But for consistency's sake I would appreciate to know if there could be changes to made that person result's would be given out first :)

4 réponses (sur la page 1 sur 1)

Jump to last post

I did a search using the following Request.
https://api.themoviedb.org/3/search/person?api_key=[MY_KEY]&language=en-US&query=Morgan%20Freeman&page=1&include_adult=false

See the result. Different from yours.

page    1
total_results   3
total_pages 1
results 
0   
popularity  11.535
id  192
profile_path    "/oGJQhOpT8S1M56tvSsbEBePV5O1.jpg"
name    "Morgan Freeman"
known_for   […]
adult   false
1   
popularity  0.6
id  66800
profile_path    "/sahczLXjQ9b9zPHfASuRRrINgHQ.jpg"
name    "Morgan J. Freeman"
known_for   […]
adult   false
2   
popularity  2.744
id  98628
profile_path    "/MYOL9TGBy4xVT9zvDOpIPcO8uV.jpg"
name    "Kim Fields"
known_for   […]
adult   false

Can you put here the Requisition you used?

https://api.themoviedb.org/3/search/multi?api_key={MY_KEY}&language=en-US&query=Morgan%20Freeman&page=1&include_adult=false

So like I said in the title, I am using "multi" seacrch and I see you are using "person" search. And reason I am using Multi search is because I just want to be able to search movies, tv-shows and persons with that one search action without making it too difficult, just wondering why the "order" of the results changes in some cases.

{
  "page": 1,
  "total_results": 11,
  "total_pages": 1,
  "results": [
    {
      "original_name": "Through the Wormhole",
      "id": 32900,
      "media_type": "tv",
      "name": "Through the Wormhole",
      "vote_count": 62,
      "vote_average": 7.74,
      "poster_path": "/yzlGw8yFbVwoHS52g8C0DFYDak9.jpg",
      "first_air_date": "2010-06-09",
      "popularity": 10.06,
      "genre_ids": [
        99
      ],
      "original_language": "en",
      "backdrop_path": "/veLfJ49zNVzFzwwtAL7KA6fs6Np.jpg",
      "overview": "Hosted by Morgan Freeman, Through the Wormhole explores the deepest mysteries of existence - the questions that have puzzled mankind for eternity. What are we made of? What was there before the beginning? Are we really alone? Is there a creator? These questions have been pondered by the most exquisite minds of the human race. Now, science has evolved to the point where hard facts and evidence may be able to provide us with answers instead of philosophical theories. Through the Wormhole brings together the brightest minds and best ideas from the very edges of science - Astrophysics, Astrobiology, Quantum Mechanics, String Theory, and more - to reveal the extraordinary truth of our Universe.",
      "origin_country": [
        "US"
      ]
    },
    {
      "original_name": "The Story of God with Morgan Freeman",
      "id": 66185,
      "media_type": "tv",
      "name": "The Story of God with Morgan Freeman",
      "vote_count": 18,
      "vote_average": 7.22,
      "poster_path": "/qPVGvTWLsPAPsN4e7U3Qd28HipY.jpg",
      "first_air_date": "2016-04-03",
      "popularity": 2.244,
      "genre_ids": [
        99
      ],
      "original_language": "en",
      "backdrop_path": "/7pnGtMK5JYlXUQ2gwKORnX6sap1.jpg",
      "overview": "Morgan Freeman presents his quest in order to find how most religions perceive life after death, what different civilizations thought about the act of creation and other big questions that mankind has continuously asked.",
      "origin_country": [
        "US"
      ]
    },
    {
      "popularity": 11.535,
      "media_type": "person",
      "id": 192,
      "profile_path": "/oGJQhOpT8S1M56tvSsbEBePV5O1.jpg",
      "name": "Morgan Freeman",
      "known_for": [...],
      "adult": false
    },
.....

Sorry, I got confused. grin
I think only Travis Bell can give you the details of that result.
And I just saw that he went on vacation.

Away on vacation from Jan. 20 - Feb. 4

@wonde Popularity is only used as a way to boost results, it's not used as an actual sorting value.

Sorting is done by Elasticsearch's own internally scoring. I suspect movie and TV results are given a higher matching score because there's more fields that are being matched (original title/name, translated titles/names and alternative titles).

Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.

Général

s Mettre le curseur dans la barre de recherche
p Ouvrir le menu du profil
esc Fermer une fenêtre ouverte
? Ouvrir la fenêtre des raccourcis clavier

Sur les pages des médias

b Retour (ou vers le parent si faisable)
e Afficher la page de modification

Sur les pages des saisons des émissions télévisées

Afficher la saison suivante (flèche droite)
Afficher la saison précédente (flèche gauche)

Sur les pages des épisodes des émissions télévisées

Afficher l'épisode suivant (flèche droite)
Afficher l'épisode précédent (flèche gauche)

Sur toutes les pages des images / photos

a Ouvrir la fenêtre d'ajout d'image / photo

Sur toutes les pages de modifications

t Ouvrir le sélecteur de traduction
ctrl+ s Envoyer le formulaire

Sur les pages des discussions

n Créer une nouvelle discussion
w Basculer le statut de suivi
p Basculer publique / privée
c Basculer fermer / ouvrir
a Ouvrir l'activité
r Répondre à la discussion
l Afficher la dernière réponse
ctrl+ enter Envoyer votre message
Page suivante (flèche droite)
Page précédente (flèche gauche)

Paramètres

Vous souhaitez évaluer ou ajouter cet élément à une liste ?

Connexion