From 5b20e625f3a9cf543a47e88a70446de55a463844 Mon Sep 17 00:00:00 2001 From: ManyTheFish Date: Thu, 2 Nov 2023 15:31:37 +0100 Subject: [PATCH] fix merge --- milli/src/update/index_documents/transform.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/milli/src/update/index_documents/transform.rs b/milli/src/update/index_documents/transform.rs index 82cf55d42..2eec69da5 100644 --- a/milli/src/update/index_documents/transform.rs +++ b/milli/src/update/index_documents/transform.rs @@ -281,7 +281,8 @@ impl<'a, 'i> Transform<'a, 'i> { keep_original_version, &mut document_sorter_value_buffer, )?; - self.original_sorter.insert(&document_sorter_key_buffer, &document_sorter_buffer)?; + self.original_sorter + .insert(&document_sorter_key_buffer, &document_sorter_value_buffer)?; let base_obkv = KvReader::new(base_obkv); if let Some(flattened_obkv) = self.flatten_from_fields_ids_map(base_obkv)? { // we recreate our buffer with the flattened documents @@ -294,7 +295,8 @@ impl<'a, 'i> Transform<'a, 'i> { &mut document_sorter_value_buffer, )?; } - self.flattened_sorter.insert(docid.to_be_bytes(), &document_sorter_value_buffer)?; + self.flattened_sorter + .insert(docid.to_be_bytes(), &document_sorter_value_buffer)?; } } @@ -465,7 +467,8 @@ impl<'a, 'i> Transform<'a, 'i> { &mut document_sorter_value_buffer, )?; } - self.flattened_sorter.insert(docid.to_be_bytes(), &document_sorter_value_buffer)?; + self.flattened_sorter + .insert(docid.to_be_bytes(), &document_sorter_value_buffer)?; true }