Changed the Solr commit method.