Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix exceeding width of search_iterator(#1823)
Browse files Browse the repository at this point in the history
Signed-off-by: MrPresent-Han <chun.han@zilliz.com>
MrPresent-Han committed Dec 20, 2023
1 parent 7b7516f commit 2659ee8
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 2659ee8

Please sign in to comment.