Fix knowledge_graph_kwd on infinity. Close #6476 and #6624 (#6651)

### What problem does this PR solve?

Fix knowledge_graph_kwd on infinity. Close #6476 and #6624

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Zhichang Yu
2025-03-28 22:05:40 +08:00
committed by GitHub
parent 563a84beaf
commit 65a8cd1772
3 changed files with 5 additions and 5 deletions

View File

@ -174,7 +174,7 @@ class InfinityConnection(DocStoreConnection):
def field_keyword(self, field_name: str):
# The "docnm_kwd" field is always a string, not list.
if field_name == "source_id" or (field_name.endswith("_kwd") and field_name != "docnm_kwd"):
if field_name == "source_id" or (field_name.endswith("_kwd") and field_name != "docnm_kwd" and field_name != "knowledge_graph_kwd"):
return True
return False