Add date facet and generic function to set parameter for building Solr query