Skip to content

Instantly share code, notes, and snippets.

@mchernyavskaya
Created October 3, 2022 12:35
Show Gist options
  • Save mchernyavskaya/b88ae2f7e1d2c80be9f4ad38366fac13 to your computer and use it in GitHub Desktop.
Save mchernyavskaya/b88ae2f7e1d2c80be9f4ad38366fac13 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: 'A comprehensive survey of the American Civil War.',
genres: [ 'Documentary', 'History', 'War' ],
cast: [
'Sam Waterston',
'Julie Harris',
'Jason Robards',
'Morgan Freeman'
],
title: 'The Civil War',
fullplot: "This highly acclaimed mini series traces the course of the U.S. Civil War from the abolitionist movement through all the major battles to the death of President Lincoln and the beginnings of Reconstruction. The story is mostly told in the words of the participants themselves, through their diaries, letters, and Visuals are usually still photographs and illustrations of the time, and the soundtrack is likewise made up of war-era tunes played on period instruments. Several modern-day historians offer periodic comment and insight on the war's causes and events.",
imdb: { rating: 9.4 }
},
{
plot: 'A comprehensive survey of the American Civil War.',
genres: [ 'Documentary', 'History', 'War' ],
cast: [
'Sam Waterston',
'Julie Harris',
'Jason Robards',
'Morgan Freeman'
],
title: 'The Civil War',
fullplot: "This highly acclaimed mini series traces the course of the U.S. Civil War from the abolitionist movement through all the major battles to the death of President Lincoln and the beginnings of Reconstruction. The story is mostly told in the words of the participants themselves, through their diaries, letters, and Visuals are usually still photographs and illustrations of the time, and the soundtrack is likewise made up of war-era tunes played on period instruments. Several modern-day historians offer periodic comment and insight on the war's causes and events.",
imdb: { rating: 9.4 }
},
{
plot: 'An aspiring supervillain must balance his career and his pursuit of a beautiful do-gooder.',
genres: [ 'Comedy', 'Musical', 'Sci-Fi' ],
cast: [
'Neil Patrick Harris',
'Nathan Fillion',
'Felicia Day',
'Simon Helberg'
],
title: "Dr. Horrible's Sing-Along Blog",
fullplot: `Dr. Horrible, an aspiring supervillain with his own video blog, is attempting to join the prestigious Evil League of Evil (led by the legendary "thoroughbred of sin", Bad Horse), but his plans are usually foiled by the egotistical superhero Captain Hammer. Horrible's life is thrown for a loop when he falls in love with Penny, a beautiful and optimistic advocate for the homeless he meets at the laundromat, a situation which complicates itself even further when Penny begins dating the boorish, oafish Hammer after he apparently saves her life. Faced with the task of impressing the League, can Horrible overcome his own incompetence to ruin the day, kill the hero, and still get the girl?`,
imdb: { rating: 8.7 }
},
{
plot: 'An angel helps a compassionate but despairingly frustrated businessman by showing what life would have been like if he never existed.',
genres: [ 'Drama', 'Family', 'Fantasy' ],
cast: [
'James Stewart',
'Donna Reed',
'Lionel Barrymore',
'Thomas Mitchell'
],
title: "It's a Wonderful Life",
fullplot: "George Bailey has spent his entire life giving of himself to the people of Bedford Falls. He has always longed to travel but never had the opportunity in order to prevent rich skinflint Mr. Potter from taking over the entire town. All that prevents him from doing so is George's modest building and loan company, which was founded by his generous father. But on Christmas Eve, George's Uncle Billy loses the business's $8,000 while intending to deposit it in the bank. Potter finds the misplaced money and hides it from Billy. When the bank examiner discovers the shortage later that night, George realizes that he will be held responsible and sent to jail and the company will collapse, finally allowing Potter to take over the town. Thinking of his wife, their young children, and others he loves will be better off with him dead, he contemplates suicide. But the prayers of his loved ones result in a gentle angel named Clarence coming to earth to help George, with the promise of earning his wings. He shows George what things would have been like if he had never been born. In a nightmarish vision in which the Potter-controlled town is sunk in sex and sin, those George loves are either dead, ruined, or miserable. He realizes that he has touched many people in a positive way and that his life has truly been a wonderful one.",
imdb: { rating: 8.6 }
},
{
plot: 'With the aid of a wealthy erratic tippler, a dewy-eyed tramp who has fallen in love with a sightless flower girl accumulates money to be able to help her medically.',
genres: [ 'Comedy', 'Drama', 'Romance' ],
cast: [
'Virginia Cherrill',
'Florence Lee',
'Harry Myers',
'Al Ernest Garcia'
],
title: 'City Lights',
fullplot: "A tramp falls in love with a beautiful blind girl. Her family is in financial trouble. The tramp's on-and-off friendship with a wealthy man allows him to be the girl's benefactor and suitor.",
imdb: { rating: 8.6 }
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment