Skip to content

Instantly share code, notes, and snippets.

@mchernyavskaya
Created September 30, 2022 16:55
Show Gist options
  • Save mchernyavskaya/2f77a0d178c7469c4d1a6c915f6bed60 to your computer and use it in GitHub Desktop.
Save mchernyavskaya/2f77a0d178c7469c4d1a6c915f6bed60 to your computer and use it in GitHub Desktop.
db.movies.find({$text: {$search: "drama"}}, {"title": 1, "plot": 1, "genres": 1, "_id": 0}).limit(5).sort({ "title": 1 })
[
{
plot: 'From her childhood bedroom in the Chicago suburbs, an American teenage girl uses social media to run the revolution in Syria. Armed with Facebook, Twitter, Skype and cameraphones, she helps...',
genres: [ 'Documentary', 'Action', 'Drama' ],
title: '#chicagoGirl: The Social Network Takes on a Dictator'
},
{
plot: 'A bank security expert plots with a call girl to rob three safety deposit boxes containing $1.5 million in cash belonging to three very different criminals from a high-tech security bank in Hamburg, Germany.',
genres: [ 'Comedy', 'Crime', 'Drama' ],
title: '$'
},
{
plot: 'A stop-motion animated story about people living in a Sydney apartment complex looking for meaning in their lives.',
genres: [ 'Animation', 'Drama' ],
title: '$9.99'
},
{
plot: 'A young and disoriented British soldier is accidentally abandoned by his unit following a riot on the deadly streets of Belfast in 1971.',
genres: [ 'Action', 'Drama', 'Thriller' ],
title: "'71"
},
{
plot: 'When Harold, a young white man, learns that his alcoholic, handicapped father is returning home, his frustration turns into racist viciousness against the two black men who work for the family.',
genres: [ 'Drama' ],
title: "'Master Harold'... and the Boys"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment