We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fffbf4 commit 43233c2Copy full SHA for 43233c2
include/svs/index/vamana/multi.h
@@ -118,7 +118,10 @@ template <typename Index, typename QueryType> class MultiBatchIterator {
118
const_iterator cend() const { return results_.cend(); }
119
size_t size() const { return results_.size(); }
120
121
- bool done() const { return batch_iterator_.done() && extra_results_.empty(); }
+ bool done() const {
122
+ return (batch_iterator_.done() && extra_results_.empty()) ||
123
+ (returned_.size() == index_.labelcount());
124
+ }
125
126
std::span<const value_type> contents() const { return lib::as_const_span(results_); }
127
0 commit comments