Ejemplo n.º 1
0
 @Override
 public void rollback() {
   execute(
       new SolrCallback<UpdateResponse>() {
         @Override
         public UpdateResponse doInSolr(SolrServer solrServer)
             throws SolrServerException, IOException {
           return solrServer.rollback();
         }
       });
 }
Ejemplo n.º 2
0
 @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);
         }
       });
 }