From eba99bdc09d0b5118b764113f7a347d7bc1ea0a5 Mon Sep 17 00:00:00 2001 From: Friedrich Lindenberg Date: Sun, 22 Sep 2024 17:04:34 +0200 Subject: [PATCH] fix test --- yente/search/queries.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yente/search/queries.py b/yente/search/queries.py index 52d78d70..7bc2fbe3 100644 --- a/yente/search/queries.py +++ b/yente/search/queries.py @@ -39,6 +39,8 @@ def filter_query( datasets.remove(exclude_ds) if len(datasets): filterqs.append({"terms": {"datasets": datasets}}) + else: + filterqs.append({"match_none": {}}) if schema is not None: schemata = schema.matchable_schemata if not schema.matchable: