From b34713324aa5afa66ce7da1f2047654b382e7218 Mon Sep 17 00:00:00 2001 From: hermens Date: Tue, 7 Mar 2006 22:19:39 +0000 Subject: [PATCH] DBImport: remove words from source index even if nothing has been added to home index git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1849 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/plasma/dbImport/plasmaDbImporter.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/de/anomic/plasma/dbImport/plasmaDbImporter.java b/source/de/anomic/plasma/dbImport/plasmaDbImporter.java index dbd3916f1..be4a12754 100644 --- a/source/de/anomic/plasma/dbImport/plasmaDbImporter.java +++ b/source/de/anomic/plasma/dbImport/plasmaDbImporter.java @@ -184,8 +184,7 @@ public class plasmaDbImporter extends AbstractImporter implements dbImporter { if (isAborted()) break; // importing entity container to home db - if (newContainer.size() == 0) continue; - this.homeWordIndex.addEntries(newContainer, System.currentTimeMillis(), false); + if (newContainer.size() > 0) { this.homeWordIndex.addEntries(newContainer, System.currentTimeMillis(), false); } // delete complete index entity file this.importWordIndex.deleteIndex(this.wordHash);