diff --git a/src/index.cpp b/src/index.cpp index b39da7c28..486d41e76 100644 --- a/src/index.cpp +++ b/src/index.cpp @@ -1992,7 +1992,7 @@ std::pair Index::search(const T *query, con { // safe because Index uses uint32_t ids internally // and IDType will be uint32_t or uint64_t - indices[pos] = best_L_nodes[i].id; + indices[pos] = (IdType)best_L_nodes[i].id; if (distances != nullptr) { #ifdef EXEC_ENV_OLS @@ -3377,13 +3377,6 @@ template DISKANN_DLLEXPORT std::pair Index Index::search( const int8_t *query, const size_t K, const uint32_t L, uint32_t *indices, float *distances); -// TagT==uint128 -template DISKANN_DLLEXPORT std::pair Index::search( - const float *query, const size_t K, const uint32_t L, tag_uint128 *indices, float *distances); -template DISKANN_DLLEXPORT std::pair Index::search( - const uint8_t *query, const size_t K, const uint32_t L, tag_uint128 *indices, float *distances); -template DISKANN_DLLEXPORT std::pair Index::search( - const int8_t *query, const size_t K, const uint32_t L, tag_uint128 *indices, float *distances); template DISKANN_DLLEXPORT std::pair Index::search_with_filters< uint64_t>(const float *query, const uint32_t &filter_label, const size_t K, const uint32_t L, uint64_t *indices, @@ -3448,13 +3441,6 @@ template DISKANN_DLLEXPORT std::pair Index Index::search( const int8_t *query, const size_t K, const uint32_t L, uint32_t *indices, float *distances); -// TagT==uint128 -template DISKANN_DLLEXPORT std::pair Index::search( - const float *query, const size_t K, const uint32_t L, tag_uint128 *indices, float *distances); -template DISKANN_DLLEXPORT std::pair Index::search( - const uint8_t *query, const size_t K, const uint32_t L, tag_uint128 *indices, float *distances); -template DISKANN_DLLEXPORT std::pair Index::search( - const int8_t *query, const size_t K, const uint32_t L, tag_uint128 *indices, float *distances); template DISKANN_DLLEXPORT std::pair Index::search_with_filters< uint64_t>(const float *query, const uint16_t &filter_label, const size_t K, const uint32_t L, uint64_t *indices,