Fix solr search from/to helper.