Skip to content

Commit

Permalink
quickwit-oss#1833 simplify term_stream creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Hodkinson committed Jan 30, 2023
1 parent bb1e017 commit 1e9852b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/query/exists_query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ impl Weight for ExistsWeight {
let mut doc_bitset = BitSet::with_max_value(max_doc);

let inverted_index = reader.inverted_index(self.field)?;
let term_dict = inverted_index.terms();
let mut term_stream = term_dict.range().into_stream()?;
let mut term_stream = inverted_index.terms().stream()?;

while term_stream.advance() {
let term_info = term_stream.value();

Expand Down

0 comments on commit 1e9852b

Please sign in to comment.