Similar Items: A Framework for Predictive Similarity Queries Over Heterogeneous Metric Spaces