diff --git a/src/storage/invertedindex/search/blockmax_wand_iterator.cpp b/src/storage/invertedindex/search/blockmax_wand_iterator.cpp index f5d87c117b..edf7c58ac9 100644 --- a/src/storage/invertedindex/search/blockmax_wand_iterator.cpp +++ b/src/storage/invertedindex/search/blockmax_wand_iterator.cpp @@ -20,7 +20,7 @@ module blockmax_wand_iterator; import stl; import third_party; import index_defines; -import term_doc_iterator; +import blockmax_leaf_iterator; import multi_doc_iterator; import internal_types; import logger; @@ -55,9 +55,9 @@ BlockMaxWandIterator::BlockMaxWandIterator(Vector> &&iter estimate_iterate_cost_ = {}; SizeT num_iterators = children_.size(); for (SizeT i = 0; i < num_iterators; i++){ - TermDocIterator *tdi = dynamic_cast(children_[i].get()); + BlockMaxLeafIterator *tdi = dynamic_cast(children_[i].get()); if (tdi == nullptr) { - UnrecoverableError("BMW only supports TermDocIterator"); + UnrecoverableError("BMW only supports BlockMaxLeafIterator"); } bm25_score_upper_bound_ += tdi->BM25ScoreUpperBound(); estimate_iterate_cost_ += tdi->GetEstimateIterateCost(); diff --git a/src/storage/invertedindex/search/blockmax_wand_iterator.cppm b/src/storage/invertedindex/search/blockmax_wand_iterator.cppm index 9678fec919..bd6e4a2895 100644 --- a/src/storage/invertedindex/search/blockmax_wand_iterator.cppm +++ b/src/storage/invertedindex/search/blockmax_wand_iterator.cppm @@ -18,7 +18,7 @@ export module blockmax_wand_iterator; import stl; import index_defines; import doc_iterator; -import term_doc_iterator; +import blockmax_leaf_iterator; import multi_doc_iterator; import internal_types; @@ -50,8 +50,8 @@ private: RowID common_block_min_possible_doc_id_{}; // not always exist RowID common_block_last_doc_id_{}; float common_block_max_bm25_score_{}; - Vector sorted_iterators_; // sort by DocID(), in ascending order - Vector backup_iterators_; + Vector sorted_iterators_; // sort by DocID(), in ascending order + Vector backup_iterators_; SizeT pivot_; // bm25 score cache bool bm25_score_cached_ = false;