Package org.apache.solr.client.solrj.response

Examples of org.apache.solr.client.solrj.response.UpdateResponse


          // Note: I need to know whether the document has been permanently rejected or not, but we currently have
          // no means to determine that.  Analysis of SolrServerExceptions that have been thrown is likely needed.
          try
          {
            readFromDocumentStreamYet = true;
            UpdateResponse response = contentStreamUpdateRequest.process(solrServer);
           
            // Successful completion
            activityStart = new Long(fullStartTime);
            activityBytes = new Long(length);
            activityCode = "OK";
View Full Code Here


        // Do the operation!
        long fullStartTime = System.currentTimeMillis();
        // Open a socket to ingest, and to the response stream to get the post result
        try
        {
          UpdateResponse response = new UpdateRequest(postRemoveAction).deleteById(documentURI).process(solrServer);
           
          // Success
          activityStart = new Long(fullStartTime);
          activityCode = "OK";
          activityDetails = null;
View Full Code Here

      {
        try
        {
          // Do the operation!
          UpdateRequest updateRequest = new UpdateRequest(postUpdateAction + "?commit=true");
          UpdateResponse response = updateRequest.process(solrServer);
          //UpdateResponse response = solrServer.commit();
        }
        catch (InterruptedIOException ioe)
        {
          return;
View Full Code Here

          // Note: I need to know whether the document has been permanently rejected or not, but we currently have
          // no means to determine that.  Analysis of SolrServerExceptions that have been thrown is likely needed.
          try
          {
            readFromDocumentStreamYet = true;
            UpdateResponse response = contentStreamUpdateRequest.process(solrServer);
           
            // Successful completion
            activityStart = new Long(fullStartTime);
            activityBytes = new Long(length);
            activityCode = "OK";
View Full Code Here

        // Do the operation!
        long fullStartTime = System.currentTimeMillis();
        // Open a socket to ingest, and to the response stream to get the post result
        try
        {
          UpdateResponse response = new UpdateRequest(postRemoveAction).deleteById(documentURI).process(solrServer);
           
          // Success
          activityStart = new Long(fullStartTime);
          activityCode = "OK";
          activityDetails = null;
View Full Code Here

      {
        try
        {
          // Do the operation!
          UpdateRequest updateRequest = new UpdateRequest(postUpdateAction + "?commit=true");
          UpdateResponse response = updateRequest.process(solrServer);
          //UpdateResponse response = solrServer.commit();
        }
        catch (InterruptedIOException ioe)
        {
          return;
View Full Code Here

    return solrServer;
  }
 
  public Boolean commit() {
    try {
      UpdateResponse updateResponse = solrServer.commit();
      return successResponse(updateResponse);
    } catch (SolrServerException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
      return false;
View Full Code Here

    }
    if (query.length() > 0){
      query = query.substring(0, query.lastIndexOf(" OR "));
    }
    //logger.info(query);
    UpdateResponse updateResponse = solrServer.deleteByQuery(query);
    //UpdateResponse updateResponse = solrServer.deleteById(ids);
    if (successResponse(updateResponse)){
      return updateResponse.toString();
    }
    return "";
  }
View Full Code Here

    }
  }

  public int add(SolrRecord solrRecord) {
    int status = 0;
    UpdateResponse updateResponse = null;
    try {
      logger.debug("begin adding solr record");
      updateResponse = solrServer.addBean(solrRecord);
      status = updateResponse.getStatus();
      logger.debug("Status code: " + Integer.toString(status));

    } catch (IOException e) {
      logger.error("IO Exception trying to add Bean");
      e.printStackTrace();
View Full Code Here

          // Note: I need to know whether the document has been permanently rejected or not, but we currently have
          // no means to determine that.  Analysis of SolrServerExceptions that have been thrown is likely needed.
          try
          {
            readFromDocumentStreamYet = true;
            UpdateResponse response = contentStreamUpdateRequest.process(solrServer);
           
            // Successful completion
            activityStart = new Long(fullStartTime);
            activityBytes = new Long(length);
            activityCode = "OK";
View Full Code Here

TOP

Related Classes of org.apache.solr.client.solrj.response.UpdateResponse

Copyright © 2018 www.massapicom. 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.