diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c6588a4c1..8d029ddea2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,8 +26,8 @@ Please mark all changes in change log and use the issue from GitHub - \#2768 After building the index, the number of vectors increases - \#2776 Fix too many data copies during creating IVF index - \#2813 To implemente RNSG IP -- \#2890 Fix wrong index size -- \#2957 There is no exisitence check of annoy search parameter +- \#2890 Fix the index size caculation in cache +- \#2952 Fix the result merging of IVF_PQ IP ## Feature - \#2319 Redo metadata to support MVCC diff --git a/core/src/scheduler/task/SearchTask.cpp b/core/src/scheduler/task/SearchTask.cpp index 031d0224d9..4f41743aaf 100644 --- a/core/src/scheduler/task/SearchTask.cpp +++ b/core/src/scheduler/task/SearchTask.cpp @@ -103,9 +103,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; }