Adjust solr-before script