diff --git a/meilisearch-core/src/raw_indexer.rs b/meilisearch-core/src/raw_indexer.rs index d83c02a28..a61a6f89c 100644 --- a/meilisearch-core/src/raw_indexer.rs +++ b/meilisearch-core/src/raw_indexer.rs @@ -138,6 +138,7 @@ where fn process_tokens<'a>(tokens: impl Iterator>) -> impl Iterator)> { tokens + .skip_while(|token| !token.is_word()) .scan((0, None), |(offset, prev_kind), token| { match token.kind { TokenKind::Word | TokenKind::StopWord | TokenKind::Unknown => {