Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fix for last ranking commit
orbiter94d7ced90077
diff --git a/source/de/anomic/plasma/plasmaSearchPreOrder.java b/source/de/anomic/plasma/plasmaSearchPreOrder.javaindex 1c0da89da..c5dfbe8de 100644--- a/source/de/anomic/plasma/plasmaSearchPreOrder.java+++ b/source/de/anomic/plasma/plasmaSearchPreOrder.java@@ -152,7 +152,7 @@ public final class plasmaSearchPreOrder {public Object[] /*{indexEntry, Long}*/ next() {String top = (String) pageAcc.firstKey();//System.out.println("preorder-key: " + top);- Long preranking = new Long(Long.parseLong(top.substring(0, 16), 16));+ Long preranking = new Long(Long.MAX_VALUE - Long.parseLong(top.substring(0, 16), 16));return new Object[]{(indexEntry) pageAcc.remove(top), preranking};}diff --git a/source/de/anomic/plasma/plasmaSearchResult.java b/source/de/anomic/plasma/plasmaSearchResult.javaindex e7e43661c..f1d4c7743 100644--- a/source/de/anomic/plasma/plasmaSearchResult.java+++ b/source/de/anomic/plasma/plasmaSearchResult.java@@ -204,7 +204,7 @@ public final class plasmaSearchResult {// scan all subpaths of the urlwhile (shorten != null) {if (paths.containsKey(shorten)) {- System.out.println("deleting path from search result: " + path + " is redundant to " + shorten);+ //System.out.println("deleting path from search result: " + path + " is redundant to " + shorten);try {i.remove();} catch (IllegalStateException e) {