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 Jelsma7ca1e610badf
diff --git a/CHANGES.txt b/CHANGES.txt
index ec0ae22da..9c64ab63b 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -2,6 +2,8 @@ Nutch Change Log
Release 2.0 - Current Development
+* 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 b0bbec5f7..1796f148a 100644
--- a/src/java/org/apache/nutch/indexer/solr/SolrDeleteDuplicates.java
+++ b/src/java/org/apache/nutch/indexer/solr/SolrDeleteDuplicates.java
@@ -316,6 +316,8 @@ implements Tool {
try {
if (numDeletes > 0) {
updateRequest.process(solr);
+
+ solr.commit();
}
} catch (SolrServerException e) {
throw new IOException(e);