mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-08 01:58:34 +08:00
[skip e2e]Update the method whether vector field is indexed (#27820)
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
This commit is contained in:
parent
d52a74f78f
commit
5247ea3fd1
@ -133,7 +133,7 @@ class TestActionSecondDeployment(TestDeployBase):
|
|||||||
is_vector_indexed = False
|
is_vector_indexed = False
|
||||||
index_infos = [index.to_dict() for index in collection_w.indexes]
|
index_infos = [index.to_dict() for index in collection_w.indexes]
|
||||||
for index_info in index_infos:
|
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
|
is_vector_indexed = True
|
||||||
break
|
break
|
||||||
if is_vector_indexed is False:
|
if is_vector_indexed is False:
|
||||||
@ -143,7 +143,7 @@ class TestActionSecondDeployment(TestDeployBase):
|
|||||||
|
|
||||||
# search and query
|
# search and query
|
||||||
if "empty" in name:
|
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
|
check_task = None
|
||||||
else:
|
else:
|
||||||
check_task = CheckTasks.check_search_results
|
check_task = CheckTasks.check_search_results
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user