From 57fcebfdd3b67ad51d0ead1776d1e372009bff24 Mon Sep 17 00:00:00 2001 From: feng <1304903146@qq.com> Date: Fri, 18 Apr 2025 16:47:17 +0800 Subject: [PATCH] fix: No data found for the carrying organization --- apps/common/plugins/es.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/common/plugins/es.py b/apps/common/plugins/es.py index ac09322f9..97fef7faa 100644 --- a/apps/common/plugins/es.py +++ b/apps/common/plugins/es.py @@ -341,9 +341,7 @@ class ES(object): index['values'] = kwargs[index_in_field] for k, v in kwargs.items(): - if k in keyword_fields: - exact[k] = v - elif k in exact_fields: + if k in exact_fields.union(keyword_fields): exact['{}.keyword'.format(k)] = v elif k in match_fields: match[k] = v