@@ -455,7 +455,7 @@ void IndexIVF::search_preassigned(
455455#pragma omp parallel if (do_parallel) reduction(+ : nlistv, ndis, nheap)
456456 {
457457 std::unique_ptr<InvertedListScanner> scanner (
458- get_InvertedListScanner_2 (store_pairs, sel, params));
458+ get_InvertedListScanner (store_pairs, sel, params));
459459
460460 /* ****************************************************
461461 * Depending on parallel_mode, there are two possible ways
@@ -796,7 +796,7 @@ void IndexIVF::range_search_preassigned(
796796 {
797797 RangeSearchPartialResult pres (result);
798798 std::unique_ptr<InvertedListScanner> scanner (
799- get_InvertedListScanner_2 (store_pairs, sel, params));
799+ get_InvertedListScanner (store_pairs, sel, params));
800800 FAISS_THROW_IF_NOT (scanner.get ());
801801 all_pres[omp_get_thread_num ()] = &pres;
802802
@@ -912,19 +912,11 @@ void IndexIVF::range_search_preassigned(
912912
913913InvertedListScanner* IndexIVF::get_InvertedListScanner (
914914 bool /* store_pairs*/ ,
915- const IDSelector* /* sel */ ) const {
915+ const IDSelector* /* sel */ ,
916+ const IVFSearchParameters* /* params */ ) const {
916917 FAISS_THROW_MSG (" get_InvertedListScanner not implemented" );
917918}
918919
919- InvertedListScanner* IndexIVF::get_InvertedListScanner_2 (
920- bool store_pairs,
921- const IDSelector* sel,
922- const IVFSearchParameters* /* search_params */ ) const {
923- // By default, search_params are ignored, and the call
924- // is forwarded to get_InvertedListScanner().
925- return get_InvertedListScanner (store_pairs, sel);
926- }
927-
928920void IndexIVF::reconstruct (idx_t key, float * recons) const {
929921 idx_t lo = direct_map.get (key);
930922 reconstruct_from_offset (lo_listno (lo), lo_offset (lo), recons);
0 commit comments