fix: fix precision for search reduce(#27325) (#29032)

related: #27325 
pr: https://github.com/milvus-io/milvus/pull/29031

Signed-off-by: MrPresent-Han <chun.han@zilliz.com>
This commit is contained in:
MrPresent-Han 2023-12-08 10:10:35 +08:00 committed by GitHub
parent b639fd66b4
commit cd34173e55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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_;