fix indexed document length bug

This commit is contained in:
mpostma 2020-06-30 17:11:15 +02:00
parent 0953d99198
commit 3423c0b246
2 changed files with 38 additions and 1 deletions

View file

@ -124,7 +124,7 @@ fn index_token<A>(
) -> bool
where A: AsRef<[u8]>,
{
if token.word_index >= word_limit {
if token.index >= word_limit {
return false;
}