diff --git a/Cargo.lock b/Cargo.lock index 46d3b0347..462bc69e6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1702,7 +1702,7 @@ dependencies = [ [[package]] name = "sdset" version = "0.3.6" -source = "git+https://github.com/Kerollmops/sdset?branch=intersection-by-key#03c5008a4b23e11ba89c5579b023473b555d3864" +source = "git+https://github.com/Kerollmops/sdset?branch=intersection-by-key#f8f5f9eeec3795d25f07f5b8a97d2df902ece7ec" [[package]] name = "semver" diff --git a/meilisearch-core/src/update/documents_addition.rs b/meilisearch-core/src/update/documents_addition.rs index 6182053bb..c09f3114d 100644 --- a/meilisearch-core/src/update/documents_addition.rs +++ b/meilisearch-core/src/update/documents_addition.rs @@ -184,7 +184,6 @@ pub fn apply_documents_addition<'a, 'b>( indexer, )?; - // retrieve the words fst to compute all those prefixes let words_fst = match main_store.words_fst(writer)? { Some(fst) => fst, @@ -205,9 +204,8 @@ pub fn apply_documents_addition<'a, 'b>( if let Some(postings_list) = postings_lists_store.postings_list(writer, input)?.map(|p| p.matches.into_owned()) { let prefix = &input[..prefix_len]; - let mut array = [0; 4]; - array[..prefix_len].copy_from_slice(prefix); - let arr_prefix = array; + let mut arr_prefix = [0; 4]; + arr_prefix[..prefix_len].copy_from_slice(prefix); match previous_prefix { Some((ref mut prev_prefix, ref mut prev_postings_list)) if *prev_prefix != arr_prefix => {