Sprijin Bază de date filme (The Movie Database)

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ăspunsuri (pe pagină 1 din 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).

Nu găsiți un film sau un serial? Autentificați-vă pentru a-l crea.

Global

s focalizați bara de căutare
p deschideți meniul profilului
esc închide o fereastră deschisă
? deschideți fereastra de scurtături de la tastatură

Pe paginile media

b înapoi (sau la pornire atunci când este cazul)
e accesați pagina de editare

Pe paginile sezonului TV

(săgeată dreapta) mergeți la sezonul următor
(săgeată stânga) mergeți la sezonul precedent

Pe paginile episoadelor TV

(săgeată dreapta) mergeți la următorul episod
(săgeată stânga) mergeți la episodul anterior

Pe toate paginile de imagini

a deschideți fereastra pentru adăugarea imaginii

Pe toate paginile de editare

t deschide selectorul de traduceri
ctrl+ s trimiteți formularul

Pe paginile de discuții

n creați o nouă discuție
w comutați stare de vizionare
p comutați public/privat
c comutați închidere/deschidere
a deschide activitatea
r răspuns la discuție
l mergeți la ultimul răspuns
ctrl+ enter trimiteți mesajul
(săgeată dreapta) pagina următoare
(săgeată stânga) pagina anterioară

Setări

Doriți să evaluați sau să adăugați acest element într-o listă?

Autentificare