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 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 map, final boolean add) {