MongoDB: get documents by tags

Viewed 14876

I've got documents containing tags array. I want to provide tags based recommendations on site, so I need to get documents containing same tags + documents that don't match 1 tag + documents that don't match 2 tags and etc...

How do I do that?

3 Answers
Related