if you search for or click on a movie M, then you show that movie + (n-1) other movies. You compute those n-1 movies the following way: you compute the set of actors+directors for M, and then find the top n-1 other movies that have the greatest overlap of actors + directors sets with M.
I don't how computatiuonally intensive this is. If it's not feasible then do the following. Query for all movies of the director or M. Query for all the movies of first,second, third, fourth, and fifth actors in M. Then look at overlaps just within these movies.
I don't how computatiuonally intensive this is. If it's not feasible then do the following. Query for all movies of the director or M. Query for all the movies of first,second, third, fourth, and fifth actors in M. Then look at overlaps just within these movies.