diff --git a/milli/src/index.rs b/milli/src/index.rs index d921de9e4..b2ea105da 100644 --- a/milli/src/index.rs +++ b/milli/src/index.rs @@ -2435,6 +2435,7 @@ pub(crate) mod tests { document_scores: _, mut documents_ids, degraded: _, + used_negative_operator: _, } = search.execute().unwrap(); let primary_key_id = index.fields_ids_map(&rtxn).unwrap().id("primary_key").unwrap(); documents_ids.sort_unstable(); diff --git a/milli/src/search/new/matches/matching_words.rs b/milli/src/search/new/matches/matching_words.rs index 9e01f6dcf..acc0de6b0 100644 --- a/milli/src/search/new/matches/matching_words.rs +++ b/milli/src/search/new/matches/matching_words.rs @@ -261,7 +261,7 @@ pub(crate) mod tests { let mut builder = TokenizerBuilder::default(); let tokenizer = builder.build(); let tokens = tokenizer.tokenize("split this world"); - let query_terms = located_query_terms_from_tokens(&mut ctx, tokens, None).unwrap(); + let (query_terms, _) = located_query_terms_from_tokens(&mut ctx, tokens, None).unwrap(); let matching_words = MatchingWords::new(ctx, query_terms); assert_eq!( diff --git a/milli/src/search/new/query_term/parse_query.rs b/milli/src/search/new/query_term/parse_query.rs index e510595ee..bdb937384 100644 --- a/milli/src/search/new/query_term/parse_query.rs +++ b/milli/src/search/new/query_term/parse_query.rs @@ -331,7 +331,7 @@ mod tests { let rtxn = index.read_txn()?; let mut ctx = SearchContext::new(&index, &rtxn); // panics with `attempt to add with overflow` before - let located_query_terms = located_query_terms_from_tokens(&mut ctx, tokens, None)?; + let (located_query_terms, _) = located_query_terms_from_tokens(&mut ctx, tokens, None)?; assert!(located_query_terms.is_empty()); Ok(())