batch solr queries on the server side plus caching