Skip to content

Commit

Permalink
Add missing query_terms impl for TermSetQuery. (#2120)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamreichold authored Jul 13, 2023
1 parent 1e7cd48 commit 5fafe4b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/query/set_query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@ impl Query for TermSetQuery {
fn weight(&self, enable_scoring: EnableScoring<'_>) -> crate::Result<Box<dyn Weight>> {
Ok(Box::new(self.specialized_weight(enable_scoring.schema())?))
}

fn query_terms<'a>(&'a self, visitor: &mut dyn FnMut(&'a Term, bool)) {
for terms in self.terms_map.values() {
for term in terms {
visitor(term, false);
}
}
}
}

struct SetDfaWrapper(Map<Vec<u8>>);
Expand Down

0 comments on commit 5fafe4b

Please sign in to comment.