mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-01-31 07:23:15 +08:00
Update milli/src/search/matches/mod.rs
This commit is contained in:
parent
e261ef64d7
commit
d7fd5c58cd
@ -257,7 +257,7 @@ impl<'t, A: AsRef<[u8]>> Matcher<'t, '_, A> {
|
|||||||
// an iterator starting from the last match token position and going trew the end of the text.
|
// an iterator starting from the last match token position and going trew the end of the text.
|
||||||
let mut after_tokens = tokens[last_match_token_position..].iter().peekable();
|
let mut after_tokens = tokens[last_match_token_position..].iter().peekable();
|
||||||
|
|
||||||
// gross the crop window peeking in both drections
|
// grows the crop window peeking in both directions
|
||||||
// until the window contains the good number of words:
|
// until the window contains the good number of words:
|
||||||
while remaining_words > 0 {
|
while remaining_words > 0 {
|
||||||
let before_token = before_tokens.peek().map(|t| t.separator_kind());
|
let before_token = before_tokens.peek().map(|t| t.separator_kind());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user