mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-22 21:04:27 +01:00
Remove an unefficient part of a test on milli
This commit is contained in:
parent
6841f167b4
commit
28b7d73d4a
@ -32,15 +32,6 @@ fn test_phrase_search_with_stop_words_given_criteria(criteria: &[Criterion]) {
|
|||||||
let result = search.execute().unwrap();
|
let result = search.execute().unwrap();
|
||||||
// 1 document should match
|
// 1 document should match
|
||||||
assert_eq!(result.documents_ids.len(), 1);
|
assert_eq!(result.documents_ids.len(), 1);
|
||||||
|
|
||||||
// test for a single stop word only, no other search terms
|
|
||||||
let mut search = Search::new(&txn, &index);
|
|
||||||
search.query("\"the\"");
|
|
||||||
search.limit(10);
|
|
||||||
search.authorize_typos(false);
|
|
||||||
search.terms_matching_strategy(TermsMatchingStrategy::All);
|
|
||||||
let result = search.execute().unwrap();
|
|
||||||
assert_eq!(result.documents_ids.len(), 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
Loading…
Reference in New Issue
Block a user