Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
bugfix for latest changes to entry generalization
orbiterb2d51be33c1e
diff --git a/source/de/anomic/plasma/plasmaSearchEvent.java b/source/de/anomic/plasma/plasmaSearchEvent.javaindex d11096e7d..af7f9afdd 100644--- a/source/de/anomic/plasma/plasmaSearchEvent.java+++ b/source/de/anomic/plasma/plasmaSearchEvent.java@@ -209,9 +209,9 @@ public final class plasmaSearchEvent extends Thread implements Runnable {return result;} else {Map searchContainerMap = localSearchContainers(null);- indexContainer rcLocal = localSearchJoin((searchContainerMap == null) ? null : searchContainerMap.values());+ indexContainer rcLocal = (searchContainerMap == null) ? wordIndex.emptyContainer(null) : localSearchJoin(searchContainerMap.values());plasmaSearchResult result = orderFinal(rcLocal);- result.localContributions = (rcLocal == null) ? 0 : rcLocal.size();+ result.localContributions = rcLocal.size();// return search resultlog.logFine("SEARCHRESULT: " + profileLocal.reportToString());@@ -335,7 +335,7 @@ public final class plasmaSearchEvent extends Thread implements Runnable {// join a search result and return the joincount (number of pages after join)// since this is a conjunction we return an empty entity if any word is not known- if (containers == null) return null;+ if (containers == null) return wordIndex.emptyContainer(null);// join the resultprofileLocal.startTimer();@@ -352,7 +352,8 @@ public final class plasmaSearchEvent extends Thread implements Runnable {// we collect the urlhashes and construct a list with urlEntry objects// attention: if minEntries is too high, this method will not terminate within the maxTime- if (rcLocal == null) return null;+ assert (rcLocal != null);+indexContainer searchResult = new indexContainer(null, rcLocal.row());long preorderTime = profileLocal.getTargetTime(plasmaSearchTimingProfile.PROCESS_PRESORT);diff --git a/source/de/anomic/plasma/plasmaWordIndex.java b/source/de/anomic/plasma/plasmaWordIndex.javaindex 844e1fa7e..2dc486437 100644--- a/source/de/anomic/plasma/plasmaWordIndex.java+++ b/source/de/anomic/plasma/plasmaWordIndex.java@@ -197,6 +197,10 @@ public final class plasmaWordIndex implements indexRI {return entries.updated();}+ public indexContainer emptyContainer(String wordHash) {+ return new indexContainer(wordHash, payloadrow);+ }+public indexContainer addEntry(String wordHash, indexEntry entry, long updateTime, boolean dhtInCase) {// set dhtInCase depending on wordHashif ((!dhtInCase) && (yacyDHTAction.shallBeOwnWord(wordHash))) dhtInCase = true;