Feat: support cross-lang search. (#7557)

### What problem does this PR solve?

#7376
#4503
#5710 
#7470

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
Kevin Hu
2025-05-09 15:32:02 +08:00
committed by GitHub
parent 2fe332d01d
commit 2ccec93d71
4 changed files with 65 additions and 3 deletions

View File

@ -131,7 +131,7 @@ class DocumentService(CommonService):
if types:
query = query.where(cls.model.type.in_(types))
return query.scalar() or 0
return int(query.scalar()) or 0
@classmethod
@DB.connection_context()