From 668c3336dbd7debb067a12c6a32586354ea25e65 Mon Sep 17 00:00:00 2001 From: Cai Zhang Date: Wed, 30 Oct 2024 15:23:22 +0800 Subject: [PATCH] fix restful tests Signed-off-by: Cai Zhang --- tests/restful_client_v2/testcases/test_vector_operations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/restful_client_v2/testcases/test_vector_operations.py b/tests/restful_client_v2/testcases/test_vector_operations.py index 991c12fe495de..df0dfde48db4d 100644 --- a/tests/restful_client_v2/testcases/test_vector_operations.py +++ b/tests/restful_client_v2/testcases/test_vector_operations.py @@ -1761,7 +1761,7 @@ def test_search_vector_with_text_match_filter(self, tokenizer): vector_to_search = [[random.random() for _ in range(dim)]] for field in text_fields: token = wf_map[field].most_common()[0][0] - expr = f"TextMatch({field}, '{token}')" + expr = f"text_match({field}, '{token}')" logger.info(f"expr: {expr}") rsp = self.vector_client.vector_search({"collectionName": name, "data":vector_to_search, "filter": f"{expr}", "outputFields": ["*"]}) assert rsp['code'] == 0, rsp @@ -2574,7 +2574,7 @@ def test_query_vector_with_text_match_filter(self, tokenizer): time.sleep(5) for field in text_fields: token = wf_map[field].most_common()[0][0] - expr = f"TextMatch({field}, '{token}')" + expr = f"text_match({field}, '{token}')" logger.info(f"expr: {expr}") rsp = self.vector_client.vector_query({"collectionName": name, "filter": f"{expr}", "outputFields": ["*"]}) assert rsp['code'] == 0, rsp