Fix: table tag on chunks. (#12126)

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Kevin Hu
2025-12-24 09:32:19 +08:00
committed by GitHub
parent 17b8bb62b6
commit c33134ea2c
5 changed files with 26 additions and 17 deletions

View File

@ -696,10 +696,12 @@ class DocumentService(CommonService):
for k,v in r.meta_fields.items():
if k not in meta:
meta[k] = {}
v = str(v)
if v not in meta[k]:
meta[k][v] = []
meta[k][v].append(doc_id)
if not isinstance(v, list):
v = [v]
for vv in v:
if vv not in meta[k]:
meta[k][vv] = []
meta[k][vv].append(doc_id)
return meta
@classmethod