This commit is contained in:
Loïc Lecrenier 2023-03-23 09:12:35 +01:00
parent 01c7d2de8f
commit 9b1f439a91
4 changed files with 26 additions and 24 deletions

View file

@ -185,21 +185,21 @@ fn get_ranking_rules_for_query_graph_search<'ctx>(
if attribute {
continue;
}
todo!();
// todo!();
// attribute = false;
}
crate::Criterion::Sort => {
if sort {
continue;
}
todo!();
// todo!();
// sort = false;
}
crate::Criterion::Exactness => {
if exactness {
continue;
}
todo!();
// todo!();
// exactness = false;
}
crate::Criterion::Asc(field) => {
@ -214,7 +214,7 @@ fn get_ranking_rules_for_query_graph_search<'ctx>(
continue;
}
desc.insert(field);
todo!();
// todo!();
}
}
}

View file

@ -216,7 +216,6 @@ impl QueryTerm {
///
/// This excludes synonyms, split words, and words stored in the prefix databases.
pub fn all_phrases(&'_ self) -> impl Iterator<Item = Interned<Phrase>> + Clone + '_ {
todo!("self.phrase");
self.split_words.iter().chain(self.synonyms.iter()).copied()
}
pub fn is_empty(&self) -> bool {