From e815fe3c5dc7ebb7b1544243ed71027594621266 Mon Sep 17 00:00:00 2001 From: "xiaozhiqing.xzq" Date: Wed, 23 Jul 2025 19:06:03 +0800 Subject: [PATCH] fix tablestore full text bug. --- api/core/rag/datasource/vdb/tablestore/tablestore_vector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/rag/datasource/vdb/tablestore/tablestore_vector.py b/api/core/rag/datasource/vdb/tablestore/tablestore_vector.py index 3678167f62..9ed6e7369b 100644 --- a/api/core/rag/datasource/vdb/tablestore/tablestore_vector.py +++ b/api/core/rag/datasource/vdb/tablestore/tablestore_vector.py @@ -319,7 +319,7 @@ class TableStoreVector(BaseVector): return documents def _search_by_full_text(self, query: str, document_ids_filter: list[str] | None, top_k: int) -> list[Document]: - bool_query = tablestore.BoolQuery() + bool_query = tablestore.BoolQuery(must_queries=[], filter_queries=[], should_queries=[], must_not_queries=[]) bool_query.must_queries.append(tablestore.MatchQuery(text=query, field_name=Field.CONTENT_KEY.value)) if document_ids_filter: