Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-991 SolrDedup must issue a commit

Markus Jelsma2150e90ab0b1
diff --git a/CHANGES.txt b/CHANGES.txt
index 8d68deaf7..b8385c565 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -2,6 +2,8 @@ Nutch Change Log
Release 1.3 - 4/21/2011
+* NUTCH-991 SolrDedup must issue a commit (markus)
+
* NUTCH 986 SolrDedup fails due to date incorrect format (markus)
* NUTCH-977 SolrMappingReader uses hardcoded configuration parameter name for mapping file (markus)
diff --git a/src/java/org/apache/nutch/indexer/solr/SolrDeleteDuplicates.java b/src/java/org/apache/nutch/indexer/solr/SolrDeleteDuplicates.java
index a5852b147..9defa1ad1 100644
--- a/src/java/org/apache/nutch/indexer/solr/SolrDeleteDuplicates.java
+++ b/src/java/org/apache/nutch/indexer/solr/SolrDeleteDuplicates.java
@@ -308,6 +308,7 @@ Tool {
if (numDeletes > 0) {
LOG.info("SolrDeleteDuplicates: deleting " + numDeletes + " duplicates");
updateRequest.process(solr);
+ solr.commit();
}
} catch (SolrServerException e) {
throw new IOException(e);