From cd34173e5502f23fe8e9b893e06f2f3db91479f2 Mon Sep 17 00:00:00 2001 From: MrPresent-Han <116052805+MrPresent-Han@users.noreply.github.com> Date: Fri, 8 Dec 2023 10:10:35 +0800 Subject: [PATCH] fix: fix precision for search reduce(#27325) (#29032) related: #27325 pr: https://github.com/milvus-io/milvus/pull/29031 Signed-off-by: MrPresent-Han --- internal/core/src/segcore/ReduceStructure.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/core/src/segcore/ReduceStructure.h b/internal/core/src/segcore/ReduceStructure.h index 96956f006f..cdcb0da813 100644 --- a/internal/core/src/segcore/ReduceStructure.h +++ b/internal/core/src/segcore/ReduceStructure.h @@ -44,7 +44,7 @@ struct SearchResultPair { bool operator>(const SearchResultPair& other) const { - if (std::fabs(distance_ - other.distance_) < 0.000001f) { + if (std::fabs(distance_ - other.distance_) < 0.0000000119) { return primary_key_ < other.primary_key_; } return distance_ > other.distance_;