fix for last ranking commit

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2529 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 19 years ago
parent cc97a3e9c6
commit 94d7ced900

@ -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};
}

@ -204,7 +204,7 @@ public final class plasmaSearchResult {
// scan all subpaths of the url
while (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) {

Loading…
Cancel
Save