public UpdateResponse rollback() throws SolrServerException, IOException { return new UpdateRequest().rollback().process( this ); }
/** * Performs a rollback of all non-committed documents pending. * * Note that this is not a true rollback as in databases. Content you have previously * added may have been committed due to autoCommit, buffer full, other client performing * a commit etc. * * @param collection the Solr collection to send the rollback to * * @return an {@link org.apache.solr.client.solrj.response.UpdateResponse} containing the response * from the server * * @throws IOException If there is a low-level I/O error. * @throws SolrServerException if there is an error on the server */ public UpdateResponse rollback(String collection) throws SolrServerException, IOException { return new UpdateRequest().rollback().process(this, collection); }
/** * Performs a rollback of all non-committed documents pending. * * Note that this is not a true rollback as in databases. Content you have previously * added may have been committed due to autoCommit, buffer full, other client performing * a commit etc. * <p> * Also note that rollbacks reset changes made by <i>all</i> clients. Use this method carefully when multiple clients, * or multithreaded clients are in use. * * @param collection the Solr collection to send the rollback to * * @return an {@link org.apache.solr.client.solrj.response.UpdateResponse} containing the response * from the server * * @throws IOException If there is a low-level I/O error. * @throws SolrServerException if there is an error on the server */ public UpdateResponse rollback(String collection) throws SolrServerException, IOException { return new UpdateRequest().rollback().process(this, collection); }