Skip to content

Instantly share code, notes, and snippets.

@mchernyavskaya
Created October 3, 2022 12:41
Show Gist options
  • Save mchernyavskaya/40fde903056424baf2398aaae4bb2589 to your computer and use it in GitHub Desktop.
Save mchernyavskaya/40fde903056424baf2398aaae4bb2589 to your computer and use it in GitHub Desktop.
db.movies.find( { $text: { $search: "\"harry potter\"" }, "imdb.rating": { $ne: "" } }, { "title": 1, "plot": 1, "fullplot": 1, "genres": 1, "cast": 1, "imdb.rating": 1, "_id": 0 }). limit(5).sort({ "imdb.rating": -1 })
[
{
plot: "Harry, Ron and Hermione search for Voldemort's remaining Horcruxes in their effort to destroy the Dark Lord as the final battle rages on at Hogwarts.",
genres: [ 'Adventure', 'Drama', 'Fantasy' ],
cast: [
'Ralph Fiennes',
'Michael Gambon',
'Alan Rickman',
'Daniel Radcliffe'
],
title: 'Harry Potter and the Deathly Hallows: Part 2',
fullplot: "Harry, Ron, and Hermione continue their quest of finding and destroying the Dark Lord's three remaining Horcruxes, the magical items responsible for his immortality. But as the mystical Deathly Hallows are uncovered, and Voldemort finds out about their mission, the biggest battle begins and life as they know it will never be the same again.",
imdb: { rating: 8.1 }
},
{
fullplot: "Harry Potter is having a tough time with his relatives (yet again). He runs away after using magic to inflate Uncle Vernon's sister Marge who was being offensive towards Harry's parents. Initially scared for using magic outside the school, he is pleasantly surprised that he won't be penalized after all. However, he soon learns that a dangerous criminal and Voldemort's trusted aide Sirius Black has escaped from the Azkaban prison and wants to kill Harry to avenge the Dark Lord. To worsen the conditions for Harry, vile creatures called Dementors are appointed to guard the school gates and inexplicably happen to have the most horrible effect on him. Little does Harry know that by the end of this year, many holes in his past (whatever he knows of it) will be filled up and he will have a clearer vision of what the future has in store...",
imdb: { rating: 7.8 },
plot: `It's Harry's third year at Hogwarts; not only does he have a new "Defense Against the Dark Arts" teacher, but there is also trouble brewing. Convicted murderer Sirius Black has escaped the Wizards' Prison and is coming after Harry.`,
genres: [ 'Adventure', 'Family', 'Fantasy' ],
title: 'Harry Potter and the Prisoner of Azkaban',
cast: [
'Daniel Radcliffe',
'Richard Griffiths',
'Pam Ferris',
'Fiona Shaw'
]
},
{
plot: 'As Harry races against time and evil to destroy the Horcruxes, he uncovers the existence of three most powerful objects in the wizarding world: the Deathly Hallows.',
genres: [ 'Adventure', 'Family', 'Fantasy' ],
cast: [
'Bill Nighy',
'Emma Watson',
'Richard Griffiths',
'Harry Melling'
],
title: 'Harry Potter and the Deathly Hallows: Part 1',
fullplot: "Voldemort's power is growing stronger. He now has control over the Ministry of Magic and Hogwarts. Harry, Ron, and Hermione decide to finish Dumbledore's work and find the rest of the Horcruxes to defeat the Dark Lord. But little hope remains for the Trio, and the rest of the Wizarding World, so everything they do must go as planned.",
imdb: { rating: 7.7 }
},
{
fullplot: "Harry's fourth year at Hogwarts is about to start and he is enjoying the summer vacation with his friends. They get the tickets to The Quidditch World Cup Final but after the match is over, people dressed like Lord Voldemort's 'Death Eaters' set a fire to all the visitors' tents, coupled with the appearance of Voldemort's symbol, the 'Dark Mark' in the sky, which causes a frenzy across the magical community. That same year, Hogwarts is hosting 'The Triwizard Tournament', a magical tournament between three well-known schools of magic : Hogwarts, Beauxbatons and Durmstrang. The contestants have to be above the age of 17, and are chosen by a magical object called Goblet of Fire. On the night of selection, however, the Goblet spews out four names instead of the usual three, with Harry unwittingly being selected as the Fourth Champion. Since the magic cannot be reversed, Harry is forced to go with it and brave three exceedingly difficult tasks.",
imdb: { rating: 7.6 },
plot: 'Harry finds himself mysteriously selected as an under-aged competitor in a dangerous tournament between three schools of magic.',
genres: [ 'Adventure', 'Family', 'Fantasy' ],
title: 'Harry Potter and the Goblet of Fire',
cast: [
'Eric Sykes',
'Timothy Spall',
'David Tennant',
'Daniel Radcliffe'
]
},
{
plot: "With their warning about Lord Voldemort's return scoffed at, Harry and Dumbledore are targeted by the Wizard authorities as an authoritarian bureaucrat slowly seizes power at Hogwarts.",
genres: [ 'Adventure', 'Family', 'Fantasy' ],
cast: [
'Daniel Radcliffe',
'Harry Melling',
'Jason Boyd',
'Richard Macklin'
],
title: 'Harry Potter and the Order of the Phoenix',
fullplot: "After a lonely summer on Privet Drive, Harry returns to a Hogwarts full of ill-fortune. Few of students and parents believe him or Dumbledore that Voldemort is really back. The ministry had decided to step in by appointing a new Defence Against the Dark Arts teacher that proves to be the nastiest person Harry has ever encountered. Harry also can't help stealing glances with the beautiful Cho Chang. To top it off are dreams that Harry can't explain, and a mystery behind something Voldemort is searching for. With these many things Harry begins one of his toughest years at Hogwarts School of Witchcraft and Wizardry.",
imdb: { rating: 7.5 }
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment