Fix putative overflow error with a large dictionary
This commit is contained in:
parent
6814c90625
commit
fd192d2791
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user