mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-07 03:48:44 +08:00
Fix python metadata search (#13727)
### What problem does this PR solve? Fix python metadata search ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@@ -148,8 +148,11 @@ class InfinityConnection(InfinityConnectionBase):
|
||||
filter_cond = None
|
||||
filter_fulltext = ""
|
||||
if condition:
|
||||
# Remove kb_id filter for Infinity (it uses table separation instead)
|
||||
condition = {k: v for k, v in condition.items() if k != "kb_id"}
|
||||
# For metadata table (ragflow_doc_meta_), keep kb_id filter
|
||||
# For chunk tables, remove kb_id filter as they use table separation per KB
|
||||
is_meta_table = any(indexName.startswith("ragflow_doc_meta_") for indexName in index_names)
|
||||
if not is_meta_table:
|
||||
condition = {k: v for k, v in condition.items() if k != "kb_id"}
|
||||
|
||||
table_found = False
|
||||
for indexName in index_names:
|
||||
|
||||
Reference in New Issue
Block a user