fix tablestore full text search bug (#22853)

pull/22474/merge
wanttobeamaster 7 months ago committed by GitHub
parent 1c3c40db69
commit 8278b39f85
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -319,7 +319,7 @@ class TableStoreVector(BaseVector):
return documents return documents
def _search_by_full_text(self, query: str, document_ids_filter: list[str] | None, top_k: int) -> list[Document]: 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)) bool_query.must_queries.append(tablestore.MatchQuery(text=query, field_name=Field.CONTENT_KEY.value))
if document_ids_filter: if document_ids_filter:

Loading…
Cancel
Save