Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunjiangZhu committed Oct 25, 2019
1 parent e4ecd4d commit a163287
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions similarity_search/include/method/small_world_rand.h
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,8 @@ class SmallWorldRand : public Index<dist_t> {
void SearchOld(KNNQuery<dist_t>* query) const;
void SearchV1Merge(KNNQuery<dist_t>* query) const;

void SearchV1Merge(RangeQuery<dist_t>* query) const;

void UpdateNextNodeId(size_t newNextNodeId);
void CompactIdsIfNeeded();

Expand Down
2 changes: 1 addition & 1 deletion similarity_search/src/method/small_world_rand.cc
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ void SmallWorldRand<dist_t>::SearchV1Merge(RangeQuery<dist_t>* query) const {
++currElem;
}

for (uint_fast32_t i = 0; i < sortedArr.size(); ++i) { // i < query->GetK() &&
for (uint_fast32_t i = 0; i < sortedArr.size(); ++i) { // i < query->GetK() &&
query->CheckAndAddToResult(queueData[i].key, queueData[i].data->getData());
}
}
Expand Down

0 comments on commit a163287

Please sign in to comment.