manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1437614 - in /manifoldcf/trunk: CHANGES.txt connectors/solr/connector/src/main/java/org/apache/manifoldcf/agents/output/solr/HttpPoster.java
Date Wed, 23 Jan 2013 18:36:09 GMT
Author: kwright
Date: Wed Jan 23 18:36:09 2013
New Revision: 1437614

URL: http://svn.apache.org/viewvc?rev=1437614&view=rev
Log:
Fix for CONNECTORS-621.

Modified:
    manifoldcf/trunk/CHANGES.txt
    manifoldcf/trunk/connectors/solr/connector/src/main/java/org/apache/manifoldcf/agents/output/solr/HttpPoster.java

Modified: manifoldcf/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/CHANGES.txt?rev=1437614&r1=1437613&r2=1437614&view=diff
==============================================================================
--- manifoldcf/trunk/CHANGES.txt (original)
+++ manifoldcf/trunk/CHANGES.txt Wed Jan 23 18:36:09 2013
@@ -8,6 +8,10 @@ CONNECTORS-617: Simple report NPE under 
 
 ======================= Release 1.1 =====================
 
+CONNECTORS-621: Solr connector commit logic needs to use specified
+update path.
+(Karl Wright)
+
 CONNECTORS-620: It was possible for the JDBC Connector to leak
 JDBC connections under some error conditions.
 (Anthony Leonard, Karl Wright)

Modified: manifoldcf/trunk/connectors/solr/connector/src/main/java/org/apache/manifoldcf/agents/output/solr/HttpPoster.java
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/solr/connector/src/main/java/org/apache/manifoldcf/agents/output/solr/HttpPoster.java?rev=1437614&r1=1437613&r2=1437614&view=diff
==============================================================================
--- manifoldcf/trunk/connectors/solr/connector/src/main/java/org/apache/manifoldcf/agents/output/solr/HttpPoster.java
(original)
+++ manifoldcf/trunk/connectors/solr/connector/src/main/java/org/apache/manifoldcf/agents/output/solr/HttpPoster.java
Wed Jan 23 18:36:09 2013
@@ -1032,7 +1032,9 @@ public class HttpPoster
         try
         {
           // Do the operation!
-          UpdateResponse response = solrServer.commit();
+          UpdateRequest updateRequest = new UpdateRequest(postUpdateAction + "?commit=true");
+          UpdateResponse response = updateRequest.process(solrServer);
+          //UpdateResponse response = solrServer.commit();
         }
         catch (InterruptedIOException ioe)
         {



Mime
View raw message