Skip to content

Commit

Permalink
fix exceeding width of search_iterator(#1823) (#1825)
Browse files Browse the repository at this point in the history
Signed-off-by: MrPresent-Han <[email protected]>
  • Loading branch information
MrPresent-Han authored Dec 22, 2023
1 parent 220c1ef commit 2232c8d
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
Expand Up @@ -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)
Expand Down

0 comments on commit 2232c8d

Please sign in to comment.