nutch-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r1101280 - in /nutch/branches/branch-1.3: CHANGES.txt src/java/org/apache/nutch/indexer/solr/SolrWriter.java
Date Tue, 10 May 2011 00:46:04 GMT
Author: markus
Date: Tue May 10 00:46:04 2011
New Revision: 1101280

URL: http://svn.apache.org/viewvc?rev=1101280&view=rev
Log:
NUTCH-996 Indexer adds solr.commit.size+1 docs

Modified:
    nutch/branches/branch-1.3/CHANGES.txt
    nutch/branches/branch-1.3/src/java/org/apache/nutch/indexer/solr/SolrWriter.java

Modified: nutch/branches/branch-1.3/CHANGES.txt
URL: http://svn.apache.org/viewvc/nutch/branches/branch-1.3/CHANGES.txt?rev=1101280&r1=1101279&r2=1101280&view=diff
==============================================================================
--- nutch/branches/branch-1.3/CHANGES.txt (original)
+++ nutch/branches/branch-1.3/CHANGES.txt Tue May 10 00:46:04 2011
@@ -2,6 +2,8 @@ Nutch Change Log
 
 Release 1.3 - 4/21/2011
 
+* NUTCH-996 Indexer adds solr.commit.size+1 docs (markus)
+
 * NUTCH-983 Upgrade SolrJ to 3.1 (markus, jnioche)
 
 * NUTCH-989 Index-basic plugin and Solr schema now use date fieldType for tstamp field (markus)

Modified: nutch/branches/branch-1.3/src/java/org/apache/nutch/indexer/solr/SolrWriter.java
URL: http://svn.apache.org/viewvc/nutch/branches/branch-1.3/src/java/org/apache/nutch/indexer/solr/SolrWriter.java?rev=1101280&r1=1101279&r2=1101280&view=diff
==============================================================================
--- nutch/branches/branch-1.3/src/java/org/apache/nutch/indexer/solr/SolrWriter.java (original)
+++ nutch/branches/branch-1.3/src/java/org/apache/nutch/indexer/solr/SolrWriter.java Tue May
10 00:46:04 2011
@@ -59,7 +59,7 @@ public class SolrWriter implements Nutch
     }
     inputDoc.setDocumentBoost(doc.getWeight());
     inputDocs.add(inputDoc);
-    if (inputDocs.size() > commitSize) {
+    if (inputDocs.size() >= commitSize) {
       try {
         solr.add(inputDocs);
       } catch (final SolrServerException e) {



Mime
View raw message