Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

fix for yacy-banner-network-values http://forum.yacy-websuche.de/viewtopic.php?f=6&t=2521

sixcoolere071d71f19a4
diff --git a/source/net/yacy/kelondro/blob/MapDataMining.java b/source/net/yacy/kelondro/blob/MapDataMining.java
index 0a6d51a0f..645b96425 100644
--- a/source/net/yacy/kelondro/blob/MapDataMining.java
+++ b/source/net/yacy/kelondro/blob/MapDataMining.java
@@ -192,22 +192,28 @@ public class MapDataMining extends MapHeap {
assert (key.length() > 0);
assert (newMap != null);
- super.put(key, newMap);
-
- // update sortCluster
- if (sortClusterMap != null) updateSortCluster(key, newMap);
+// super.put(key, newMap); // moved down for solving yacy-bar-values - needed to be before the other stuff?
+//
+// // update sortCluster
+// if (sortClusterMap != null) updateSortCluster(key, newMap);
// update elementCount
if ((longaccfields != null) || (doubleaccfields != null)) {
final Map<String, String> oldMap = super.get(key, false);
if (oldMap != null) {
// element exists, update acc
- if ((longaccfields != null) || (doubleaccfields != null)) updateAcc(oldMap, false);
+ // if ((longaccfields != null) || (doubleaccfields != null)) updateAcc(oldMap, false); // we already checked this - don't we?
+ updateAcc(oldMap, false);
}
// update accumulators with new values (add)
updateAcc(newMap, true);
}
+
+ super.put(key, newMap);
+
+ // update sortCluster
+ if (sortClusterMap != null) updateSortCluster(key, newMap);
}
private void updateAcc(final Map<String, String> map, final boolean add) {