diff --git a/apps/common/plugins/es.py b/apps/common/plugins/es.py index 97fef7faa..1e0d6efd2 100644 --- a/apps/common/plugins/es.py +++ b/apps/common/plugins/es.py @@ -346,7 +346,7 @@ class ES(object): elif k in match_fields: match[k] = v - args = kwargs.get('search') + args = kwargs.get('search', []) for item in args: for k, v in item.items(): if k in match_fields: