diff --git a/cpp/src/db/DBImpl.cpp b/cpp/src/db/DBImpl.cpp index 646d6e79f28f8a1fceafb894eb92c9be5f0d4f65..1dfafca28a4c50cb80aa096f4fd8f809a6757fa9 100644 --- a/cpp/src/db/DBImpl.cpp +++ b/cpp/src/db/DBImpl.cpp @@ -113,7 +113,7 @@ Status DBImpl::search(const std::string& group_id, size_t k, size_t nq, auto search_in_index = [&](meta::GroupFilesSchema& file_vec) -> void { for (auto &file : file_vec) { - FaissExecutionEngine index(file.dimension, file.location); + FaissExecutionEngineBase index(file.dimension, file.location); index.Load(); auto file_size = index.PhysicalSize()/(1024*1024); search_set_size += file_size; @@ -213,7 +213,7 @@ Status DBImpl::merge_files(const std::string& group_id, const meta::DateT& date, return status; } - FaissExecutionEngine index(group_file.dimension, group_file.location); + FaissExecutionEngineBase index(group_file.dimension, group_file.location); meta::GroupFilesSchema updated; long index_size = 0; @@ -286,7 +286,7 @@ Status DBImpl::build_index(const meta::GroupFileSchema& file) { return status; } - FaissExecutionEngine to_index(file.dimension, file.location); + FaissExecutionEngineBase to_index(file.dimension, file.location); to_index.Load(); auto index = to_index.BuildIndex(group_file.location);