@Override public void rollback() { execute( new SolrCallback<UpdateResponse>() { @Override public UpdateResponse doInSolr(SolrServer solrServer) throws SolrServerException, IOException { return solrServer.rollback(); } }); }
@Override public void softCommit() { if (VersionUtil.isSolr3XAvailable()) { throw new UnsupportedOperationException( "Soft commit is not available for solr version lower than 4.x - Please check your depdendencies."); } execute( new SolrCallback<UpdateResponse>() { @Override public UpdateResponse doInSolr(SolrServer solrServer) throws SolrServerException, IOException { return solrServer.commit(true, true, true); } }); }