From 3908d10498f9f791764ee61359ac56f52009d298 Mon Sep 17 00:00:00 2001 From: "shengjun.li" Date: Wed, 22 Jul 2020 10:08:05 +0800 Subject: [PATCH] Fix the result merging of IVF_PQ IP (#2953) Signed-off-by: shengjun.li --- CHANGELOG.md | 3 ++- core/src/scheduler/task/SearchTask.cpp | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 40596c0ed6..b6d3156863 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,8 @@ Please mark all change in change log and use the issue from GitHub # Milvus 0.10.2 (TBD) ## Bug -- \#2890 Fix the wrong index size +- \#2890 Fix the index size caculation in cache +- \#2952 Fix the result merging of IVF_PQ IP ## Feature diff --git a/core/src/scheduler/task/SearchTask.cpp b/core/src/scheduler/task/SearchTask.cpp index efafb226f4..e9dd032f1e 100644 --- a/core/src/scheduler/task/SearchTask.cpp +++ b/core/src/scheduler/task/SearchTask.cpp @@ -104,9 +104,8 @@ XSearchTask::XSearchTask(const std::shared_ptr& context, Segmen : Task(TaskType::SearchTask, std::move(label)), context_(context), file_(file) { if (file_) { // distance -- value 0 means two vectors equal, ascending reduce, L2/HAMMING/JACCARD/TONIMOTO ... - // similarity -- infinity value means two vectors equal, descending reduce, IP - if (file_->metric_type_ == static_cast(MetricType::IP) && - file_->engine_type_ != static_cast(EngineType::FAISS_PQ)) { + // similarity -- value 1 means two vectors equal, descending reduce, IP + if (file_->metric_type_ == static_cast(MetricType::IP)) { ascending_reduce = false; }