Change database scheme: save link's tags names directly in the LinksScheme. For more informarion see http://stackoverflow.com/questions/18574291/how-to-find-documents-by-some-conditions-for-its-linked-documents?noredirect=1