mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-23 05:14:27 +01:00
fix broken offset
This commit is contained in:
parent
25f8789aa5
commit
9c27183876
@ -133,7 +133,7 @@ impl<'a> Search<'a> {
|
|||||||
initial_candidates.union_with(&bucket_candidates);
|
initial_candidates.union_with(&bucket_candidates);
|
||||||
|
|
||||||
if offset != 0 {
|
if offset != 0 {
|
||||||
candidates.by_ref().skip(offset).for_each(drop);
|
candidates.by_ref().take(offset).for_each(drop);
|
||||||
offset = offset.saturating_sub(len.min(offset));
|
offset = offset.saturating_sub(len.min(offset));
|
||||||
len = len.saturating_sub(len.min(offset));
|
len = len.saturating_sub(len.min(offset));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user