Make infinity adapt to condition exist. (#4657)

### What problem does this PR solve?

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Kevin Hu
2025-01-26 18:45:36 +08:00
committed by GitHub
parent b4303f6010
commit c354239b79
4 changed files with 69 additions and 15 deletions

View File

@ -336,7 +336,7 @@ class ESConnection(DocStoreConnection):
for k, v in condition.items():
if not isinstance(k, str) or not v:
continue
if k == "exist":
if k == "exists":
bqry.filter.append(Q("exists", field=v))
continue
if isinstance(v, list):