From 15929d1be0d50a2a0b27191746acaf0a9eaf2242 Mon Sep 17 00:00:00 2001 From: MrPresent-Han <116052805+MrPresent-Han@users.noreply.github.com> Date: Thu, 21 Dec 2023 14:46:35 +0800 Subject: [PATCH] fix exceeding width of search_iterator(#1823) (#1824) Signed-off-by: MrPresent-Han --- pymilvus/orm/iterator.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/pymilvus/orm/iterator.py b/pymilvus/orm/iterator.py index 5b1793497..eadaef9c3 100644 --- a/pymilvus/orm/iterator.py +++ b/pymilvus/orm/iterator.py @@ -339,8 +339,6 @@ def __update_width(self, page: SearchPage): self._width = last_hit.distance - first_hit.distance else: self._width = first_hit.distance - last_hit.distance - self._width *= DEFAULT_SEARCH_EXTENSION_RATE - # commonly, we extend width to twice to avoid one more time search def __set_up_range_parameters(self, page: SearchPage): self.__update_width(page)