diff --git a/src/main/java/com/metaweb/gridworks/model/Recon.java b/src/main/java/com/metaweb/gridworks/model/Recon.java index c565e33fa..4ff6752a5 100644 --- a/src/main/java/com/metaweb/gridworks/model/Recon.java +++ b/src/main/java/com/metaweb/gridworks/model/Recon.java @@ -141,7 +141,9 @@ public class Recon implements HasFields, Jsonizable { } public Object getField(String name, Properties bindings) { - if ("best".equals(name)) { + if ("id".equals(name)) { + return id; + } else if ("best".equals(name)) { return candidates != null && candidates.size() > 0 ? candidates.get(0) : null; } else if ("candidates".equals(name)) { return candidates; diff --git a/src/main/java/com/metaweb/gridworks/operations/ReconMarkNewTopicsOperation.java b/src/main/java/com/metaweb/gridworks/operations/ReconMarkNewTopicsOperation.java index 3d8736514..20d0ddf4c 100644 --- a/src/main/java/com/metaweb/gridworks/operations/ReconMarkNewTopicsOperation.java +++ b/src/main/java/com/metaweb/gridworks/operations/ReconMarkNewTopicsOperation.java @@ -75,7 +75,6 @@ public class ReconMarkNewTopicsOperation extends EngineDependentMassCellOperatio int cellIndex; List cellChanges; Map sharedRecons = new HashMap(); - Map dupReconMap = new HashMap(); long historyEntryID; public RowVisitor init(int cellIndex, List cellChanges, long historyEntryID) { @@ -103,20 +102,12 @@ public class ReconMarkNewTopicsOperation extends EngineDependentMassCellOperatio sharedRecons.put(s, recon); } } else { - long reconID = cell.recon == null ? 0 : cell.recon.id; - if (dupReconMap.containsKey(reconID)) { - recon = dupReconMap.get(reconID); - recon.judgmentBatchSize++; - } else { - recon = cell.recon == null ? new Recon(historyEntryID) : cell.recon.dup(historyEntryID); - recon.match = null; - recon.matchRank = -1; - recon.judgment = Judgment.New; - recon.judgmentBatchSize = 1; - recon.judgmentAction = "mass"; - - dupReconMap.put(reconID, recon); - } + recon = cell.recon == null ? new Recon(historyEntryID) : cell.recon.dup(historyEntryID); + recon.match = null; + recon.matchRank = -1; + recon.judgment = Judgment.New; + recon.judgmentBatchSize = 1; + recon.judgmentAction = "mass"; } Cell newCell = new Cell(cell.value, recon);