From e1b06b914d198fca5abd0fd70b333aa517eaf61d Mon Sep 17 00:00:00 2001 From: Gao Date: Tue, 26 Dec 2023 16:42:39 +0800 Subject: [PATCH] Fix scann range search (#316) Signed-off-by: chasingegg --- thirdparty/faiss/faiss/IndexIVFPQFastScan.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/thirdparty/faiss/faiss/IndexIVFPQFastScan.cpp b/thirdparty/faiss/faiss/IndexIVFPQFastScan.cpp index 9342dcc0..ee06c63f 100644 --- a/thirdparty/faiss/faiss/IndexIVFPQFastScan.cpp +++ b/thirdparty/faiss/faiss/IndexIVFPQFastScan.cpp @@ -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;