[skip e2e]Update the method whether vector field is indexed (#27820)

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
pull/27834/head
zhuwenxing 2023-10-20 01:02:07 -05:00 committed by GitHub
parent d52a74f78f
commit 5247ea3fd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -133,7 +133,7 @@ class TestActionSecondDeployment(TestDeployBase):
is_vector_indexed = False
index_infos = [index.to_dict() for index in collection_w.indexes]
for index_info in index_infos:
if "metric_type" in index_info.keys():
if "metric_type" in index_info.keys() or "metric_type" in index_info["index_param"]:
is_vector_indexed = True
break
if is_vector_indexed is False:
@ -143,7 +143,7 @@ class TestActionSecondDeployment(TestDeployBase):
# search and query
if "empty" in name:
# if the collection is empty, the search result should be empty, so no need to check
# if the collection is empty, the search result should be empty, so no need to check
check_task = None
else:
check_task = CheckTasks.check_search_results