Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunjiangZhu committed Oct 28, 2019
1 parent 5bdf053 commit 2e90452
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions similarity_search/src/method/small_world_rand.cc
Original file line number Diff line number Diff line change
Expand Up @@ -601,8 +601,8 @@ void SmallWorldRand<dist_t>::addCriticalSection(MSWNode *newElement){
template <typename dist_t>
void SmallWorldRand<dist_t>::Search(RangeQuery<dist_t>* query, IdType) const {
// throw runtime_error("Range search is not supported!");
if (searchAlgoType_ == kV1Merge) SearchV1Merge(query);
else SearchOld(query);
if (searchAlgoType_ == kV1Merge) {std::cerr << "call SearchV1Merge" << endl; SearchV1Merge(query);}
else {std::cerr << "call SearchOld" << endl; SearchOld(query);}
}

template <typename dist_t>
Expand Down

0 comments on commit 2e90452

Please sign in to comment.