From 55b2b7636b636b7f5f7e29c4a65c20eb97b8da5b Mon Sep 17 00:00:00 2001 From: Viktor Lofgren Date: Mon, 10 Jun 2024 18:27:15 +0200 Subject: [PATCH] (loader) Correctly load the positions column in the keyword projection --- .../model/processed/DocumentRecordKeywordsProjection.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/process-models/processed-data/java/nu/marginalia/model/processed/DocumentRecordKeywordsProjection.java b/code/process-models/processed-data/java/nu/marginalia/model/processed/DocumentRecordKeywordsProjection.java index 5e98f96c..9f332841 100644 --- a/code/process-models/processed-data/java/nu/marginalia/model/processed/DocumentRecordKeywordsProjection.java +++ b/code/process-models/processed-data/java/nu/marginalia/model/processed/DocumentRecordKeywordsProjection.java @@ -41,7 +41,7 @@ public class DocumentRecordKeywordsProjection { } public static Collection requiredColumns() { - return List.of("domain", "ordinal", "htmlFeatures", "word", "wordMeta", "documentMetadata", "length"); + return List.of("domain", "ordinal", "htmlFeatures", "word", "wordMeta", "documentMetadata", "length", "positions"); } @SneakyThrows @@ -63,7 +63,7 @@ public class DocumentRecordKeywordsProjection { } this.metas.add((long) value); } - case "position" -> { + case "positions" -> { if (this.positions == null) { this.positions = new ArrayList<>(100); }