Skip to content

Commit

Permalink
Fix scann range search (#316)
Browse files Browse the repository at this point in the history
Signed-off-by: chasingegg <[email protected]>
  • Loading branch information
chasingegg committed Dec 26, 2023
1 parent 16c1f7e commit e1b06b9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions thirdparty/faiss/faiss/IndexIVFPQFastScan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1325,9 +1325,10 @@ void IndexIVFPQFastScan::range_search_implem_12(
ij++;
}
}
std::sort(qcs.begin(), qcs.end(), [](const QC& a, const QC& b) {
return a.list_no < b.list_no;
});
// comment this code, check out https://github.com/zilliztech/knowhere/issues/171
// std::sort(qcs.begin(), qcs.end(), [](const QC& a, const QC& b) {
// return a.list_no < b.list_no;
// });
}
TIC;

Expand Down

0 comments on commit e1b06b9

Please sign in to comment.