From b26dc9aabe774812dedffb96c3efeb0dfd4252dc Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Mon, 23 Oct 2023 16:06:06 +0200 Subject: [PATCH] Explanatory code comment --- milli/src/update/facet/bulk.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/milli/src/update/facet/bulk.rs b/milli/src/update/facet/bulk.rs index 297d189cd..c0b159e57 100644 --- a/milli/src/update/facet/bulk.rs +++ b/milli/src/update/facet/bulk.rs @@ -167,6 +167,7 @@ impl FacetsUpdateBulkInner { // then we extend the buffer with the docids bitmap match database.get(wtxn, key)? { Some(prev_value) => { + // prev_value is the group size for level 0, followed by the previous bitmap. let old_bitmap = &prev_value[1..]; CboRoaringBitmapCodec::merge_deladd_into(value, old_bitmap, &mut buffer)?; }