Fix putative overflow error with a large dictionary

This commit is contained in:
Viktor Lofgren 2023-05-28 11:52:46 +02:00
parent 6814c90625
commit fd192d2791

View File

@ -174,6 +174,6 @@ public class IndexMetadataService {
public record TermCoherences(List<int[]> words) {}
private static long termdocKey(int termId, long docId) {
return (docId << 32) | termId;
return (docId << 32) | Integer.toUnsignedLong(termId);
}
}