mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-27 04:25:06 +08:00
Update milli/tests/search/mod.rs
Co-authored-by: Clément Renault <clement@meilisearch.com>
This commit is contained in:
parent
ab696f6a23
commit
f4ff30e99d
@ -57,12 +57,8 @@ pub fn internal_to_external_ids(index: &Index, internal_ids: &[DocumentId]) -> V
|
|||||||
internal_ids.iter().map(|id| docid_map.get(id).unwrap().to_string()).collect()
|
internal_ids.iter().map(|id| docid_map.get(id).unwrap().to_string()).collect()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn fetch_dataset() -> Vec<TestDocument> {
|
|
||||||
serde_json::Deserializer::from_str(CONTENT).into_iter().map(|r| r.unwrap()).collect()
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn expected_order(criteria: &[Criterion], authorize_typo: bool, optional_words: bool) -> Vec<TestDocument> {
|
pub fn expected_order(criteria: &[Criterion], authorize_typo: bool, optional_words: bool) -> Vec<TestDocument> {
|
||||||
let dataset = fetch_dataset();
|
let dataset = serde_json::Deserializer::from_str(CONTENT).into_iter().map(|r| r.unwrap()).collect();
|
||||||
let mut groups: Vec<Vec<TestDocument>> = vec![dataset];
|
let mut groups: Vec<Vec<TestDocument>> = vec![dataset];
|
||||||
|
|
||||||
for criterion in criteria {
|
for criterion in criteria {
|
||||||
|
Loading…
Reference in New Issue
Block a user