Skip to content

Instantly share code, notes, and snippets.

@mchernyavskaya
Created September 30, 2022 17:04
Show Gist options
  • Save mchernyavskaya/7af02fc93dc115c049c0c4e02c62e34d to your computer and use it in GitHub Desktop.
Save mchernyavskaya/7af02fc93dc115c049c0c4e02c62e34d to your computer and use it in GitHub Desktop.
db.movies.find({$text: {$search: "drama -comedy -action"}}, {"title": 1, "plot": 1, "genres": 1, "_id": 0}).limit(5).sort({ "title": 1 })
[
{
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: '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"
},
{
plot: 'A New York drug dealer is kidnapped, and his wife must try to come up with the money and drugs to free him from his abductors before Christmas.',
genres: [ 'Crime', 'Drama' ],
title: "'R Xmas"
},
{
plot: "In 'Round Midnight, real-life jazz legend Dexter Gordon brilliantly portrays the fictional tenor sax player Dale Turner, a musician slowly losing the battle with alcoholism, estranged from ...",
genres: [ 'Drama', 'Music' ],
title: "'Round Midnight"
},
{
plot: "What would you do if someone you loved sat down with you one night and calmly told you that they were going to end their life before morning? This is Thelma Cates' dilemma. Her daughter, ...",
genres: [ 'Drama' ],
title: "'night, Mother"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment