Skip to content

Commit 915982f

Browse files
smellthemoonlixinguo
andcommitted
fix: use the existed index_name (milvus-io#2107)
milvus-io/milvus#33327 Signed-off-by: lixinguo <[email protected]> Co-authored-by: lixinguo <[email protected]>
1 parent e8f4a13 commit 915982f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pymilvus/orm/index.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,11 @@ def drop(self, timeout: Optional[float] = None, **kwargs):
135135
The name of index. If no index is specified, the default index name is used.
136136
"""
137137
copy_kwargs = copy.deepcopy(kwargs)
138-
index_name = copy_kwargs.pop("index_name", Config.IndexName)
139138
conn = self._get_connection()
140139
conn.drop_index(
141140
collection_name=self._collection.name,
142141
field_name=self.field_name,
143-
index_name=index_name,
142+
index_name=self.index_name,
144143
timeout=timeout,
145144
**copy_kwargs,
146145
)

0 commit comments

Comments
 (0)