Skip to content

Commit

Permalink
fix exceeding width of search_iterator(#1823) (#1824)
Browse files Browse the repository at this point in the history
Signed-off-by: MrPresent-Han <chun.han@zilliz.com>
MrPresent-Han authored Dec 21, 2023
1 parent 7b7516f commit 15929d1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pymilvus/orm/iterator.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 15929d1

Please sign in to comment.