mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Fix bulk facet indexing bug
This commit is contained in:
parent
84dd2e4df1
commit
9dd4b33a9a
2 changed files with 52 additions and 2 deletions
|
@ -436,6 +436,8 @@ impl FacetsUpdateIncrementalInner {
|
|||
level: highest_level + 1,
|
||||
left_bound: first_key.unwrap().left_bound,
|
||||
};
|
||||
// Note: nbr_leftover_elements can be casted to a u8 since it is bounded by `max_group_size`
|
||||
// when it is created above.
|
||||
let value = FacetGroupValue { size: nbr_leftover_elements as u8, bitmap: values };
|
||||
to_add.push((key.into_owned(), value));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue