From 5b552caf42f18a555655b3c09f01b4a1d396a10a Mon Sep 17 00:00:00 2001 From: ManyTheFish Date: Mon, 30 Sep 2024 11:46:32 +0200 Subject: [PATCH] Fix position in insertions --- milli/src/update/new/extract/searchable/extract_word_docids.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/milli/src/update/new/extract/searchable/extract_word_docids.rs b/milli/src/update/new/extract/searchable/extract_word_docids.rs index 20a69d4bc..caab170a4 100644 --- a/milli/src/update/new/extract/searchable/extract_word_docids.rs +++ b/milli/src/update/new/extract/searchable/extract_word_docids.rs @@ -125,6 +125,7 @@ impl WordDocidsCachedSorters { buffer.extend_from_slice(&field_id.to_be_bytes()); self.word_fid_docids.insert_add_u32(buffer, docid)?; + let position = bucketed_position(position); buffer.clear(); buffer.extend_from_slice(word.as_bytes()); buffer.push(0);