add optimize in solr.rb