(loader) Correctly load the positions column in the keyword projection

This commit is contained in:
Viktor Lofgren 2024-06-10 18:27:15 +02:00
parent 36160988e2
commit 55b2b7636b

View File

@ -41,7 +41,7 @@ public class DocumentRecordKeywordsProjection {
}
public static Collection<String> 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);
}