Hello,
I have a bucket of documents about TV shows. The FTS index is indexing the title, year and show type (movie, series, episode, etc).
Example: say I am searching for the movie “Braveheart” (1995)
When I supplied the title “braveheart”, I got:
[ {
id: 5060546,
score: 14.76826030751886,
fields: {
title: "Braveheart",
year: "2012",
showtype: "tvEpisode",
},
}, {
id: 7266106,
score: 14.76826030751886,
fields: {
title: "Braveheart",
year: "2001",
showtype: "tvEpisode",
},
}, {
id: 2838506,
score: 14.76826030751886,
fields: {
title: "Braveheart",
year: "2012",
showtype: "tvEpisode",
},
}, {
id: 8806644,
score: 14.768155463589437,
fields: {
title: "Braveheart",
year: "2018",
showtype: "short",
},
}, {
id: 4383716,
score: 14.768155463589437,
fields: {
title: "After Braveheart",
year: "2015",
showtype: "tvMiniSeries",
},
}, {
id: 1407018,
score: 14.48033987395586,
fields: {
title: "Braveheart",
year: "2008",
showtype: "tvEpisode",
},
}, {
id: 5114738,
score: 14.48033987395586,
fields: {
title: "Braveheart",
year: "2011",
showtype: "tvEpisode",
},
}, {
id: 112573,
score: 14.338453489376002,
fields: {
title: "Braveheart",
year: "1995",
showtype: "movie",
},
}, {
id: 7597954,
score: 14.338453489376002,
fields: {
title: "Braveheart",
year: "2018",
showtype: "tvEpisode",
},
},
<<---- AND MANY MORE --->>
]
When I supplied the title and show type, I got:
[ {
id: 0112573,
score: 15.240031317494054,
fields: {
title: "Braveheart",
year: "1995",
showtype: "movie",**
},
}, {
id: 0015643,
score: 15.078619173430923,
fields: {
title: "Braveheart",
year: "1925",
showtype: "movie",
},
}, {
id: 1126487,
score: 11.182786153072048,
fields: {
title: "The Braveheart of Sussex",
year: null,
showtype: "movie",
},
}, {
id: 5852040,
score: 8.494925478013252,
fields: {
title: "Braveheart II: Lions of the North",
year: null,
showtype: "movie",
},
},
]
When I supplied title, show type and year, I got:
[ {
id: 0112573,
score: 10.100123984821272,
fields: {
title: "Braveheart",
year: "1995",
showtype: "movie",
},
}
]
All three searches have correct result and I am not questioning that. What I don’t understand are the score values. It seems like the more precise I went, the lesser the score value becomes (see the actual show I am searching for Id = 112573).
- Why is that?
- What are the range of scores?
0 to 100? But the last search which pretty much matching all the indexed field only score 10.1+? I expected close to a 100.
Thanks.