My pipeline results in different numbers for: highest_rating, lowest_rating, average_rating, deviation
The filter is very simple: “For all films that won at least 1 Oscar…”, and yet my results are not included in the multiple choice options – I didn’t even mess up in a predictable way?
[{
$match: {
awards: {
$exists: true
},
type: 'movie'
}
}, {
$project: {
'imdb.rating': 1,
title: 1,
has_oscar: {
$regexFind: {
input: '$awards',
regex: 'Oscar?'
}
}
}
}, {
$match: {
has_oscar: {
$ne: null
}
}
},