From afb09c914df05a3579d139b919a98bfa4c851d29 Mon Sep 17 00:00:00 2001 From: Many Date: Tue, 8 Jun 2021 14:24:17 +0200 Subject: [PATCH] Update milli/tests/search/query_criteria.rs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Clément Renault --- milli/tests/search/mod.rs | 2 -- milli/tests/search/query_criteria.rs | 5 ++++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/milli/tests/search/mod.rs b/milli/tests/search/mod.rs index 98102f9e9..20cf13034 100644 --- a/milli/tests/search/mod.rs +++ b/milli/tests/search/mod.rs @@ -29,9 +29,7 @@ pub fn setup_search_index_with_criteria(criteria: &[Criterion]) -> Index { builder.set_criteria(criteria); builder.set_filterable_fields(hashset!{ S("tag"), - S("unexisting_field"), S("asc_desc_rank"), - S("unexisting_field"), }); builder.set_synonyms(hashmap!{ S("hello") => vec![S("good morning")], diff --git a/milli/tests/search/query_criteria.rs b/milli/tests/search/query_criteria.rs index 160b77c5b..b6f692674 100644 --- a/milli/tests/search/query_criteria.rs +++ b/milli/tests/search/query_criteria.rs @@ -203,7 +203,10 @@ fn criteria_mixup() { let SearchResult { documents_ids, .. } = search.execute().unwrap(); - let expected_external_ids: Vec<_> = search::expected_order(&criteria, ALLOW_OPTIONAL_WORDS, ALLOW_TYPOS).into_iter().map(|d| d.id).collect(); + let expected_external_ids: Vec<_> = search::expected_order(&criteria, ALLOW_OPTIONAL_WORDS, ALLOW_TYPOS) + .into_iter() + .map(|d| d.id) + .collect(); let documents_ids = search::internal_to_external_ids(&index, &documents_ids); assert_eq!(documents_ids, expected_external_ids);