solr query bug fix