Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {"searchPhrases" : [
- "cheap samsung mobile",
- "red nokia 2mp"
- ]
- }
- { "searchPhrases" : [
- "red peter england shirt",
- "redish lee pant"
- ]
- }
- db.readData.aggregate(
- { $match: {"searchPhrases": { $in : ["cheap samsung mobile"] } } },
- { $unwind: $searchPhrases },
- { $match: {"searchPhrases": { $in : ["cheap samsung mobile"] } } },
- { $group: { _id:"$searchPhrases" } }
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement