Skip to content

Commit 5fafe4b

Browse files
authored
Add missing query_terms impl for TermSetQuery. (#2120)
1 parent 1e7cd48 commit 5fafe4b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/query/set_query.rs

+8
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@ impl Query for TermSetQuery {
7272
fn weight(&self, enable_scoring: EnableScoring<'_>) -> crate::Result<Box<dyn Weight>> {
7373
Ok(Box::new(self.specialized_weight(enable_scoring.schema())?))
7474
}
75+
76+
fn query_terms<'a>(&'a self, visitor: &mut dyn FnMut(&'a Term, bool)) {
77+
for terms in self.terms_map.values() {
78+
for term in terms {
79+
visitor(term, false);
80+
}
81+
}
82+
}
7583
}
7684

7785
struct SetDfaWrapper(Map<Vec<u8>>);

0 commit comments

Comments
 (0)