tweaked solr script