Solr function which mimics cmodel_relationships_towards