Package org.apache.solr.client.solrj.request

Examples of org.apache.solr.client.solrj.request.UpdateRequest.deleteById()


  private void sendDeletes(List deletes) throws SolrServerException, IOException {
    if (deletes.size() > 0) {
      UpdateRequest req = new UpdateRequest();
      for (Object delete : deletes) {
        if (delete instanceof String) {
          req.deleteById((String)delete); // add the delete to the req list
        } else {
          req.deleteByQuery(((StringBuilder)delete).toString()); // add the delete to the req list
        }
      }
      req.setCommitWithin(-1);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.