fix: No data found for the carrying organization

This commit is contained in:
feng 2025-04-18 16:47:17 +08:00 committed by 老广
parent c500bb4e4c
commit 57fcebfdd3

View File

@ -341,9 +341,7 @@ class ES(object):
index['values'] = kwargs[index_in_field] index['values'] = kwargs[index_in_field]
for k, v in kwargs.items(): for k, v in kwargs.items():
if k in keyword_fields: if k in exact_fields.union(keyword_fields):
exact[k] = v
elif k in exact_fields:
exact['{}.keyword'.format(k)] = v exact['{}.keyword'.format(k)] = v
elif k in match_fields: elif k in match_fields:
match[k] = v match[k] = v