using solr index instead of querying each object