UCJEPS-461: consolidation of solr query code and other helper functions in utils.py