This commit is contained in:
Loïc Lecrenier
2023-03-22 14:43:08 +01:00
parent 384fdc2df4
commit a86aeba411
3 changed files with 4 additions and 0 deletions

View File

@ -216,6 +216,7 @@ 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 {