From 75a6de18b2572900a4b73fa1ade51d22883a859a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 5 Jan 2018 15:51:30 +0100 Subject: [PATCH] Regular user search now also finds by email address --- pillar/api/search/queries.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pillar/api/search/queries.py b/pillar/api/search/queries.py index eb436011..623aecfd 100644 --- a/pillar/api/search/queries.py +++ b/pillar/api/search/queries.py @@ -92,6 +92,7 @@ def do_user_search(query: str, terms: dict) -> dict: should = [ Q('match', username=query), Q('match', full_name=query), + Q('match', email=query), ] must = [