diff --git a/src/pq_flash_index.cpp b/src/pq_flash_index.cpp index 78e44ba70..70431ded6 100644 --- a/src/pq_flash_index.cpp +++ b/src/pq_flash_index.cpp @@ -1122,8 +1122,8 @@ void PQFlashIndex::cached_beam_search(const T *query1, const uint64_t QueryStats *stats) { LabelT dummy_filter = 0; - cached_beam_search(query1, k_search, l_search, indices, distances, beam_width, false, dummy_filter, - std::numeric_limits::max(), use_reorder_data, stats); + cached_beam_search(query1, k_search, l_search, indices, distances, beam_width, false, dummy_filter, io_limit, + use_reorder_data, stats); } template