fixes in trending solr query builder