How to query for related or similar documents in mongo?


If i am viewing lets say a movie, what is the best way to get similar movies based on description or tags?


@sikanx, the best way to do this is creating a MapReduce function, take a look at this article. This is allow you to grow without much pain. But if you want you can map the tags on the server, for each movie (maybe category filtered) and order by similar tags. That would work as well, but it will be slower with a lot of documents. Do you need any help doing the script?