Skip to content

Commit

Permalink
fix: use the existed index_name (#2107) (#2118)
Browse files Browse the repository at this point in the history
milvus-io/milvus#33327

Signed-off-by: lixinguo <[email protected]>
Co-authored-by: lixinguo <[email protected]>
  • Loading branch information
smellthemoon and lixinguo authored Jun 5, 2024
1 parent e48cd20 commit 367c4a8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pymilvus/orm/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,11 @@ def drop(self, timeout: Optional[float] = None, **kwargs):
The name of index. If no index is specified, the default index name is used.
"""
copy_kwargs = copy.deepcopy(kwargs)
index_name = copy_kwargs.pop("index_name", Config.IndexName)
conn = self._get_connection()
conn.drop_index(
collection_name=self._collection.name,
field_name=self.field_name,
index_name=index_name,
index_name=self.index_name,
timeout=timeout,
**copy_kwargs,
)

0 comments on commit 367c4a8

Please sign in to comment.