mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-10-31 16:06:31 +00:00 
			
		
		
		
	Update milli/tests/search/query_criteria.rs
Co-authored-by: Clément Renault <clement@meilisearch.com>
This commit is contained in:
		| @@ -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")], | ||||
|   | ||||
| @@ -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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user